You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/03/13 00:46:45 UTC

[Bug 56253] New: StringIndexOutOfBoundsException in AbstractArchiveResourceSet.list() method

https://issues.apache.org/bugzilla/show_bug.cgi?id=56253

            Bug ID: 56253
           Summary: StringIndexOutOfBoundsException in
                    AbstractArchiveResourceSet.list() method
           Product: Tomcat 8
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: Larry.Isaacs@sas.com

Created attachment 31384
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31384&action=edit
Simple patch to add needed string length check.

Like in the AbstractArchiveResourceSet.getResource() method, the pathInJar
variable can be an empty string in the list() method too.  A length check is
needed for list() the same as for getResource().  Marking as major since this
is needed for the Eclipse Tomcat "Serve modules without publishing" feature to
work with Tomcat 8.

Thanks,
Larry

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 56253] StringIndexOutOfBoundsException in AbstractArchiveResourceSet.list() method

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56253

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the report. I added some test cases for this and the other methods
that use pathInJar. That found a couple of other issues that I also fixed.

The fix is in 8.0.x for 8.0.4 onwards.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org