jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-3657

Ampersand characters cannot be used in profiles.xml (XML parsed twice)

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0.9
  • Fix Version/s: None
  • Component/s: Profiles
  • Labels:
    None
  • Environment:
    OS X (Leopard), Ubunut 8.04
  • Complexity:
    Intermediate

Description

It is not possible to use ampersand characters in the profiles.xml because this is evaluated twice.

My case:
In my profiles.xml, I specify a database connection URL for MySQL where the ampersand character is
used for separating connection parameters:
jdbc:mysql://localhost/myproject?autoReconnect=true&useUnicode=true&characterEncoding=utf8

Because of the XML format, amperands are specified as "&". However, this results in an exception (see attached
excerpt of the stack trace). Is is also not possible to specify the URL in a CDATA section (or even in a combination
of & and CDATA).

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    stacktrace.txt
    06/Jul/08 1:54 PM
    4 kB
    Marcus Spiegel

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MNG-3662 Model interpolation crashes if property resolves to value with ampersand

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
relates to

Bug - A problem which impairs or prevents the functions of the product. MNG-4625 Interpolation of settings.xml fails if an expression's value contains XML markup

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brett Porter added a comment - 05/Aug/08 11:13 PM

does & work?

Show
Brett Porter added a comment - 05/Aug/08 11:13 PM does & work?

People

  • Assignee:
    Benjamin Bentmann
    Reporter:
    Marcus Spiegel
Vote (0)
Watch (1)

Dates

  • Created:
    06/Jul/08 1:54 PM
    Updated:
    07/Apr/10 7:16 AM
    Resolved:
    07/Apr/10 7:16 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.