Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launcher does not validate major versions #78746

Closed
bgerrity mannequin opened this issue Sep 2, 2018 · 8 comments
Closed

Launcher does not validate major versions #78746

bgerrity mannequin opened this issue Sep 2, 2018 · 8 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes OS-windows type-bug An unexpected behavior, bug, or error

Comments

@bgerrity
Copy link
Mannequin

bgerrity mannequin commented Sep 2, 2018

BPO 34565
Nosy @pfmoore, @tjguk, @ned-deily, @zware, @serhiy-storchaka, @zooba, @bgerrity
PRs
  • bpo-34565: Validate major version in launcher #9037
  • [3.7] bpo-34565: Change a PC/launcher.c comment to accurately describe valid major versions. (GH-9037) #9065
  • 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-10-15.23:18:30.595>
    created_at = <Date 2018-09-02.20:03:40.425>
    labels = ['3.8', 'type-bug', '3.7', 'OS-windows']
    title = 'Launcher does not validate major versions'
    updated_at = <Date 2018-10-15.23:18:30.593>
    user = 'https://github.com/bgerrity'

    bugs.python.org fields:

    activity = <Date 2018-10-15.23:18:30.593>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-10-15.23:18:30.595>
    closer = 'ned.deily'
    components = ['Windows']
    creation = <Date 2018-09-02.20:03:40.425>
    creator = 'bgerrity'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34565
    keywords = ['patch']
    message_count = 8.0
    messages = ['324483', '324494', '324495', '324496', '324500', '324595', '327208', '327804']
    nosy_count = 7.0
    nosy_names = ['paul.moore', 'tim.golden', 'ned.deily', 'zach.ware', 'serhiy.storchaka', 'steve.dower', 'bgerrity']
    pr_nums = ['9037', '9065']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue34565'
    versions = ['Python 3.7', 'Python 3.8']

    @bgerrity
    Copy link
    Mannequin Author

    bgerrity mannequin commented Sep 2, 2018

    When a version argument is passed to the launcher (e.g. py -3.4 or py -7.0), contrary to the launcher help text, the major version isn't validated as 2 or 3.

    @bgerrity bgerrity mannequin added 3.7 (EOL) end of life 3.8 only security fixes OS-windows type-bug An unexpected behavior, bug, or error labels Sep 2, 2018
    @serhiy-storchaka
    Copy link
    Member

    What is wrong with supporting version 7.0?

    @bgerrity
    Copy link
    Mannequin Author

    bgerrity mannequin commented Sep 3, 2018

    The function's comment says otherwise; I just noticed when I was messing with 34565. Supporting arbitrary major versions makes the -0 arg ambiguous so alternatively that could be the special case?

    @serhiy-storchaka
    Copy link
    Member

    Wouldn't be better to fix a comment?

    @bgerrity
    Copy link
    Mannequin Author

    bgerrity mannequin commented Sep 3, 2018

    Added a commit that just changes the comment.

    @zooba
    Copy link
    Member

    zooba commented Sep 4, 2018

    New changeset 3876af4 by Steve Dower (Brendan Gerrity) in branch 'master':
    bpo-34565: Change a PC/launcher.c comment to accurately describe valid major versions. (GH-9037)
    3876af4

    @ned-deily
    Copy link
    Member

    New changeset 28dd737 by Ned Deily (Miss Islington (bot)) in branch '3.7':
    bpo-34565: Change a PC/launcher.c comment to accurately describe valid major versions. (GH-9037) (GH-9065)
    28dd737

    @ned-deily
    Copy link
    Member

    I assume we can close this now. Thanks, all!

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life 3.8 only security fixes OS-windows type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants