Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-11352

The "sortInfo" parameter on DocumentPageProviderOperation doesn't work when specifying sort direction

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.7-SNAPSHOT
    • Fix Version/s: 5.7.1
    • Component/s: Automation

      Description

      On nuxeo-automation-features > DocumentPageProviderOperation.java (l.103), the "sortInfo" parameter is not parsed correctly when using the "|" delimiter as suggested by:

                      if (sortInfoDesc.contains("|")) {
                          String[] parts = sortInfoDesc.split("|");
                          sortInfo = new SortInfo(parts[0],
                                  Boolean.parseBoolean(parts[1]));
      

      The regexp "|" is invalid and matches every character.

      A workaround is to use the "Social.Provider" operation instead.

      I'll submit a pull request for this issue.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: