Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A28D9200B76 for ; Tue, 30 Aug 2016 14:56:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A136D160ABA; Tue, 30 Aug 2016 12:56:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1C7BA160AC5 for ; Tue, 30 Aug 2016 14:56:21 +0200 (CEST) Received: (qmail 17856 invoked by uid 500); 30 Aug 2016 12:56:21 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 17514 invoked by uid 99); 30 Aug 2016 12:56:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2016 12:56:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BB1562C1B84 for ; Tue, 30 Aug 2016 12:56:20 +0000 (UTC) Date: Tue, 30 Aug 2016 12:56:20 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-7025) Find boundary from InputStream MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 30 Aug 2016 12:56:22 -0000 [ https://issues.apache.org/jira/browse/CXF-7025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15448939#comment-15448939 ] Sergey Beryozkin commented on CXF-7025: --------------------------------------- It appears this CXF code has rarely if ever been used - in most cases a 'boundary' Content-Type parameter is available. Can you have it set on Content-Type for now ? > Find boundary from InputStream > ------------------------------ > > Key: CXF-7025 > URL: https://issues.apache.org/jira/browse/CXF-7025 > Project: CXF > Issue Type: Bug > Components: Core, JAX-RS > Affects Versions: 3.1.4 > Reporter: Petr Havlena > > in method AttachmentDeserializer.findBoundaryFromInputStream line: "int i = in.read(buf)" is invalid, because read returns "some number of bytes from the input stream and stores them into the buffer array b" so you should check result from read method and repeat reading if neccesary -- This message was sent by Atlassian JIRA (v6.3.4#6332)