[MAGNOLIA-1064] In Dialog with 2 File Upload Controls, Uploading The Same File to Both Causes Failure Created: 20/Sep/06  Updated: 08/Aug/08  Resolved: 08/Aug/08

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 3.0 RC2
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Sean McMains Assignee: Jan Haderka
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Verified on systems running on Mac OS X and Red Hat, both with Derby and BDB PMs


Attachments: XML File config.modules.templating.dialogs.texas-state.imageGalleryCell.xml    
Issue Links:
duplicate
duplicates MAGNOLIA-285 Uploading multiple files with the sam... 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
Date of First Response:

 Description   

To recreate, use the included Dialog definition, and upload the same file as both the image and the thumbnail. The dialog will redisplay instead of closing, but the files won't be shown. Only one of the files is persisted to the JCR repository, and the log file shows this:

ERROR info.magnolia.module.admininterface.SaveHandlerImpl SaveHandlerImpl.java(save:178) 20.09.2006 11:49:14 /testing-site/contentParagraph/01/subPar/00/imageThumb: mandatory property

{http://www.jcp.org/jcr/1.0}

data does not exist
javax.jcr.nodetype.ConstraintViolationException: /testing-site/contentParagraph/01/subPar/00/imageThumb: mandatory property

{http://www.jcp.org/jcr/1.0}

data does not exist
at org.apache.jackrabbit.core.ItemImpl.validateTransientItems(ItemImpl.java:545)
at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1147)
at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:805)
at info.magnolia.cms.core.HierarchyManager.save(HierarchyManager.java:528)
at info.magnolia.module.admininterface.SaveHandlerImpl.save(SaveHandlerImpl.java:175)
at info.magnolia.module.admininterface.DialogMVCHandler.onSave(DialogMVCHandler.java:286)
at info.magnolia.module.admininterface.DialogMVCHandler.save(DialogMVCHandler.java:185)
at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
etc...
etc...



 Comments   
Comment by Sean McMains [ 20/Sep/06 ]

Here's a dialog definition that will demonstrate the issue.

Comment by sebastian.frick [ 29/Jan/07 ]

hello,

we have the same problem here. the dialog doesn't close until we upload an image (but this won't be saved or shown)

Comment by Magnolia International [ 27/Feb/07 ]

This seems to be duplicate with MAGNOLIA-285 eventhough the stacktracem seems pretty different. I guess by now we should take a closer look at this soon.
Sean, have you been able to work around this? Is it still happening with 3.0.1 ?

Comment by Magnolia International [ 03/Apr/08 ]

will be fixed by introduction of new gui

Comment by Jan Haderka [ 07/Aug/08 ]

Not reproducible with 3.6.1.

Comment by Jan Haderka [ 08/Aug/08 ]

No need to have too issues open for same problem. They are linked and that should be enough.

Generated at Mon Feb 12 03:23:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.