Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-1190

Glassfish <systemProperties> should be XML-encoded when added to domain.xml

    Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 1.4.0
    • Components: Glassfish
    • Labels:
      None

      Description

      Maven properties provided as the values for <systemProperties> that include reserved XML characters (example below) cause Glassfish to fail to start with an XML parsing error.

      <properties>
      <foo>a&amp;b</foo>
      </properties>
      ...
      <container>
      ...
      <systemProperties>
      <foo>${foo}</foo>
      </systemProperties>
      ...
      </container>
      

      A workaround is to double-escape the property, e.g. <foo>a&amp;b</foo>, but that makes it difficult to reuse the property value elsewhere.

        Attachments

          Activity

            People

            • Assignee:
              savasalitokmen Savas Ali Tokmen (Inactive)
              Reporter:
              alitokmen S. Ali Tokmen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: