Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5792

XmlNodePrinter uses quote variables for more than just attributes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.5
    • Fix Version/s: 2.0.6, 2.1.0-beta-1
    • Component/s: XML Processing
    • Labels:
      None

      Description

      XmlNodePrinter.printEscaped is not checking isAttributeValue when deciding to use the quote variable for single quotes and double quotes. This means than in the body of an XML element it'll avoid quoting single or double quote if the quote variable is respectively a single or double quote. The quote variable should ONLY apply to attributes. This is causing the output to not be quoted when it should be.

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              quidryan Justin Ryan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: