GeezerVison is showing github.com — fix(lab-ops-hub): drop the password colon when the password is empty in the returned URL (#651) by dezren39 · Pull Request #653 · developing-today/code
Conversation
dezren39
commented
Oct 23, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Fixes #651.
What
The container validator returned http://user:@example.com/ and http://:@example.com/ verbatim while the Worker (WHATWG URL) returns http://[email protected]/ and http://example.com/ — the same crawl target recorded under two different URL strings depending on which crawler ran.
Fetch behaviour is unchanged and already agreed: _split_userinfo treats :@ as carrying no credentials and user:@ exactly as user@.
Verification
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Need help on this PR? Tag @codesmith-bot with what you need.
Summary by CodeRabbit
- Bug Fixes
- Corrected URL normalization so empty passwords no longer leave a trailing colon, and empty username and password remove the user information and its delimiter.
- Preserved the refusal of loopback and localhost targets across these URL formats.
- Kept the separator for non-empty passwords.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
…in the container validator's returned URL (#651)
WHATWG serialises userinfo from the parsed username/password: the ':'
separator appears only when the password is non-empty, and the whole
'@' drops when both are empty. _encode_userinfo re-added ':' whenever
a raw separator was present, and _url_with_encoded_components kept
the '@' on the raw userinfo's truthiness, so 'user:@' and ':@'
survived into the returned (recorded) URL while the Worker returns
'user@' and no userinfo. #639 dropped the bare '@' but missed the
colon-bearing spellings.
_encode_userinfo now emits the separator only for a non-empty
password, and the '@' decision keys on the encoded userinfo. New test
pins the returned forms plus the controls (:pass@, ::@ -> :%3A@,
user::@, user:pass@); ablation: 1 failure pre-fix, Python 56/56 and
TS 38/38 post-fix, and a differential run against the Worker leaves
no userinfo divergences.
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-10-23T06:19:38.119537Z |
a81aab3 |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

Note Currently processing new changes in this PR. This may take a few minutes, please wait...
⚙️ Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
034c88af-a07b-46a1-9cf0-4026dfe25981
📥 Commits
-
Reviewing files that changed from the base of the PR and between 93065f0 and a81aab3.
📒 Files selected for processing: 2
-
pkgs/lab-ops-hub/container/app.py
pkgs/lab-ops-hub/test/test_container_validate.py
+----------------------------------------------------------+
| Nice abstraction. Shame about the reality underneath it. |
+----------------------------------------------------------+
\
\ (\__/)
(•ㅅ•)
/ づ
✨ Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
-
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|