Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-37376

Content by label - when label has '/' character, when clicking "more" it fails to return 17 items it says are present

    XMLWordPrintable

Details

    Description

      h3 Symptoms
      Confluence 5.5
      I have a page with Content by label
      my label has a / character
      RiskFoundation/ongoingSpecs
      It shows a list of 6 items on my page
      It says there are 17 more

      "
      Architecture Componentization
      Page:
      Audit Tables
      Page:
      Data Quality after imports BI App
      Page:
      How to work collaboratively on RiskFoundation Platform
      Page:
      List Settings
      Page:
      Load Results
      17 related results"

      It searches for this:
      (labelText:riskfoundation/ongoingspecs)

      when I click on the link, I get an error that there are no matches

      "No results found for (labelText:riskfoundation/ongoingspecs). Please try one of the following suggestions:
      Use more general search terms or consult the online documentation for tips.
      If you are filtering by space, content, last modification date or contributor, try removing or adjusting the filter"

      If I modify the search to just say ongoingSpecs, the search will work but then the page will not list the 6 items.

      Cause

      This occurs because the label macro itself can handle a label containing a "/" character, but when search is invoked it fails.

      • This search fails: labelText:riskfoundation/ongoingspecs, and this is what the macro passes to search when the link is clicked.
      • This search works: labelText:"riskfoundation/ongoingspecs"

      Workarounds

      1. The simplest is to create a new label without the backslash, and use that instead.
      2. Alternatively when you click on the 'related results' link, you can wrap the label in " characters and the search will succeed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kim.zvik-non-empl kim.zvik-non-empl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: