urllib.parse.urlparse accepts any falsy value as an url

Offen
#66,430 19 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
18/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
backend

Rechercherichtung

Start with urllib.parse.urlparse and the historical issue22234 patches listed in the report, especially the deprecation and disallow patches. Review the existing behavior and related tests, then confirm the accepted handling of falsy, non-string, and non-byte arguments; the issue is done when that behavior is tested and matches the agreed compatibility path.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

stdlib type-bug
BPO 22234
Nosy @orsenthil, @bitdancer, @vadmium, @serhiy-storchaka, @ztane, @demianbrecht, @poleto, @jacobtylerwalls
PRs
  • python/cpython#26687
  • Files
  • issue22234_36.patch: Patch with the deprecation warning to be applied on Python 3.6.
  • issue22234_37.patch: Changes to urlparse to handle non-str and non-byte arguments
  • urlparse_empty_bad_arg_deprecation.patch
  • urlparse_empty_bad_arg_disallow.patch
  • urlparse_empty_bad_arg_deprecation2.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2014-08-20.12:39:51.904>
    labels = ['type-bug', 'library']
    title = 'urllib.parse.urlparse accepts any falsy value as an url'
    updated_at = <Date 2021-06-13.22:43:49.238>
    user = 'https://github.com/ztane'
    

    bugs.python.org fields:

    activity = <Date 2021-06-13.22:43:49.238>
    actor = 'jacobtylerwalls'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2014-08-20.12:39:51.904>
    creator = 'ztane'
    dependencies = []
    files = ['42591', '42592', '42600', '42602', '42607']
    hgrepos = []
    issue_num = 22234
    keywords = ['patch']
    message_count = 19.0
    messages = ['225566', '225832', '260671', '264023', '264210', '264211', '264217', '264219', '264261', '264269', '264278', '264344', '264346', '264347', '264357', '264427', '265030', '395765', '395766']
    nosy_count = 8.0
    nosy_names = ['orsenthil', 'r.david.murray', 'martin.panter', 'serhiy.storchaka', 'ztane', 'demian.brecht', 'luiz.poleto', 'jacobtylerwalls']
    pr_nums = ['26687']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue22234'
    versions = ['Python 3.6']
    

    Vorherrschende Sprache
    Python
    Sterne
    77.2k
    Forks
    36k
    Ø Merge
    1 T. 9 Std.
    Gemergte PRs (30 T.)
    558

    Beitragsleitfaden

    Beitragsleitfaden öffnen

    Erste Schritte

    1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
    2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
    3. Forken Sie das Repository und arbeiten Sie in einem Branch.
    4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

    Mehr aus python/cpython

    Alle Issues in python/cpython

    Ähnliche Issues

    Weitere Issues zu Python

    Neue Issues direkt in Ihr Postfach

    Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.