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

Form fields are serialized as comma-separated values when using the in-place editor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 14.10
    • 14.9
    • WYSIWYG Editor
    • None
    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      When saving an edit using the In-place WYSIWYG editor, form data is serialized using comma-separated values when a field has several values, instead of repeating the field name.

      You can notice this with the xaction parameter on the saving request, which has three values separated with comma. A fix for this ticket will repeat the xaction parameter for each value instead.

      This is not an issue for XWiki standard but this behavior can break some customization relying on custom fields put in the button action area. Such customization is not supported and support for them should be designed properly in a future development , but it is worth using a proper FormData object when serializing form data, so we can rely on standard serialization provided by browsers.

      Attachments

        Activity

          People

            rjakse Raphaël Jakse
            rjakse Raphaël Jakse
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: