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

xml.sax Contenthandler passes truncated data #38564

Closed
gtreutwein mannequin opened this issue May 28, 2003 · 2 comments
Closed

xml.sax Contenthandler passes truncated data #38564

gtreutwein mannequin opened this issue May 28, 2003 · 2 comments

Comments

@gtreutwein
Copy link
Mannequin

gtreutwein mannequin commented May 28, 2003

BPO 745145
Nosy @loewis
Files
  • pysax-error.zip: production of test data and reproducable error detection
  • readXml_2.py
  • 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 2003-06-14.07:56:43.000>
    created_at = <Date 2003-05-28.20:11:08.000>
    labels = ['expert-XML', 'invalid']
    title = 'xml.sax Contenthandler passes truncated data'
    updated_at = <Date 2003-06-14.07:56:43.000>
    user = 'https://bugs.python.org/gtreutwein'

    bugs.python.org fields:

    activity = <Date 2003-06-14.07:56:43.000>
    actor = 'loewis'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['XML']
    creation = <Date 2003-05-28.20:11:08.000>
    creator = 'gtreutwein'
    dependencies = []
    files = ['904', '905']
    hgrepos = []
    issue_num = 745145
    keywords = []
    message_count = 2.0
    messages = ['16193', '16194']
    nosy_count = 2.0
    nosy_names = ['loewis', 'gtreutwein']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue745145'
    versions = []

    @gtreutwein
    Copy link
    Mannequin Author

    gtreutwein mannequin commented May 28, 2003

    Error-Message in Python xml.sax module

    writeXml_1 generates a xml file ('testOut.xml' )containing
    random strings and checksums
    'readXml_2 testOut.xml' reads the file and verifies the
    checksums

    Observation: readXml_2 reports checksum errors. The
    error occurs on all tried combinations of (Win2000, Win98
    and OpenBSD 3.2) with (Python 2.2.2 and 2.3a1).
    The corrupted strings reported are located shortly before
    64kByte boundaries in the file.

    @gtreutwein gtreutwein mannequin closed this as completed May 28, 2003
    @gtreutwein gtreutwein mannequin closed this as completed May 28, 2003
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Jun 14, 2003

    Logged In: YES
    user_id=21627

    This is a bug in your code. There is no guarantee that, for
    a chunk of PCDATA text, there will only be one .characters
    callback; the parser may split this up into multiple calls.

    With the attached modified readXml_2.py, the data validate
    just fine.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants