Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-89261

Avoid nesting when sending JSON request in bulk

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: Master
    • Component/s: Documents & Media
    • Labels:
      None

      Description

      As part of LPS-87788 we switched to Jackson for the following purposes:

      When an array contained just one element the resulting JSON would be the element instead of an array:

      {"tagNames": "tag"}
      

      Instead of:

      {"tagNames": ["tag"]}
      

       

      We didn't add the corresponding reader which forces us to send the request inside a wrapped object: 'BulkAssetEntryCommonTagsActionModel'.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              alejandro.tardin Alejandro Tardín
              Recent user:
              Lester Pi
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master