Uploaded image for project: 'Repository'
  1. Repository
  2. REPO-2392

REST API: The V1 Comments API creates a comments that appear in searches

    Details

    • Bug Priority:
      Category 2
    • Work Funnel:
      Feature
    • Template:

      Description

      The V1 Comments API creates a different QNAME structure than the V0 API - leading to comments appearing in Search results in older clients such as Share.

      POST /nodes/

      {nodeId}

      /comments

      Comments created via the V0 API have a QNAME structure that although not ideal, allows clients that use the old V0 search API to exclude comments from "cm:content" results etc. by something like this in the FTS SOLR query:

      AND -QNAME:comment\\-*
      

      This is because the QNAME contains something like "cm:comment-1234567890".

      However, in V1 we see:
      "cm:Comments/cm:contains"
      which does not match.

      I have found we can remove the V1 comments from TYPE:"cm:content" query results using something like:

      AND -EXACTTYPE:"fm:post"
      

      however that will not remove the containing folders if no cm:content TYPE clause is used.

      This will be an issue for older clients where comments created by V1 API will start to appear in results.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kroast Kevin Roast [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Structure Helper Panel