Bug 780071 (SOA-2437)

Summary: Unable to publish XMI file for sequencing
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Boris Belovic <bbelovic>
Component: EDSAssignee: Van Halbert <vhalbert>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0.ER2   
Target Milestone: ---   
Target Release: 5.1.0.ER4   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-2437
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-03 15:18:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Boris Belovic 2010-10-18 20:25:22 UTC
project_key: SOA

I tried to publish XMI file (using Modeshape's REST client) into /files directory, but I was unsuccessful as I've got HTTP 400 error with message "java.lang.IllegalStateException: java.io.IOException: Not in GZIP format".

When I looked into files directory on the server, there was a node with a specified filename created, this node also has jcr:content node, but jcr:content node has no jcr:data node.

However , when I tried to publish CSV file (using the same client) I was successful and file was created under the /files directory.

Comment 1 Boris Belovic 2010-10-18 20:26:07 UTC
It looks like XMI file cannot be published under any location, not only /files.

Comment 2 Boris Belovic 2010-10-18 20:26:28 UTC
Link: Added: This issue is related to MODE-958


Comment 3 Boris Belovic 2010-10-19 16:19:51 UTC
Van,

I think the problem is only with JPA connector , as Randall pointed out on IRC the problem might be that the connector thinks that the data was compressed - so it tries to uncompress and that's the problem - it tries to uncompress data which never have beem compressed.

Comment 4 Boris Belovic 2010-10-19 16:30:26 UTC
File publishing works with memory and file repository, but when I tried it with  JPA repo (with MySQL database) I've got HTTP 400 error code with message:java.lang.IllegalStateException: java.io.IOException: Not in GZIP format

Comment 5 Van Halbert 2010-10-19 18:21:00 UTC
Need to change the modeshape-config.xml to add store:eds:  in the sequencing paths.   Example:

 store:eds:/files(//)(*.xmi[*])/jcr:content[@jcr:data] =&gt; store:eds:/sequenced/teiid/models$1 

Comment 6 Boris Belovic 2010-10-19 19:37:36 UTC
Link: Added: This issue is related to MODE-966


Comment 7 Van Halbert 2010-10-19 19:53:50 UTC
Checked in the fix the modeshape-config.xml by adding the store:eds:  to the sequencing paths.   

Comment 8 Van Halbert 2010-10-27 15:40:35 UTC
ModeShape has committed the fixes to the 2.2.x branch on Oct. 21, and should be in the ER4 build.

Comment 9 Warren Gibson 2011-02-03 15:18:44 UTC
2/3/2011 wgibson resolved