maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Issue Comment Edited: (MNG-3662) Ampersand in Windows username problem
Date Tue, 09 Sep 2008 21:02:49 GMT

    [ http://jira.codehaus.org/browse/MNG-3662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=147484#action_147484
] 

bentmann edited comment on MNG-3662 at 9/9/08 4:01 PM:
----------------------------------------------------------------

>From a mail Artur sent me today I got this snippet from his POM (I asked him to attach
it here for further inspection, too):
{code:xml}
<jdbc.url><![CDATA[jdbc:h2:${java.io.tmpdir}/myapp]]></jdbc.url>
{code}

IIRC, the POM is parsed once, then serialized back into a string, this string is then interpolated
and the result is parsed again into a Maven model. Apparently during serialization into string
form, the original CDATA section markers are lost such that the second parsing step after
interpolation is sensitive to XML metacharacters.

I am not familar with the POM interpolation but maybe we could just make the MavenXpp3Writer
always wrap text with CDATA sections (if requested via some flag). This way, the interpolator
doesn't need to care about XML escaping but can safely insert replacement values for the expressions.


      was (Author: bentmann):
    From a mail Artur sent me today I got this snippet from his POM (I asked him to attach
it here for further inspection, too):
{code:xml}
<jdbc.url><![CDATA[jdbc:h2:${java.io.tmpdir}/myapp]]></jdbc.url>
{code}

IIRC, the POM is parsed once, then serialized back into a string, this string is then interpolated
and the result is parsed again into a Maven model. Apparently during serialization into string
form, the original CDATA section markers are lost such that the second parsing step after
interpolation is sensitive to XML metacharacters.

I am too familar with the POM interpolation but maybe we could just make the MavenXpp3Writer
always wrap text with CDATA sections (if requested via some flag). This way, the interpolator
doesn't need to care about XML escaping but can safely insert replacement values for the expressions.

  
> Ampersand in Windows username problem
> -------------------------------------
>
>                 Key: MNG-3662
>                 URL: http://jira.codehaus.org/browse/MNG-3662
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 2.0.9
>         Environment: Windows Vista Small Business
>            Reporter: Artur Smiejowski
>             Fix For: 2.0.11
>
>         Attachments: escape-shell-chars.patch
>
>
> Halo!
> Maven don't work when In Windows user has ampersand in the name for example username=Tom&Jerry.
Windows allows usernames like this, but Maven treat ampersand in the name of users main folder
as a part of some url (?) or something ... and cannot get path properly. Windows do not allow
to change username with all user's foldernames.
> Artur

-- 
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

        

Mime
View raw message