Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: plexus-io-2.0.2, plexus-archiver-2.0.2
-
Fix Version/s: plexus-io-2.0.3
-
Component/s: plexus-io
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
I have a case where I am using the TarArchiver and in creating the archive there is a call to PlexusIoResourceAttributeUtils.mergeAttributes where the base parameter is null. This throws an NPE as some of the calls to getXXXId() return an Integer and this is null.
I have changed this to check for null before the comparison to -1.
Issue Links
- is related to
-
PLXCOMP-200
PlexusIoResourceAttributeUtils can cause NPE if the base parameter is null
-
- relates to
-
PLXCOMP-220
[REGRESSION] Tar archiver produces tar files with invalid uid/gid fields on Windows
-
Sorry - clone went wrong.
This issue is when an override may only have partial information such as only an override for a user id and not group id.
The patch attached fixes this issue (as a result of Sergei Ivanov's input to the previous fix for an NPE)