Details
-
Bug
-
Resolution: Fixed
-
Medium
-
2.5.6
-
None
Description
When loading a Content or a ContentInfo via REST the flag isHidden is missing.
Request:
GET /api/ezp/v2/content/objects/477171
Authorization: Basic xxxxxxxxxxxxxx=
Accept: application/vnd.ez.api.ContentInfo+xml
Response body:
<?xml version="1.0" encoding="UTF-8"?> <Content media-type="application/vnd.ez.api.ContentInfo+xml" href="/api/ezp/v2/content/objects/477171" remoteId="9a3579d07a054873ea492d7fe06b561c" id="477171"> <ContentType media-type="application/vnd.ez.api.ContentType+xml" href="/api/ezp/v2/content/types/80" /> <Name>test content</Name> <Versions media-type="application/vnd.ez.api.VersionList+xml" href="/api/ezp/v2/content/objects/477171/versions" /> <CurrentVersion media-type="application/vnd.ez.api.Version+xml" href="/api/ezp/v2/content/objects/477171/currentversion" /> <Section media-type="application/vnd.ez.api.Section+xml" href="/api/ezp/v2/content/sections/7" /> <MainLocation media-type="application/vnd.ez.api.Location+xml" href="/api/ezp/v2/content/locations/1/2/5249/7690/7714/478675" /> <Locations media-type="application/vnd.ez.api.LocationList+xml" href="/api/ezp/v2/content/objects/477171/locations" /> <Owner media-type="application/vnd.ez.api.User+xml" href="/api/ezp/v2/user/users/60936" /> <lastModificationDate>2019-10-03T13:12:17+02:00</lastModificationDate> <publishedDate>2019-05-13T15:24:34+02:00</publishedDate> <mainLanguageCode>eng-GB</mainLanguageCode> <currentVersionNo>3</currentVersionNo> <alwaysAvailable>true</alwaysAvailable> <status>PUBLISHED</status> <ObjectStates media-type="application/vnd.ez.api.ContentObjectStates+xml" href="/api/ezp/v2/content/objects/477171/objectstates" /> </Content>
Expected response body:
<?xml version="1.0" encoding="UTF-8"?> <Content media-type="application/vnd.ez.api.ContentInfo+xml" href="/api/ezp/v2/content/objects/477171" remoteId="9a3579d07a054873ea492d7fe06b561c" id="477171"> <ContentType media-type="application/vnd.ez.api.ContentType+xml" href="/api/ezp/v2/content/types/80" /> <Name>test content</Name> <Versions media-type="application/vnd.ez.api.VersionList+xml" href="/api/ezp/v2/content/objects/477171/versions" /> <CurrentVersion media-type="application/vnd.ez.api.Version+xml" href="/api/ezp/v2/content/objects/477171/currentversion" /> <Section media-type="application/vnd.ez.api.Section+xml" href="/api/ezp/v2/content/sections/7" /> <MainLocation media-type="application/vnd.ez.api.Location+xml" href="/api/ezp/v2/content/locations/1/2/5249/7690/7714/478675" /> <Locations media-type="application/vnd.ez.api.LocationList+xml" href="/api/ezp/v2/content/objects/477171/locations" /> <Owner media-type="application/vnd.ez.api.User+xml" href="/api/ezp/v2/user/users/60936" /> <lastModificationDate>2019-10-03T13:12:17+02:00</lastModificationDate> <publishedDate>2019-05-13T15:24:34+02:00</publishedDate> <mainLanguageCode>eng-GB</mainLanguageCode> <currentVersionNo>3</currentVersionNo> <alwaysAvailable>true</alwaysAvailable> <isHidden>false</isHidden> <!-- missing flag --> <status>PUBLISHED</status> <ObjectStates media-type="application/vnd.ez.api.ContentObjectStates+xml" href="/api/ezp/v2/content/objects/477171/objectstates" /> </Content>