[ALF-233] Impossibility to add content when Content Rule 'Transform and Copy image to a specific place' is created Created: 12-Dec-08  Updated: 22-Mar-13  Resolved: 23-Mar-10

Status: Closed
Project: Alfresco
Component/s: Alfresco Explorer
Affects Version/s: 3.0 Enterprise
Fix Version/s: 3.3 Enterprise

Type: Bug Priority: Major
Reporter: mkononovich Assignee: Closed Bugs (Inactive)
Resolution: Not a bug Votes: 0
Labels: None
Remaining Estimate: 1 day
Time Spent: Not Specified
Original Estimate: 1 day

Alfresco 3.0 build 238 - Stack 5
Windows 2003 R2 SP2, Weblogic 9.2 MP3, Oracle 10g, JDK 6u7, Win XP, FF3

Attachments: JPEG File Impossibility to add doc and transform.JPG    
Date of First Response:


Steps to reproduce:
1. Create "Test1" and "Test2" folders;
2. Open "Test1" folder and create a rule which Transforms All Items into JPG format and copies them to "Test2" folder;
3. Try to add file with .doc format to "Test1" folder -> Error message appears(see screenshot):

Please correct the errors below then click OK.

  • A system error happened during the operation: Content conversion failed: reader: ContentAccessor[ contentUrl=store://2008/12/12/12/24/20a3fff9-884e-4501-9f5d-827490b3fc50.bin, mimetype=application/pdf, size=426702, encoding=UTF-8, locale=en_US] writer: ContentAccessor[ contentUrl=store://2008/12/12/12/24/db2c2482-0720-4f78-944e-e22e6c0cb54d.bin, mimetype=image/jpeg, size=0, encoding=UTF-8, locale=en_US] options: org.alfresco.repo.content.transform.magick.ImageTransformationOptions@1a93021

Comment by Steve Rigby [X] (Inactive) [ 29-Mar-09 ]

For fix version review

Comment by Neil McErlean [X] (Inactive) [ 02-Nov-09 ]

I've not yet reproduced this issue.
Using the quick.doc document in our test-resources I can successfully transform from doc to jpeg as described. This was done on the (new) v32 branch with a full path to OOo in my repository.properties:

If the submitter has an example of the problem word document, could they attach it to this issue?

Comment by Neil McErlean [X] (Inactive) [ 23-Mar-10 ]

I believe this is not a bug.

If the rule is created as a "Transform and Copy Image" rule (as indicated in the issue summary) then you cannot transform non-image content. So with such a rule in place, you can upload pngs, but not pdfs or word documents. For non-image content, the transformation fails which prevents the upload.

If however, a rule is created as "Transform and Copy Content" with an output MIME type of JPEG, then you can upload image and non-image content and still get a JPEG transformation in testFolder2.

I've confirmed all this works as expected on HEAD (3.3) for PNG, PDF and DOC content.

I think the rule name "Transform and Copy Image" is a bit confusing. The 'image' here refers to the MIME type of the content you upload - not the MIME type of the transformation you're copying.

Comment by Steve Rigby [X] (Inactive) [ 12-May-10 ]

For retest in 3.3E build 27

Comment by Alfresco QA Team (Inactive) [ 13-May-10 ]

Closed as not a bug. Validated against 3.3 E beta 27 RHEL 5.1 x64, Tomcat 6.0.18, Mysql 5.1.35, JDK 6u16 x64

Generated at Sun Mar 07 18:43:27 GMT 2021 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.