Return-Path: Delivered-To: apmail-incubator-chemistry-dev-archive@minotaur.apache.org Received: (qmail 21513 invoked from network); 12 Jul 2010 20:41:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Jul 2010 20:41:15 -0000 Received: (qmail 57898 invoked by uid 500); 12 Jul 2010 20:41:15 -0000 Delivered-To: apmail-incubator-chemistry-dev-archive@incubator.apache.org Received: (qmail 57818 invoked by uid 500); 12 Jul 2010 20:41:14 -0000 Mailing-List: contact chemistry-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chemistry-dev@incubator.apache.org Delivered-To: mailing list chemistry-dev@incubator.apache.org Received: (qmail 57741 invoked by uid 99); 12 Jul 2010 20:41:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jul 2010 20:41:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jul 2010 20:41:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6CKeoKq010964 for ; Mon, 12 Jul 2010 20:40:50 GMT Message-ID: <31845537.332891278967250305.JavaMail.jira@thor> Date: Mon, 12 Jul 2010 16:40:50 -0400 (EDT) From: "Jeff Potts (JIRA)" To: chemistry-dev@incubator.apache.org Subject: [jira] Created: (CMIS-231) setContentStream sets document mime type to application/atom+xml MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org setContentStream sets document mime type to application/atom+xml ---------------------------------------------------------------- Key: CMIS-231 URL: https://issues.apache.org/jira/browse/CMIS-231 Project: Chemistry Issue Type: Bug Components: cmislib Reporter: Jeff Potts Assignee: Jeff Potts Migrated from GC issue #10, Reported by bdkahn, Mar 23, 2010 What steps will reproduce the problem? 1. create an HTML document with createDocument 2. update contents using setDocumentStream What is the expected output? What do you see instead? HTML document no longer has the text/html mime type, but instead is application/atom+xml What version of the product are you using? On what operating system? 0.3dev on Fedora 12 x86_64 Please provide any additional information below. Looks like: # build the Atom entry #xmlDoc = self._getEntryXmlDoc(contentFile=contentFile) # post the Atom entry result = self._cmisClient.put(srcUrl, contentFile.read(), ATOM_XML_TYPE) if type(result) == HTTPError: raise CmisException(result.code) is the problem -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.