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 67391200BAF for ; Mon, 17 Oct 2016 05:42:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 65D2C160AF8; Mon, 17 Oct 2016 03:42:00 +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 ACFD8160AD0 for ; Mon, 17 Oct 2016 05:41:59 +0200 (CEST) Received: (qmail 48771 invoked by uid 500); 17 Oct 2016 03:41:58 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 48750 invoked by uid 99); 17 Oct 2016 03:41:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2016 03:41:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 78FD32C4C74 for ; Mon, 17 Oct 2016 03:41:58 +0000 (UTC) Date: Mon, 17 Oct 2016 03:41:58 +0000 (UTC) From: "Ron Gavlin (JIRA)" To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CMIS-1001) Parse Content-MD5 Mime Header and use it for validation if present MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 17 Oct 2016 03:42:00 -0000 [ https://issues.apache.org/jira/browse/CMIS-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15581098#comment-15581098 ] Ron Gavlin edited comment on CMIS-1001 at 10/17/16 3:41 AM: ------------------------------------------------------------ The proposed patch for the Browser Binding is available as PR: https://github.com/apache/chemistry-opencmis/pull/9. Please review and provide feedback. Thanks, Ron was (Author: rgavlin): The proposed patch is available as PR: https://github.com/apache/chemistry-opencmis/pull/9. Please review and provide feedback. Thanks, Ron > Parse Content-MD5 Mime Header and use it for validation if present > ------------------------------------------------------------------ > > Key: CMIS-1001 > URL: https://issues.apache.org/jira/browse/CMIS-1001 > Project: Chemistry > Issue Type: Improvement > Components: opencmis-server > Affects Versions: OpenCMIS 1.0.0 > Reporter: Ron Gavlin > Priority: Minor > > Sometimes content streams get corrupted over the wire. Content stream hashes are often used to protect against these corruptions. > Apache Chemistry OpenCMIS should validate contentStream input to AtomPub and Browser Binding CMIS operations, including setContentStream, appendContentStream, checkIn, and createDocument, by comparing the content stream MD5 hash against a Content-MD5 MIME header if present. A CMIS invalidArgument exception should be thrown if the hashes are not equal. -- This message was sent by Atlassian JIRA (v6.3.4#6332)