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

Labels List Macro should not include results from Space trash and Drafts

      Summary

      The Labels List macro is returning labels that match content which are only in the space trash. These labels should be excluded from the macro as users cannot actually access those pages in the trash.

      Steps to reproduce

      1. Create a page and add a label to it
      2. Create another page in the same space with the "Labels List" macro
      3. Delete the first page so that it goes to the space trash

      Expected behavior

      The Labels List macro should not show the label, as there are no accessible content with that label

      Actual behavior

      The Labels List macro still shows the label. When clicked, the ensuing page shows "There are no pages at the moment." This can be confusing to users.

      Workaround

      • Purge the trash (which will permanently delete the page) or publish the drafts
      • OR, if you wish for the page to remain in the trash, recover the page and remove the label before re-deleting it, or remove the label from the draft page

          Form Name

            [CONFSERVER-55441] Labels List Macro should not include results from Space trash and Drafts

            Dick added a comment -

            The suggested workaround (purge trash of the space it occurs) is especially cumbersome in the event of the label being: unrestored-unknown-attachment  that was introduced as a fix earlier ([Newly created pages are labelled unintentionally with 'unrestored-unknown-attachment' label | Confluence | Atlassian Documentation|https://confluence.atlassian.com/confkb/newly-created-pages-are-labelled-unintentionally-with-unrestored-unknown-attachment-label-1252329896.html]) as this can occur in all spaces. 

            Dick added a comment - The suggested workaround (purge trash of the space it occurs) is especially cumbersome in the event of the label being: unrestored-unknown-attachment   that was introduced as a fix earlier ( [Newly created pages are labelled unintentionally with 'unrestored-unknown-attachment' label | Confluence | Atlassian Documentation|https://confluence.atlassian.com/confkb/newly-created-pages-are-labelled-unintentionally-with-unrestored-unknown-attachment-label-1252329896.html] ) as this can occur in all spaces. 

            After converting hundreds if not thousands of lucid images, we now find that our labels list includes "lucid-conversion-<number>" for every converted image. The Labels list macro has become unusable for us.

            Adrian Morse added a comment - After converting hundreds if not thousands of lucid images, we now find that our labels list includes "lucid-conversion-<number>" for every converted image. The Labels list macro has become unusable for us.

            have purged the trash in our confluence space, however this did not remove all of the empty labels.... 

            kassandra.kenny added a comment - have purged the trash in our confluence space, however this did not remove all of the empty labels.... 

            tested the work around of purging the trash, however this did not solve, and the label had to be added to the filter out setting of the macro.

            Valerie Hunt added a comment - tested the work around of purging the trash, however this did not solve, and the label had to be added to the filter out setting of the macro.

              Unassigned Unassigned
              rchang Robert Chang
              Affected customers:
              25 This affects my team
              Watchers:
              26 Start watching this issue

                Created:
                Updated: