[overlord-issues] [JBoss JIRA] (SRAMP-393) S-RAMP Archive Util fails for out-of-order zip files

Eric Wittmann (JIRA) issues at jboss.org
Wed Apr 2 08:35:14 EDT 2014


Eric Wittmann created SRAMP-393:
-----------------------------------

             Summary: S-RAMP Archive Util fails for out-of-order zip files
                 Key: SRAMP-393
                 URL: https://issues.jboss.org/browse/SRAMP-393
             Project: S-RAMP
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 0.4.0 - Tomcat Support
            Reporter: Eric Wittmann
            Assignee: Eric Wittmann
             Fix For: 0.5.0 - API Management


Bug in this line of code:

https://github.com/Governance/s-ramp/blob/master/s-ramp-atom/src/main/java/org/overlord/sramp/atom/archive/ArchiveUtils.java#L59

If the zip file entries are out of order, that line could fail because the folder was already created.  Simple fix is to check for the existence of that folder first before trying to create it.

Also, we probably need to do a mkdirs() on it, since it might occur before its parent directory entry.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the overlord-issues mailing list