I have…
- [ ] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [x] Bug report
- [x] Performance issue
- [ ] Documentation issue or request
Current behavior
So a content item is Published + Draft in squidex.
From Inspect tab, and by squdiex api - status displayed as:
status: Published, newStatus: Draft
And in DB, CoreCMSContent it’s displayed as
States_Contents_All3
“ss”:“Published”,“ns”:“Draft”
States_Contents_Published3
ss: ‘Published’
But when queried by squidexClient
var queryResult = await authorsSquidexClient.GetAsync(new ContentQuery
{
Filter = $“data/ArticleId/iv eq ‘{draftAuthor.ArticleId}’”
},
QueryContext.Default.Unpublished(true));
The result is :
Status: Draft, NewStatus: Draft
So I spotted, that querying for all content in Squidex, that has status Published-Draft or Published-Unpublished - squidex client by GetAsync() returns wrong Status property.
Expected behavior
SquidexClient returns Status: “Published” for this items, as in other places.
Minimal reproduction of the problem
1 Simply populate some content in squidex.
2 Make it Published - Draft and Published - Unpublished
3 Query it with by the next principal
var queryResult = await authorsSquidexClient.GetAsync(new ContentQuery
{
Filter = $“data/ArticleId/iv eq ‘{draftAuthor.ArticleId}’”
},
QueryContext.Default.Unpublished(true));
Explore queryResult statuses as duplicated:
- queryResult.Status = Draft, queryResult.NewStatus = Draft (for Published - Draft item)
- queryResult.Status = Unpublished, queryResult.NewStatus = Unpublished (for Published - Unpublished item)
Environment
- [X] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [ ] Cloud version
Squidex Version: 7.2
SquidexClientLIbrary 10.2.0