U4-9083 - TagService.GetTaggedContentByTag returns unpublished node ids

Created by Julian Grahame 19 Oct 2016, 15:28:34 Updated by Shola 10 Mar 2017, 20:49:29

Using Umbraco 7.5.3

We have found that

var taggedNodes = _applicationContext.Services.TagService.GetTaggedContentByTag(tagName);

returns IEnumerable but includes node ids that have been Unpublished in some circumstances.

To Reproduce: Add a tag to a node Publish node Remove tag - Save Unpublish node

The unpublished node ID is still returned.

We are working around this currently but this does seem to be a bug.

J

Comments

Shola 10 Mar 2017, 20:49:29

The Services are designed to do that. They return all content, not just published content. That's why the type returned is IEnumerable instead of IEnumerable. The Services go straight to the database to get data, instead of the published content cache.


Priority: Normal

Type: Bug

State: Submitted

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: