Skip to content

[Small bounty proposal] Reject residual malformed URLs in omi config set ($10 proposed) #18904

Closed as not planned

Description

@Invitrius

@kodjima33 — would you consider a US$10 bounty after acceptance and merge for this small follow-up to #18604, using the documented PayPal payment route? No award or assignment is assumed.

The current sdks/python-cli/omi_cli/commands/config.py (Git blob 0b1a98ad99e40288baac8aded3a8f721b2169d2a, checked on 25 September) validates the scheme and a nonempty netloc, but:

  • http://[ raises ValueError at the validation point rather than UsageError.
  • http://example.test:abc and https://example.test:65536 pass because port validation is lazy.
  • http://:47778 has an authority but no hostname and is accepted for saving.

I prepared a compact patch that catches parsing errors, evaluates the port and requires a hostname before changing the endpoint or calling persistence. Valid HTTP/HTTPS endpoints, IPv6 and existing normalization are preserved. Related #18703 changes local configure and LocalOmiClient, not this setter.

Measured verification: the same isolated suite runs the real command, error hierarchy and Typer dispatcher. Original: 24 pass / 22 fail; patch: 46 pass / 0 fail / 0 skip, using locally available Typer 0.24.1 and Click 8.3.2. Config I/O and output are mocked. Rich 15 and pytest 9 remain outside the project's pins; full CLI integration, native persistence tests and repository preflight are not yet verified. This is a scoped funding inquiry, not a claim of merge readiness.

Disclosure: AXIOM, an AI-agent workflow operated for the account holder, performed the technical work. No human technical review by the holder is claimed. We would handle implementation and testing, not ask maintainers to finish our patch.

Is this follow-up worth funding, and is an equivalent fix already in flight? Payment details would remain private and be agreed separately; no payment is claimed as owed.

Activity

  1. CharlesOmeneki commented on Sep 25, 2026

    @CharlesOmeneki

    Hi @kodjima33, I’m interested in taking this issue.

    Before I start implementing a competing fix, could you confirm whether the proposed $10 bounty is approved and whether the issue is open for another contributor to implement?

    If confirmed, I can submit the fix with tests covering the malformed URL cases described here.

  2. 1132dadf commented on Sep 29, 2026

    @1132dadf
    Contributor

    Picking this up. I will address the three residual gaps in omi config set URL validation: (1) http://[ raising a raw ValueError instead of a clean UsageError, (2) lazily-validated ports like http://example.test:abc / https://example.test:65536 slipping through, (3) http://:47778 (authority without hostname) being accepted and saved. PR incoming with boundary tests.

  3. 1132dadf commented on Sep 29, 2026

    @1132dadf
    Contributor

    PR up: #19689 - covers all three cases (http://[, :abc/:65536 ports, http://:47778) with regression tests.

  4. added
    retrieval-action
    p2
    docs-tooling
    p3
    and removed
    retrieval-action
    p2
    p3
    docs-tooling
    on Oct 6, 2026
  5. 1132dadf commented on Oct 21, 2026

    @1132dadf
    Contributor

    Merged as #19689 — claiming the US$10 bounty for this item (reject malformed URLs in omi config set). Thank you!

  6. undivisible commented on Oct 22, 2026

    @undivisible
    Collaborator

    We aren't doing bounties at the moment, so we're closing the bounty proposal issues for now. The fix already landed in #19689 — thanks for the fix! 🙏

  7. moved this from Someday to In review in omi TODO / bountieson Oct 22, 2026
  8. 1132dadf commented on Oct 22, 2026

    @1132dadf
    Contributor

    Hi team. A factual payment query about this proposal, not a comment on the code.

    This proposal was filed by @Invitrius. The implementation is mine: PR #19689 was merged on 19 October: #19689 .

    I understand this proposal was closed as not planned on 22 October, together with the note that bounties are currently paused. I am recording it here for completeness because the work described was merged. My total outstanding claim across #19519, #20401 and #18904 is US$60.

    If this item is outside your payment policy, whether because the proposal was never approved or because the pause applies, please say so and I will drop it and close the matter on my side. The two items I would most like an answer on are #19519 and #20401, where the proposals were closed as completed after the corresponding PRs were merged.

    Thanks for the work you all put into this project.

  9. 1132dadf commented on Oct 23, 2026

    @1132dadf
    Contributor

    Hi
    Thanks again for reviewing and merging my PR.
    Just a quick note regarding the payment/sponsorship: The previous PayPal account I provided was a Mainland China region account, which unfortunately has strict cross-border restrictions and cannot receive international personal transactions.
    To make it easier for you, I have set up a new payment link via Ko-fi. You can now complete the payment using your Credit Card or an international PayPal account at:
    👉 https://ko-fi.com/fengyuan_cn
    Please kindly process the transfer from this new link. Let me know if you encounter any issues during the checkout.
    Thanks for your support and time!
    Best regards
    FengYuan
    If you prefer other payment methods, please let me know and we can figure it out.God bless you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs-toolingp3

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions