Bug 1257021 - (6.4.z) JarIndexer mishandles paths with the extension in multiple elements
Summary: (6.4.z) JarIndexer mishandles paths with the extension in multiple elements
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Other
Version: 6.4.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: EAP 6.4.10
Assignee: baranowb
QA Contact: Peter Mackay
eap-docs
URL:
Whiteboard:
Depends On:
Blocks: 1244860 eap6410-payload
TreeView+ depends on / blocked
 
Reported: 2015-08-26 06:04 UTC by baranowb
Modified: 2017-01-17 12:57 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-01-17 12:57:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JANDEX-32 0 Major Closed JarIndexer mishandles paths with the extension in multiple elements 2016-10-06 04:37:01 UTC

Description baranowb 2015-08-26 06:04:39 UTC
No customer case, created as offspring of upgrade BZ.




FileNotFoundException for some JAR file paths when the index file path is constructed.
The problem appears to be in org.jboss.jandex.JarIndexer#getIndexFile(File, boolean), wherein every occurrence of the extension is replaced in the entire JAR file path, such that path elements that include the extension (e.g., ".jar") are incorrectly modified.
An example from Jandex used in an Arquillian context:
/private/var/folders/41/qy6ftgc53mn4v01s3xnytzgc0000gq/T/arquillian8152228539718351683MyTestApp.jar/MyTestApp.jar
where arquillian8152228539718351683MyTestApp.jar is a directory, and the resulting index file path is
/private/var/folders/41/qy6ftgc53mn4v01s3xnytzgc0000gq/T/arquillian8152228539718351683MyTestApp-jar/MyTestApp-jar.idx
and there is no valid directory named arquillian8152228539718351683MyTestApp-jar

Comment 2 Peter Mackay 2016-08-29 15:37:40 UTC
Verified with EAP 6.4.10.CP.CR2

Comment 3 Petr Penicka 2017-01-17 12:57:21 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.


Note You need to log in before you can comment on or make changes to this bug.