Re: ChecksumPath exception on unexistent assets

2022-05-09 Thread Ben Weidig
Hi Bob, thanks for the patch! I've changed it to an early return to don't check for -1 again, and added some tests. https://github.com/apache/tapestry-5/commit/b01906961a456656404fc2bc9d85ea2aeff10c53 Cheers, Ben On Mon, May 9, 2022 at 3:57 PM Roberto wrote: > Hi Ben, > > a possible solution

Re: ChecksumPath exception on unexistent assets

2022-05-09 Thread Roberto
Hi Ben, a possible solution for TAP5-2713 (ChecksumPath: java.lang.StringIndexOutOfBoundsException) ticket could be this: In 'ChecksumPath' method only check 'slashx' variable and if it is -1 return NON_EXISTING_RESOURCE, otherwise it executes the normal code. The patch is in attached.