How to reproduce
- Create a contents article
- Put approximately 20 upload attachments (.doc, .doc, .pdf..) in the contents
- An error message appears « le fichier que vous venez d’insérer a été correctement ajouté mais n’est pas visible car il n’est pas du type attendu ».
- Click on ok
- The file is uploaded, select it from the list
- Click on ok
There is the same error with Resource Explorer
[CMS-9394] Add attachment on the fly when inserting a link fail if the new file is not visible due to the scroll bar
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Project urgency | New: 1 [ 10410 ] | |
Projet | New: UBIII-1331 |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Comment | [ A comment with security level 'Developers' was removed. ] |
Due Date | Original: 24/Apr/19 | |
Sprint | New: 4.2 M11 [ 28 ] |
Assignee | New: Laurence Aumeunier [ laurence ] |
Due Date | New: 24/Apr/19 |
Fix Version/s | New: 4.1.11 [ 14785 ] | |
Fix Version/s | Original: 4.1.10 [ 14684 ] |
Description |
Original:
*How to reproduce*
* Create a contents article * Put approximately 20 upload attachments (.doc, .doc, .pdf..) in the contents * An error message appears « le fichier que vous venez d’insérer a été correctement ajouté mais n’est pas visible car il n’est pas du type attendu ». * Click on ok * The file is uploaded, select it from the list * Click on ok |
New:
*How to reproduce*
* Create a contents article * Put approximately 20 upload attachments (.doc, .doc, .pdf..) in the contents * An error message appears « le fichier que vous venez d’insérer a été correctement ajouté mais n’est pas visible car il n’est pas du type attendu ». * Click on ok * The file is uploaded, select it from the list * Click on ok There is the same error with Resource Explorer |
Issue is on ChooseAttachmentFile#_insertAttachmentCb2 and ChooseResource#_uploadFileCb2
Since filters are done on server side, this is useless to check `isVisible` property to determine if the inserted file matches the current filter. Moreover this could lead to error in case of a big tree because 'isVisible" may be false during tree loading or scroll