From commits-return-10031-apmail-sis-commits-archive=sis.apache.org@sis.apache.org Fri Nov 17 14:35:03 2017 Return-Path: X-Original-To: apmail-sis-commits-archive@www.apache.org Delivered-To: apmail-sis-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC6B7105C0 for ; Fri, 17 Nov 2017 14:35:03 +0000 (UTC) Received: (qmail 9348 invoked by uid 500); 17 Nov 2017 14:35:03 -0000 Delivered-To: apmail-sis-commits-archive@sis.apache.org Received: (qmail 9318 invoked by uid 500); 17 Nov 2017 14:35:03 -0000 Mailing-List: contact commits-help@sis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sis-dev@sis.apache.org Delivered-To: mailing list commits@sis.apache.org Received: (qmail 9309 invoked by uid 99); 17 Nov 2017 14:35:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Nov 2017 14:35:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id F1DC0180FA9 for ; Fri, 17 Nov 2017 14:35:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id oM2OeHEjdh9O for ; Fri, 17 Nov 2017 14:35:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 91E855FC55 for ; Fri, 17 Nov 2017 14:35:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D3673E0295 for ; Fri, 17 Nov 2017 14:35:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8E98A240CE for ; Fri, 17 Nov 2017 14:35:00 +0000 (UTC) Date: Fri, 17 Nov 2017 14:35:00 +0000 (UTC) From: "Martin Desruisseaux (JIRA)" To: commits@sis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (SIS-308) InputStream provided by StorageConnector not always at the beginning of the stream MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SIS-308?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:all-tabpanel ] Martin Desruisseaux closed SIS-308. ----------------------------------- > InputStream provided by StorageConnector not always at the beginning of t= he stream > -------------------------------------------------------------------------= --------- > > Key: SIS-308 > URL: https://issues.apache.org/jira/browse/SIS-308 > Project: Spatial Information Systems > Issue Type: Bug > Components: Storage > Affects Versions: 0.3, 0.4, 0.5, 0.6 > Reporter: Martin Desruisseaux > Assignee: Martin Desruisseaux > Fix For: 0.7 > > > Call to {{StorageConnector.getStorageAs(InputStream.class)}} returns an {= {InputStream}} which does not read from the beginning of the stream if a ca= ll to {{StorageConnection.getStorageAs(=E2=80=A6)}} has been done before fo= r another type. > The fix is to use {{InputStream.mark()}} when the other type is created a= nd {{InputStream.reset()}} when the {{InputStream}} is requested. -- This message was sent by Atlassian JIRA (v6.4.14#64029)