Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2942

& symbol in OSGI config is resulting in an error at build time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • None
    • None
    • Using the latest Apache Sling that is bundled in CQ 5.6.1.20130606

    Description

      When an ampersand(&) is used in OSGI config string it is resulting in error on the maven at build time.
      When the ampersand is removed from the OSGI config is making the build to pass.

      com.a.b.c.TestClass.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
      jcr:primaryType="sling:OsgiConfig"
      login.url="https://aa.bb.com/external/auth/login.action?request_locale=en_US&url=http://aaa.bbb.ccom"/>

      maven-error:
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.codehaus.mojo:xml-maven-plugin:1.0:validate (default) on project app: While parsing C:\sources\trunk\app\jcr_root\apps\aaa\config.author\com.a.b.c.TestClass.xml, at file:/C/sources/trunk/app/aaa/jcr_root/apps/aaa/config.author/com.a.b.c.TestClass.xml, line 6, column 113: The entity name must immediately follow the '&' in the entity reference. -> [Help 1]
      [ERROR]

      Attachments

        Activity

          People

            Unassigned Unassigned
            bkondepudi Bala Kondepudi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: