Skip to content

Lib/http/server.py: Return HTTPStatus.NOT_FOUND if path.endswith(/) and not a directory #78892

Closed
@aixtools

Description

@aixtools
BPO 34711
Nosy @ncoghlan, @vstinner, @jkloth, @vadmium, @eryksun, @matrixise, @aixtools
PRs
  • bpo-34711: On systems that open() a regular file with a trailing slash respond with ENOTDIR #9360
  • bpo-34711: Fix test_httpservers for AIX (trailingSlashOK) #9675
  • bpo-34711: Return HTTPStatus.NOT_FOUND if path.endswith(/) and not a directory #9687
  • [3.7] bpo-34711: Return HTTPStatus.NOT_FOUND if path.endswith(/) and not a directory (GH-9687) #14197
  • Files
  • mime-attachment
  • encrypted.asc
  • 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 = <Date 2018-12-28.14:07:12.834>
    created_at = <Date 2018-09-17.10:23:18.283>
    labels = ['3.8', 'type-bug', 'library']
    title = 'Lib/http/server.py: Return HTTPStatus.NOT_FOUND if path.endswith(/) and not a directory'
    updated_at = <Date 2019-09-10.13:48:50.068>
    user = 'https://github.com/aixtools'

    bugs.python.org fields:

    activity = <Date 2019-09-10.13:48:50.068>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-12-28.14:07:12.834>
    closer = 'ncoghlan'
    components = ['Library (Lib)']
    creation = <Date 2018-09-17.10:23:18.283>
    creator = 'Michael.Felt'
    dependencies = []
    files = ['47840', '47841']
    hgrepos = []
    issue_num = 34711
    keywords = ['patch']
    message_count = 19.0
    messages = ['325519', '325521', '325532', '325546', '325624', '326867', '326880', '326886', '326887', '326888', '326889', '326899', '326901', '326919', '326953', '332531', '337633', '337653', '337696']
    nosy_count = 7.0
    nosy_names = ['ncoghlan', 'vstinner', 'jkloth', 'martin.panter', 'eryksun', 'matrixise', 'Michael.Felt']
    pr_nums = ['9360', '9675', '9687', '14197']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue34711'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifestdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions