Skip to content

Incorrect getText() after parsing the DOCDECL section #194

Closed
@belingueres

Description

@belingueres
Contributor

In plexus-utils 3.4.1 and 3.4.0, the text inside the DOCDECL section is incorrectly parsed:
In this XML file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document [
<!ENTITY flo "&#x159;">
<!ENTITY myCustomEntity "&flo;">
]>
<document>&myCustomEntity;</document>

the getText() call after parsing the DOCDECL token should be:

 document [
<!ENTITY nbsp   "&#160;"> <!-- no-break space = non-breaking space, U+00A0 ISOnum -->
<!ENTITY Alpha    "&#913;"> <!-- greek capital letter alpha, U+0391 -->
<!ENTITY tritPos  "&#x1d7ed;"> <!-- MATHEMATICAL SANS-SERIF BOLD DIGIT ONE -->
<!ENTITY flo "&#x159;">
<!ENTITY myCustomEntity "&flo;">
]

but was: &#x159;

Activity

added a commit that references this issue on Apr 5, 2022
added a commit that references this issue on Apr 6, 2022
added a commit that references this issue on Apr 16, 2022
michael-o

michael-o commented on Apr 16, 2022

@michael-o
Member

Fixed with #195.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @michael-o@belingueres

        Issue actions

          Incorrect getText() after parsing the DOCDECL section · Issue #194 · codehaus-plexus/plexus-utils