AnsweredAssumed Answered

Web Script Status 500 - Internal Error

Question asked by fmalberto on May 23, 2017
Latest reply on May 27, 2017 by mrks.js1

Hi,

 

We have a network printer at the office (canon c5235i) to scan documents and send them as PDF files via email attachments to Alfresco. The process of storing the PDF files at the alfresco aliasable folder goes well, but problem is that in the document properties the mimetype is wrong (plain text instead of PDF)!  And for that reason, when we try to open them, the system returns this error:

 

 

Alfresco        Web Script Status 500 - Internal Error

The Web Script /alfresco/wcs/api/node/workspace/SpacesStore/8f3c51f2-94a4-42eb-9bd3-824798bd306d/content/thumbnails/pdf has responded with a status of 500 - Internal Error.

 

500 Description:        An error inside the HTTP server which prevented it from fulfilling the request.

 

Message:        04193675516 Wrapped Exception (with status template): 041917511655 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 041917511654 041917511653 Some error occurred during document transforming.

 

Error message: 041917511652 Transformation of (Ficheiro em Anexo) has not taken place because the declared mimetype (text/plain) does not match the detected mimetype (application/pdf).
Server: Community v5.2.0 (r134428-b13) schema 10.005
Time:   19/mai/2017 11:29:22
 
Diagnostics:    Inspect Web Script (org/alfresco/repository/thumbnail/thumbnail.get)

 

 

If I change the mimitype from plain text to PDF in document properties before open the PDF file, all works well.

 

Is this a bug or some xml configuration that is missing?

 

Please help

 

Thank you.

 

Fernando

Outcomes