Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-75

ZipArchiveInputStream does not show location in file where a problem occurred

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Component/s: None
    • Labels:
      None

      Description

      See COMPRESS-62 - if ExtraFieldUtils.parse() detects an error, it only shows the offset within the local buffer, which is fairly useless in tracking down a problem.

      Somehow the current location in the file needs to be determined and added to the Exception message.

      The count/bytesRead field would help, but that actually points to the next available byte, i.e. after the problem area.
      Also, the internal data may have been expanded.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sebb Sebb
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: