You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Petr Kozelka (JIRA)" <ji...@codehaus.org> on 2007/04/10 12:18:46 UTC

[jira] Created: (MSITE-226) Missing escaping of ${project.name} for default site descriptor

Missing escaping of ${project.name} for default site descriptor
---------------------------------------------------------------

                 Key: MSITE-226
                 URL: http://jira.codehaus.org/browse/MSITE-226
             Project: Maven 2.x Site Plugin
          Issue Type: Bug
    Affects Versions: 2.0-beta-6
         Environment: linux, maven-2.0.6
            Reporter: Petr Kozelka
            Priority: Minor


It seems that when using the default site descriptor, no xml escaping is performed for name (and maybe other values).

Excerpt from {{pom.xml}}:
{quote}
  ...
  <name>Module "MyMod-1.0"</name>
  ...
{quote}

Excerpt from build log:
{quote}
...
[INFO] Error parsing site descriptor

Embedded error: expected = after attribute name (position: START_DOCUMENT seen ...ations\nunder the License.\n-->\n\n<project {color:red}name="Module "MyMod-1.0"{color}... @21:36)
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error parsing site descriptor
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
...
{quote}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MSITE-226) Missing escaping of ${project.name} for default site descriptor

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Theussl updated MSITE-226:
--------------------------------

    Component/s: site descriptor

> Missing escaping of ${project.name} for default site descriptor
> ---------------------------------------------------------------
>
>                 Key: MSITE-226
>                 URL: http://jira.codehaus.org/browse/MSITE-226
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: property interpolation, site descriptor
>    Affects Versions: 2.0-beta-6
>         Environment: linux, maven-2.0.6
>            Reporter: Petr Kozelka
>            Priority: Minor
>
> It seems that when using the default site descriptor, no xml escaping is performed for name (and maybe other values).
> Excerpt from {{pom.xml}}:
> {quote}
>   ...
>   <name>Module "MyMod-1.0"</name>
>   ...
> {quote}
> Excerpt from build log:
> {quote}
> ...
> [INFO] Error parsing site descriptor
> Embedded error: expected = after attribute name (position: START_DOCUMENT seen ...ations\nunder the License.\n-->\n\n<project {color:red}name="Module "MyMod-1.0"{color}... @21:36)
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error parsing site descriptor
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> ...
> {quote}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-226) Missing escaping of ${project.name} for default site descriptor

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106194 ] 

Dennis Lundberg commented on MSITE-226:
---------------------------------------

I confirm that this happens if you try to use the name in your site.xml like this:

{code}
<project>
  <body>
    <menu name="Overview for ${project.name}">
      <item name="Introduction" href="index.html"/>
      <item name="Goals" href="plugin-info.html"/>
      <item name="Usage" href="usage.html"/>
      <item name="Javadoc" href="apidocs/index.html"/>
    </menu>
  </body>
</project>
{code}

Resulting in 
{code}
Embedded error: expected = after attribute name (position: TEXT seen ...<body>\r\n    <menu name="Overview for Localization "Tools"... @5:50)
{code}

> Missing escaping of ${project.name} for default site descriptor
> ---------------------------------------------------------------
>
>                 Key: MSITE-226
>                 URL: http://jira.codehaus.org/browse/MSITE-226
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-6
>         Environment: linux, maven-2.0.6
>            Reporter: Petr Kozelka
>            Priority: Minor
>
> It seems that when using the default site descriptor, no xml escaping is performed for name (and maybe other values).
> Excerpt from {{pom.xml}}:
> {quote}
>   ...
>   <name>Module "MyMod-1.0"</name>
>   ...
> {quote}
> Excerpt from build log:
> {quote}
> ...
> [INFO] Error parsing site descriptor
> Embedded error: expected = after attribute name (position: START_DOCUMENT seen ...ations\nunder the License.\n-->\n\n<project {color:red}name="Module "MyMod-1.0"{color}... @21:36)
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error parsing site descriptor
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> ...
> {quote}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-226) Missing escaping of ${project.name} for default site descriptor

Posted by "Petr Kozelka (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92442 ] 

Petr Kozelka commented on MSITE-226:
------------------------------------

more useful part of stacktrace:
{quote}
...
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: expected = after attribute name (position: START_DOCUMENT seen ...ations\nunder the License.\n-->\n\n<project {color:red}name="Module "MyMod-1.0"{color}... @21:36)
        at org.codehaus.plexus.util.xml.pull.MXParser.parseAttribute(MXParser.java:2001)
        at org.codehaus.plexus.util.xml.pull.MXParser.parseStartTag(MXParser.java:1796)
        at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1476)
        at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1392)
        at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1090)
        at org.apache.maven.doxia.site.decoration.io.xpp3.DecorationXpp3Reader.read(DecorationXpp3Reader.java:1162)
        at org.apache.maven.doxia.site.decoration.io.xpp3.DecorationXpp3Reader.read(DecorationXpp3Reader.java:1176)
        at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.readDecorationModel(AbstractSiteRenderingMojo.java:266)
        ... 22 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Tue Apr 10 09:50:31 GMT 2007
[INFO] Final Memory: 12M/22M
[INFO] ------------------------------------------------------------------------
{quote}


> Missing escaping of ${project.name} for default site descriptor
> ---------------------------------------------------------------
>
>                 Key: MSITE-226
>                 URL: http://jira.codehaus.org/browse/MSITE-226
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-6
>         Environment: linux, maven-2.0.6
>            Reporter: Petr Kozelka
>            Priority: Minor
>
> It seems that when using the default site descriptor, no xml escaping is performed for name (and maybe other values).
> Excerpt from {{pom.xml}}:
> {quote}
>   ...
>   <name>Module "MyMod-1.0"</name>
>   ...
> {quote}
> Excerpt from build log:
> {quote}
> ...
> [INFO] Error parsing site descriptor
> Embedded error: expected = after attribute name (position: START_DOCUMENT seen ...ations\nunder the License.\n-->\n\n<project {color:red}name="Module "MyMod-1.0"{color}... @21:36)
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error parsing site descriptor
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> ...
> {quote}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MSITE-226) Missing escaping of ${project.name} for default site descriptor

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MSITE-226:
----------------------------------

    Component/s: site descriptor

> Missing escaping of ${project.name} for default site descriptor
> ---------------------------------------------------------------
>
>                 Key: MSITE-226
>                 URL: http://jira.codehaus.org/browse/MSITE-226
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: site descriptor
>    Affects Versions: 2.0-beta-6
>         Environment: linux, maven-2.0.6
>            Reporter: Petr Kozelka
>            Priority: Minor
>
> It seems that when using the default site descriptor, no xml escaping is performed for name (and maybe other values).
> Excerpt from {{pom.xml}}:
> {quote}
>   ...
>   <name>Module "MyMod-1.0"</name>
>   ...
> {quote}
> Excerpt from build log:
> {quote}
> ...
> [INFO] Error parsing site descriptor
> Embedded error: expected = after attribute name (position: START_DOCUMENT seen ...ations\nunder the License.\n-->\n\n<project {color:red}name="Module "MyMod-1.0"{color}... @21:36)
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error parsing site descriptor
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> ...
> {quote}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira