Ticket #91 (closed defect: fixed)
zeroPadder initializes StringBuilder with negative size
| Reported by: | icetan | Owned by: | arneke |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | blobstore | Version: | 1.1.5 |
| Keywords: | Cc: | geowebcache-devel@… |
Description
When requesting tiles with a high storage index GWC returns a 400 error with "null" as description. I found that the method zeroPadder in FilePathGenerator? when called with a number parameter with a length greater then the order parameter throws an exception. This is due to that a StringBuilder? is initialized with a negative size. I have created a patch that adds a check for how many zeros to pad and if it is zero or less then it just returns number as a string.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.