[ 
https://issues.apache.org/jira/browse/SLING-2942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bertrand Delacretaz resolved SLING-2942.
----------------------------------------

    Resolution: Invalid

Your XML is not well-formed, ampersand should be escaped:

login.url="https://aa.bb.com/external/auth/login.action?request_locale=en_US&url=http://aaa.bbb.ccom";

Resolving invalid - not a Sling problem.
                
> & symbol in OSGI config is resulting in an error at build time
> --------------------------------------------------------------
>
>                 Key: SLING-2942
>                 URL: https://issues.apache.org/jira/browse/SLING-2942
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins and Archetypes
>         Environment: Using the latest Apache Sling that is bundled in CQ 
> 5.6.1.20130606
>            Reporter: Bala Kondepudi
>            Priority: Critical
>              Labels: osgi-config, sling
>
> 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]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to