[MGNLDAM-681]  special characters in filenames breaks zip upload Created: 07/Dec/16  Updated: 27/Mar/18  Resolved: 27/Mar/18

Status: Closed
Project: Magnolia DAM Module
Component/s: DAM App
Affects Version/s: 2.1.7
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: zip-upload
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Zip Archive not-the-same-file.zip    
Issue Links:
duplicate
duplicates MGNLUI-4326 Remove setting content-deposition man... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Uploading a zip archive that has files with Chinese names in them throw exception. Please see the attached zip file as an example. I see the contents of this archive as these two files:

专业组三等奖.jpg
专业组二等奖.jpg

06.12.2016 16:46:55 ERROR nolia.ui.dialog.formdialog.FormDialogPresenterImpl: An error occurred while executing an action.
info.magnolia.ui.api.action.ActionExecutionException: javax.jcr.ItemExistsException: This node already exists: /xxxxx.com-china/imported/not-the-same-file/------.jpg
	at info.magnolia.ui.framework.action.ZipUploadDialogAction.executeCommand(ZipUploadDialogAction.java:118)
	at info.magnolia.ui.framework.action.ZipUploadDialogAction.execute(ZipUploadDialogAction.java:92)
	at info.magnolia.ui.api.action.AbstractActionExecutor.execute(AbstractActionExecutor.java:62)
	at info.magnolia.ui.dialog.BaseDialogPresenter.executeAction(BaseDialogPresenter.java:211)
	at info.magnolia.ui.dialog.BaseDialogPresenter.onActionFired(BaseDialogPresenter.java:201)
	at info.magnolia.ui.dialog.actionarea.renderer.DefaultEditorActionRenderer$DefaultActionView$1.buttonClick(DefaultEditorActionRenderer.java:75)

Generated at Mon Feb 12 05:02:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.