Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 6.2.5
-
Fix Version/s: 6.2.6, 6.4.2, 7.0-milestone-2
-
Component/s: Old Core
-
Labels:None
-
Tests:Unit
-
Development Priority:High
-
Difficulty:Trivial
-
Documentation:N/A
-
Documentation in Release Notes:N/A
-
Similar issues:
Description
Follow this steps to reproduce:
- Create a class with only one property of type Database List
- Configure this property as multiple select
- Create a new page and add an object of this class but don't select any value for the Database List property
- Edit the class again and change the property from multiple select to single select. Save
You get:
A problem occurred while trying to process your request. Please contact the webmaster if this happens again.
And the exception is:
Caused by: java.lang.ClassCastException: com.xpn.xwiki.objects.ListProperty$NotifyList cannot be cast to java.lang.String at com.xpn.xwiki.objects.BaseStringProperty.setValue(BaseStringProperty.java:40) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:666) ... 52 more
Attachments
Issue Links
- is related to
-
XWIKI-299 Changing property layout of a list property in a class doesn' work (multiple select yes/no)
-
- Closed
-
-
XWIKI-6566 Changing the multiple select attribute of a ListProperty in an XWiki class occasionally causes a document to become unsavable.
-
- Closed
-
-
XWIKI-4825 Altering the storage properties of a DBList or DBTreeList property sometimes fails to save the changes
-
- Closed
-
- relates to
-
XWIKI-11806 Changing (list) property storage type in class editor fails when object instances exist in the class document
-
- Closed
-