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

Add checks in BaseCollection#setXXXValue to ensure the type of the field is correct

    XMLWordPrintable

Details

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

    Description

      There's currently no check at all performed when calling BaseCollection#setXXXValue to ensure that the XXX matches the actual field type: for example, it's possible to create a static list field with multiselect false and call setStringListValue with multiple values to put in it. Which shouldn't be authorized at all from API PoV.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: