You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/08/22 17:21:41 UTC

DO NOT REPLY [Bug 45675] New: Manifest task disallows the character '8' in attribute names

https://issues.apache.org/bugzilla/show_bug.cgi?id=45675

           Summary: Manifest task disallows the character '8' in attribute
                    names
           Product: Ant
           Version: 1.7.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: russella@avaya.com


When updating manifest files the build will fail if the character 8 is used in
any of the attribute names.  This happens regardless of whether this is done
within a jar task or you are using the manifest task directly.

Since Ant 1.7.1 it seems that ManifestTask is validating attribute names to
make sure that they contain no invalid characters.  Having looked in the latest
source for org.apache.tools.ant.taskdefs.ManifestTask it appears that 8 has
been accidentally omitted from the field VALID_ATTRIBUTE_CHARS.

Here's the test script and it's output:

<?xml version="1.0"?>
<project name="test" default="test">
    <description>Test</description>
    <target name="test">
        <manifest file="test.mf">
            <attribute name="attrib8" value="test attribute"/>
        </manifest>
    </target>
</project>


$ ant
Buildfile: build.xml

test:

BUILD FAILED
e:\build.xml:6: Manifest attribute names must not contain '8'

Total time: 0 seconds


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45675] Manifest task disallows the character '8' in attribute names

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45675


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |1.8.0




--- Comment #2 from Stefan Bodewig <bo...@apache.org>  2008-08-22 08:50:41 PST ---
svn revision 688105


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 45675] Manifest task disallows the character '8' in attribute names

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45675


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |notifications@ant.apache.org
         AssignedTo|notifications@ant.apache.org|bodewig@apache.org
           Severity|normal                      |regression




--- Comment #1 from Stefan Bodewig <bo...@apache.org>  2008-08-22 08:45:32 PST ---
ouch!

confirmed


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.