Web Script Status 500 - Internal Error

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
fmalberto
Member II

Web Script Status 500 - Internal Error

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

1 Reply
mrks_js1
Established Member II

Re: Web Script Status 500 - Internal Error

Is the file extension correct (.pdf) too? Is the email html or plain? have you tried replicating this behavior with a regular email client too? Grab on of the pdfs and send them as an email to your alfresco installation?