-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Action not showing with some extensions #13
Comments
Probably need to expand the mime types to include the other document formats. Will need to compile a list of the mime types that are supported for editing |
Yes. I will test some and provide a pull request if it's fine for you |
PRs are always welcome 👍 |
Nice, I'm already testing some, I will do as soon as I finish, probably tomorrow |
I did some tests, it takes some time because I found strange behavior of onlyoffice. Now I don't know yet where is the cuprit but I have problems. With ODT is the most problematic format in my tests. On the Onlyoffice page it's showed as perfectly compatible. I stress that such problems are only related to version 4 and not the previous one. ODT, after saving the file, it changes the mimetype into Zip data (MIME type "K,("?) Caused by: org.alfresco.service.cmr.rendition.RenditionServiceException: 09240241 Some error occurred during document transforming. Error message: 09240240 Transformation of (test.doc) has not taken place because the declared mimetype (application/msword) does not match the detected mimetype (application/vnd.openxmlformats-officedocument.wordprocessingml.document). I've just tested now the PDF Toolkit User Guide.docx and while saving it it looses the format. Margins are lost. |
Looks like the mime type is incorrect to the file extension for some reason. Is the mime type correct when you upload a document to Alfresco? |
Yes, when uploading is fine but when saving with onlyoffice it's not. It seems everything is saved to docx no matter what format you use. When I try with an odt it's worse because it corrupts the document because it's changing the mimetype. When I upload it it's OpenDocument Text and after saving in onlyoffice it becames Microsoft Word 2007+ and alfresco is not able to preview it anymore. Must be something weird happening somewhere. I was writing to onlyoffice because I wanted to test the upload of some documents with their demos. I'd like to test it far from alfresco and the integration to be 100% sure it's onlyoffice fault, but seems to be like that. |
If you set the log to debug, you will see the download URL we receive from OnlyOffice. It may be automatically setting the format to docx. |
Hi cetra, |
Ok, there might be a way to tell OnlyOffice to send a specific mime type back so we can enable different mime types. Needs a bit more investigation. |
Hi,
I've tried the new integration with onlyoffice 4 and I notice that the action is not available with all document extensions as before.
For example odt, even if from onlyoffice you can save as odt.
I've also tested, txt,rtf
docx and doc
I found out the bean is missing the right mimetypes:
eg. application/vnd.oasis.opendocument.text for odt, ecc
The text was updated successfully, but these errors were encountered: