Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18959

Impossible to use BaseObject#getListValue for users or groups properties

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 12.10.9
    • Old Core
    • None
    • Unknown

    Description

      Reproduction steps:

      • Create an xclass with a User list property
      • Create a page with an xobject of the new xclass and put a value in the user list property
      • Access programmatically to the xobject and try to list the values of the property by using
        BaseObject#getListValue

      Expected result:

      • the method should returns a list containing a single value

      Obtained result:

      • the call triggers a ClassCastException:
      java.lang.ClassCastException: com.xpn.xwiki.objects.LargeStringProperty cannot be cast to com.xpn.xwiki.objects.ListProperty
      	at com.xpn.xwiki.objects.BaseCollection.getListValue(BaseCollection.java:490)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            surli Simon Urli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: