Details
-
Bug
-
Resolution: Fixed
-
Medium
-
2.5.6, 3.0.0-beta3
-
None
Description
When loading a Location via REST the flag explicitlyHidden is missing.
Request:
GET /api/ezp/v2/content/locations?id=675019
Authorization: Basic xxxxxxxxxxxxxx=
Accept: application/vnd.ez.api.Location+xml
Response body:
<?xml version="1.0" encoding="UTF-8"?> <Location media-type="application/vnd.ez.api.Location+xml" href="/api/ezp/v2/content/locations/1/2/5249/7690/7714/675019"> <id>675019</id> <priority>0</priority> <hidden>true</hidden> <invisible>true</invisible> <ParentLocation media-type="application/vnd.ez.api.Location+xml" href="/api/ezp/v2/content/locations/1/2/5249/7690/7714" /> <pathString>/1/2/5249/7690/7714/675019/</pathString> <depth>5</depth> <childCount>0</childCount> <remoteId>e72fd4824edbf08152b0fb5bbc02bd38</remoteId> <Children media-type="application/vnd.ez.api.LocationList+xml" href="/api/ezp/v2/content/locations/1/2/5249/7690/7714/675019/children" /> <Content media-type="application/vnd.ez.api.Content+xml" href="/api/ezp/v2/content/objects/673216" /> <sortField>PRIORITY</sortField> <sortOrder>ASC</sortOrder> <UrlAliases media-type="application/vnd.ez.api.UrlAliasRefList+xml" href="/api/ezp/v2/content/locations/1/2/5249/7690/7714/675019/urlaliases" /> <ContentInfo media-type="application/vnd.ez.api.ContentInfo+xml" href="/api/ezp/v2/content/objects/673216"> <Content media-type="application/vnd.ez.api.ContentInfo+xml" href="/api/ezp/v2/content/objects/673216" remoteId="ce6e882d61cdddf37a06c92d8f7fbf72" id="673216"> <ContentType media-type="application/vnd.ez.api.ContentType+xml" href="/api/ezp/v2/content/types/80" /> <Name>test hidden page</Name> <Versions media-type="application/vnd.ez.api.VersionList+xml" href="/api/ezp/v2/content/objects/673216/versions" /> <CurrentVersion media-type="application/vnd.ez.api.Version+xml" href="/api/ezp/v2/content/objects/673216/currentversion" /> <Section media-type="application/vnd.ez.api.Section+xml" href="/api/ezp/v2/content/sections/7" /> <Locations media-type="application/vnd.ez.api.LocationList+xml" href="/api/ezp/v2/content/objects/673216/locations" /> <Owner media-type="application/vnd.ez.api.User+xml" href="/api/ezp/v2/user/users/60936" /> <lastModificationDate>2019-11-07T10:16:41+01:00</lastModificationDate> <publishedDate>2019-11-07T10:16:41+01:00</publishedDate> <mainLanguageCode>eng-GB</mainLanguageCode> <currentVersionNo>1</currentVersionNo> <alwaysAvailable>true</alwaysAvailable> <isHidden>true</isHidden> <status>PUBLISHED</status> <ObjectStates media-type="application/vnd.ez.api.ContentObjectStates+xml" href="/api/ezp/v2/content/objects/673216/objectstates" /> </Content> </ContentInfo> </Location>
Expected response body:
<?xml version="1.0" encoding="UTF-8"?> <Location media-type="application/vnd.ez.api.Location+xml" href="/api/ezp/v2/content/locations/1/2/5249/7690/7714/675019"> <id>675019</id> <priority>0</priority> <hidden>true</hidden> <invisible>true</invisible> <explicitlyHidden>true</explicitlyHidden> <!-- missing flag --> <ParentLocation media-type="application/vnd.ez.api.Location+xml" href="/api/ezp/v2/content/locations/1/2/5249/7690/7714" /> <pathString>/1/2/5249/7690/7714/675019/</pathString> <depth>5</depth> <childCount>0</childCount> <remoteId>e72fd4824edbf08152b0fb5bbc02bd38</remoteId> <Children media-type="application/vnd.ez.api.LocationList+xml" href="/api/ezp/v2/content/locations/1/2/5249/7690/7714/675019/children" /> <Content media-type="application/vnd.ez.api.Content+xml" href="/api/ezp/v2/content/objects/673216" /> <sortField>PRIORITY</sortField> <sortOrder>ASC</sortOrder> <UrlAliases media-type="application/vnd.ez.api.UrlAliasRefList+xml" href="/api/ezp/v2/content/locations/1/2/5249/7690/7714/675019/urlaliases" /> <ContentInfo media-type="application/vnd.ez.api.ContentInfo+xml" href="/api/ezp/v2/content/objects/673216"> <Content media-type="application/vnd.ez.api.ContentInfo+xml" href="/api/ezp/v2/content/objects/673216" remoteId="ce6e882d61cdddf37a06c92d8f7fbf72" id="673216"> <ContentType media-type="application/vnd.ez.api.ContentType+xml" href="/api/ezp/v2/content/types/80" /> <Name>test hidden page</Name> <Versions media-type="application/vnd.ez.api.VersionList+xml" href="/api/ezp/v2/content/objects/673216/versions" /> <CurrentVersion media-type="application/vnd.ez.api.Version+xml" href="/api/ezp/v2/content/objects/673216/currentversion" /> <Section media-type="application/vnd.ez.api.Section+xml" href="/api/ezp/v2/content/sections/7" /> <Locations media-type="application/vnd.ez.api.LocationList+xml" href="/api/ezp/v2/content/objects/673216/locations" /> <Owner media-type="application/vnd.ez.api.User+xml" href="/api/ezp/v2/user/users/60936" /> <lastModificationDate>2019-11-07T10:16:41+01:00</lastModificationDate> <publishedDate>2019-11-07T10:16:41+01:00</publishedDate> <mainLanguageCode>eng-GB</mainLanguageCode> <currentVersionNo>1</currentVersionNo> <alwaysAvailable>true</alwaysAvailable> <isHidden>true</isHidden> <status>PUBLISHED</status> <ObjectStates media-type="application/vnd.ez.api.ContentObjectStates+xml" href="/api/ezp/v2/content/objects/673216/objectstates" /> </Content> </ContentInfo> </Location>