You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "james ahlborn (JIRA)" <ji...@codehaus.org> on 2008/02/22 19:32:29 UTC

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

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
            Priority: Minor


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

        

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

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ 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

        

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

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MRM-713:
-----------------------------

    Fix Version/s: 1.0.2

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