[ 
https://issues.apache.org/jira/browse/FELIX-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839995#action_12839995
 ] 

Sahoo commented on FELIX-1210:
------------------------------

As the attached test case shows, it is pretty easy to create jars with missing 
dir entries. e.g., the following jar command does not create dir entries for a/ 
and a/b/:

jar cvf foo.jar a/b/c.class.

I also confirm that Equinox is able to find those missing dir entries. If 
getEntryPaths does not report missing jar entries, how can one list all the 
entries of a bundle without having to explode the bundle? findEntries is not 
good enough as it includes contents from fragments.

> Allow jars with missing intermediate entries to be handled as if they were 
> present in Bundle.getEntryPaths
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1210
>                 URL: https://issues.apache.org/jira/browse/FELIX-1210
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: felix-1.8.0
>         Environment: generic
>            Reporter: Sahoo
>         Attachments: FELIX-1210.zip
>
>
> Refer to the entire discussion in users alias:
> http://markmail.org/message/hd6wp7c6agadr6al?q=how+to+iterate+entries+sahoo
> I think it will be good if Felix could tolerate the broken jar and return the 
> entries just like KF and Equinox does, otherwise there is no way to iterate 
> over all the entries of such a jar.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to