[
https://issues.apache.org/jira/browse/ARIES-1148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14036064#comment-14036064
]
ASF GitHub Bot commented on ARIES-1148:
---------------------------------------
GitHub user cvgaviao opened a pull request:
https://github.com/apache/aries/pull/16
ARIES-1148 - prevent a NPE ignoring files other than zip archives
this patch fix the NPE that happens when it tries to process directories or
files that are not a bundle jar.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cvgaviao/aries ARIES-1148
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/aries/pull/16.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #16
----
commit 3ca005b01296caaf04c6b4e54aecab6b225d7e46
Author: Cristiano Gavião <[email protected]>
Date: 2014-06-18T18:04:48Z
ARIES-1148 - prevent a NPE ignoring files other than zip archives
----
> Deploying a subsystem file with directory entries causes a NPE
> --------------------------------------------------------------
>
> Key: ARIES-1148
> URL: https://issues.apache.org/jira/browse/ARIES-1148
> Project: Aries
> Issue Type: Bug
> Components: Subsystem
> Affects Versions: 1.0.1-SNAPSHOT
> Reporter: David Bosschaert
> Attachments: npe.esa
>
>
> The attached npe.esa file contains the following entries:
> {code}$ jar tvf npe.esa
> 0 Wed Jan 15 15:07:04 GMT 2014 OSGI-INF/
> 199 Wed Jan 15 15:07:04 GMT 2014 OSGI-INF/DEPLOYMENT.MF
> 175 Wed Jan 15 15:01:30 GMT 2014 OSGI-INF/SUBSYSTEM.MF{code}
> Deploying it will cause an NPE.
> Creating the zip file without directory entries solves the problem, so that's
> a workaround, but I think subsystems should be forgiving about this and
> simply ignore directory entries.
--
This message was sent by Atlassian JIRA
(v6.2#6252)