You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And it does confuse developers, as they spend time understanding why when they want to read content they only get a draft version - a bug which is hard to realize earlier.
This happens because
when hoot request is received - draft branch is selected in ContextFilter
when context is accessed ContextAccessor.get() and context does not exist - which is a very rare case - there should be no default branch set.
Recently content's draft branch become effectively read only for most of the methods, so it is much safer to set master branch as default for http requests.
And when there is no context at all - the default branch should be not set at all - so developers can realize errors quicker.
The text was updated successfully, but these errors were encountered:
Default preferred branch in different usages is different.
And it does confuse developers, as they spend time understanding why when they want to read content they only get a draft version - a bug which is hard to realize earlier.
This happens because
ContextFilter
ContextAccessor.get()
and context does not exist - which is a very rare case - there should be no default branch set.Recently content's draft branch become effectively read only for most of the methods, so it is much safer to set master branch as default for http requests.
And when there is no context at all - the default branch should be not set at all - so developers can realize errors quicker.
The text was updated successfully, but these errors were encountered: