You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/02/25 12:24:28 UTC

[jira] Closed: (MRM-713) extensionPattern in FilenameParser is incorrect

     [ http://jira.codehaus.org/browse/MRM-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MRM-713.
----------------------------

      Assignee: Brett Porter
    Resolution: Fixed

applied, thanks!

> extensionPattern in FilenameParser is incorrect
> -----------------------------------------------
>
>                 Key: MRM-713
>                 URL: http://jira.codehaus.org/browse/MRM-713
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 1.0.2
>            Reporter: james ahlborn
>            Assignee: Brett Porter
>            Priority: Minor
>             Fix For: 1.0.2
>
>
> in FileNameParser.java:
>     * extensionPattern is bogus. I assume that the '.' chars are supposed to be literal chars, should be:
> "([.]tar[.]gz$)|([.]tar[.]bz2$)|([.][a-z0-9]*$)"
> TestCase:
>   public void testNoExtension()
>   {
>     FilenameParser parser = new FilenameParser("foo_bar");
>     assertNull(parser.getExtension());
>   }

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