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

[sqlite3] allow clearing the authoriser callback #88657

Closed
erlend-aasland opened this issue Jun 22, 2021 · 2 comments
Closed

[sqlite3] allow clearing the authoriser callback #88657

erlend-aasland opened this issue Jun 22, 2021 · 2 comments
Assignees
Labels
3.11 only security fixes extension-modules C modules in the Modules dir topic-sqlite3 type-feature A feature request or enhancement

Comments

@erlend-aasland
Copy link
Contributor

BPO 44491
Nosy @pablogsal, @erlend-aasland
PRs
  • bpo-44491: Allow clearing the sqlite3 authoriser callback #26863
  • 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 = 'https://github.com/erlend-aasland'
    closed_at = <Date 2021-06-24.15:24:10.202>
    created_at = <Date 2021-06-22.23:30:45.864>
    labels = ['extension-modules', 'type-feature', '3.11']
    title = '[sqlite3] allow clearing the authoriser callback'
    updated_at = <Date 2021-06-24.15:24:10.201>
    user = 'https://github.com/erlend-aasland'

    bugs.python.org fields:

    activity = <Date 2021-06-24.15:24:10.201>
    actor = 'pablogsal'
    assignee = 'erlendaasland'
    closed = True
    closed_date = <Date 2021-06-24.15:24:10.202>
    closer = 'pablogsal'
    components = ['Extension Modules']
    creation = <Date 2021-06-22.23:30:45.864>
    creator = 'erlendaasland'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44491
    keywords = ['patch']
    message_count = 2.0
    messages = ['396374', '396491']
    nosy_count = 2.0
    nosy_names = ['pablogsal', 'erlendaasland']
    pr_nums = ['26863']
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue44491'
    versions = ['Python 3.11']

    @erlend-aasland
    Copy link
    Contributor Author

    Currently, it is possible to clear both the sqlite3 trace callback and progress handler by passing 'None' as the callback/handler, however it is not possible to clear the authoriser callback.

    Suggesting to allow clearing the authoriser callback with set_authorizer(None).

    See also https://sqlite.org/c3ref/set_authorizer.html

    @erlend-aasland erlend-aasland added the 3.11 only security fixes label Jun 22, 2021
    @erlend-aasland erlend-aasland self-assigned this Jun 22, 2021
    @erlend-aasland erlend-aasland added extension-modules C modules in the Modules dir type-feature A feature request or enhancement 3.11 only security fixes labels Jun 22, 2021
    @erlend-aasland erlend-aasland self-assigned this Jun 22, 2021
    @erlend-aasland erlend-aasland added extension-modules C modules in the Modules dir type-feature A feature request or enhancement labels Jun 22, 2021
    @pablogsal
    Copy link
    Member

    New changeset b19f455 by Erlend Egeberg Aasland in branch 'main':
    bpo-44491: Allow clearing the sqlite3 authoriser callback (GH-26863)
    b19f455

    @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.11 only security fixes extension-modules C modules in the Modules dir topic-sqlite3 type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants