mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-26 09:36:01 +03:00
[GH-ISSUE #1411] a bug of urllib.parse.urljoin #3870
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#3870
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tqobqbq on GitHub (Apr 16, 2024).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1411
the change from "http://" to 'http:/' in the sub url is not what I expected.

This bug stem from the filter statement from urljoin:
And simpily comment out the filter statement return a proper result in this case.
@pirate commented on GitHub (Apr 25, 2024):
Woah good find, it looks like it's an old known issue in the cpython source:
https://github.com/python/cpython/issues/84774#issuecomment-2076080928
while digging I found out
urljoinactually has many unfortunate problems:../: https://github.com/python/cpython/issues/96015?empty query param: https://github.com/python/cpython/issues/76960#empty search param: https://github.com/python/cpython/issues/83980I wish we could use JS's
new URL(part, base)behavior instead:https://developer.mozilla.org/en-US/docs/Web/API/URL/URL
@pirate commented on GitHub (Apr 25, 2024):
Fixed in
e5aba0d