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

Ordering of version proxies in an Orderable Section does not maintain ordering info (ecm:pos)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.10
    • Fix Version/s: None
    • Component/s: Publishing

      Description

      My understanding is that "proxies have the same data as their target document except for what is specific to the proxy and its position in the hierarchy, that includes its name, its parent and its ecm:pos inside its parent. Also acls. So you should be able to order proxies inside ordered folders like any other documents".

      Create new doctype 'OrderedSection', extending Section or Folder, apply facets PublishSpace and Orderable.

      Publish a few docs into new OrderedSection (creating version proxies).

      In WebUI, reorder the proxies just like an OrderedFolder.

      Refresh the view. Expected result: proxies are shown in the desired order. Actual result: Proxies are displayed in undesired order.

      Execute NXQL search via REST API e.g. via /nuxeo/api/v1/doc e.g. "SELECT * FROM Document WHERE ecm:parentId = '2c8d4e96-16f6-4832-92d9-664a742c2f77' ORDER BY ecm:pos" (note: parent id will be different for you). Execute NXQL again with "DESC" added to end (to reverse the search order). Expected result: the first list of docs should be the reverse of the second list. Actual result: the lists are not ordered at all.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              msaye Mark Saye
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: