Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-308

InputStream provided by StorageConnector not always at the beginning of the stream

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.3, 0.4, 0.5, 0.6
    • Fix Version/s: 0.7
    • Component/s: Storage
    • Labels:
      None

      Description

      Call to StorageConnector.getStorageAs(InputStream.class) returns an InputStream which does not read from the beginning of the stream if a call to StorageConnection.getStorageAs(…) has been done before for another type.

      The fix is to use InputStream.mark() when the other type is created and InputStream.reset() when the InputStream is requested.

        Attachments

          Activity

            People

            • Assignee:
              desruisseaux Martin Desruisseaux
              Reporter:
              desruisseaux Martin Desruisseaux
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: