[MGNLUI-1383] New Contact action does not work on renamed folder Created: 17/May/13  Updated: 17/May/13  Resolved: 17/May/13

Status: Closed
Project: Magnolia UI
Component/s: content app
Affects Version/s: 5.0
Fix Version/s: 5.0

Type: Bug Priority: Neutral
Reporter: Jozef Chocholacek Assignee: Eric Hechinger
Resolution: Cannot Reproduce Votes: 0
Labels: beta2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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   

Beta2 build:

1. create a folder -> it gets the name "untitled"
2. rename it (e.g. to "myContacts") -> it is renamed, and remains selected, but the selection name is still "/untitled"
3. click "New contact", fill up the contact info, save -> a contact is created under /myContacts, but an exception is thrown to log:

WARN info.magnolia.event.SimpleEventBus : Exception caught when dispatching event: null
java.lang.NullPointerException
at info.magnolia.ui.vaadin.integration.jcr.JcrItemUtil.getItemId(JcrItemUtil.java:114)
...

4. the folder still keeps selected, but you can't create new contact in it - the action simply does nothing. (New folder, Rename and Delete work.) The "New contact" action does not work even ater unselecting and selecting the folder again (when the selection gets refreshed and shows properly "/myContacts"). You have reopen the Contacts App.



 Comments   
Comment by Jozef Chocholacek [ 17/May/13 ]

I have discovered the same behaviour in the Assets App as well - create new folder, rename it, upload an asset to it - > throws an error, and the "Upload asset" action does not work anymore on the folder (it is available, but does nothing when clicked).

Comment by Daniel Lipp [ 17/May/13 ]

looks like it has been fix by a recent change

Comment by Eric Hechinger [ 17/May/13 ]

commit:
https://git.magnolia-cms.com/gitweb/?p=magnolia_ui.git;a=commit;h=6c910e8c9fc7ea15ab3af79e1e676218fa3980d2

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