in my app I attach correctly a document with a groovy connector:
processAPI.attachDocument(processInstanceId, "documentXYZ", doc.name, "application/pdf", doc.bytes);
Then I send it with an e-mail connector as an attachment, but If I try to open it in case Overview I get the error "500 Internal Server Error. Oops. Error.". In the logfile I've: "org.bonitasoft.forms.server.DocumentImageServlet Error while retrieving the document with ID xxxxxx from the engine."
It seems that the document ID in the url is not correct.