Skip to content

Item with unicode causes vobject.base.ParseError if allowQP=True is set #123

@pbiering

Description

@pbiering

This is related to Kozea/Radicale#1943

Replayed with: python3-vobject-0.9.8-6.fc44.noarch on Fedora Linux

Demo code attached.

Tried to trace down but had no success.

Final error

Traceback (most recent call last):
  File "radicale-item-check-demo.py", line 63, in <module>
    vobject_items = list(vobject.readComponents(item_reformatted_serialized, allowQP=True))
  File "/usr/lib/python3.14/site-packages/vobject/base.py", line 1166, in readComponents
    vline = textLineToContentLine(line, n)
  File "/usr/lib/python3.14/site-packages/vobject/base.py", line 984, in textLineToContentLine
    return ContentLine(*parseLine(text, n), **{"encoded": True, "lineNumber": n})
                        ~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/vobject/base.py", line 864, in parseLine
    raise ParseError("Failed to parse line: {0!s}".format(line), lineNumber)
vobject.base.ParseError: At line 12: Failed to parse line:                   </span><br><span>              

radicale-item-check-demo.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions