Skip to content

ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used #61290

Open
@SilverbackNet

Description

@SilverbackNet
BPO 17088
Nosy @rhettinger, @scoder, @silverbacknet, @vadmium, @SpecLad, @mthuurne
PRs
  • bpo-17088: Fix handling of XML attributes when serializing with default namespace #11050
  • Files
  • bug17088_1.patch: Patch and test case
  • bug17088_2.patch: Improved patch and test case
  • 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 2013-01-31.02:35:07.204>
    labels = ['expert-XML', 'type-bug', '3.10', '3.11']
    title = 'ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used'
    updated_at = <Date 2021-07-19.12:58:02.922>
    user = 'https://github.com/SilverbackNet'

    bugs.python.org fields:

    activity = <Date 2021-07-19.12:58:02.922>
    actor = 'scoder'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['XML']
    creation = <Date 2013-01-31.02:35:07.204>
    creator = 'silverbacknet'
    dependencies = []
    files = ['32981', '33125']
    hgrepos = []
    issue_num = 17088
    keywords = ['patch']
    message_count = 17.0
    messages = ['181005', '205281', '205951', '206156', '206186', '206217', '209424', '216061', '216067', '261785', '304120', '331390', '331432', '354101', '365760', '397793', '397794']
    nosy_count = 14.0
    nosy_names = ['rhettinger', 'scoder', 'eli.bendersky', 'wiml', 'silverbacknet', 'martin.panter', 'SpecLad', 'gene_wood', 'marczellm', 'Garrett Birkel', 'Rafael Ascensao', 'mthuurne', 'carlschaefer', 'dtluttik']
    pr_nums = ['11050']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue17088'
    versions = ['Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixestopic-XMLtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions