Archiva

extensionPattern in FilenameParser is incorrect

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0.2
  • Fix Version/s: 1.0.2
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes
  • Patch Submitted:
    Yes
  • Number of attachments :
    0

Description

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()); }

Activity

Hide
Brett Porter added a comment -

applied, thanks!

Show
Brett Porter added a comment - applied, thanks!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: