stable

Clone or download

Read-only

request #13045 New docman interface crash

How to reproduce: This issue happens when item is created without version. I managed to reproduce the issue by deleting version entry directly in db (tables plugin_docman_link_version && plugin_docman_version) Go on the new UI and open the console: => no fatal error backend size => no console error while browsing your items => corrupted files/embedded should have a badge corrupted Even if items are corrupted, it should not break anything, you should still have acess to your document preview but: - link work as usual => it redirect you on link (like legacy) - files => preview display a file size to 0 - embedded => as it has no version it has no content, on preview its content display is empty Please also note that a corrupted item can be "uncorrupt" by creating a new version. Change-Id: I9e743df81e03542c825a68d7c03bc79195fde5aa

Modified Files

Name
M plugins/docman/include/Docman_LinkVersionFactory.class.php +4 −1 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationVisitor.php +21 −8 Go to diff View file
M plugins/docman/include/REST/v1/LinkPropertiesRepresentation.php +4 −2 Go to diff View file
M plugins/document/scripts/document/app.spec.js +4 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/FolderContentRow.vue +2 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemTitle/DocumentCellTitle.vue +2 −8 Go to diff View file
A plugins/document/scripts/document/components/Folder/ItemTitle/EmbeddedCellTitle.spec.js +76 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/ItemTitle/EmbeddedCellTitle.vue +54 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/ItemTitle/FileCellTitle.spec.js +77 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemTitle/FileCellTitle.vue +13 −1 Go to diff View file
A plugins/document/scripts/document/components/Folder/ItemTitle/LinkCellTitle.spec.js +102 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemTitle/LinkCellTitle.vue +9 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/QuickLook/QuickLookDocumentMetadata.vue +3 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/QuickLook/QuickLookDocumentPreview.vue +6 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/QuickLook/QuickLookGlobal.vue +3 −0 Go to diff View file
M plugins/document/scripts/document/helpers/local-vue.js +2 −0 Go to diff View file
M plugins/document/scripts/document/po/fr.po +3 −0 Go to diff View file
M plugins/document/themes/BurningParrot/document/_folder-content.scss +4 −0 Go to diff View file