Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
5.2-dev
-
None
Description
The following test in eZ/Publish/Core/Repository/Tests/Service/Integration/ContentBase.php fails. This is due to the fact the loadContentByRemoteId relies on the SearchService which is only able to search content that have been published so if you create a content without publshing it and then try to load it with its remote id, ContentService::loadContentByRemoteId will throw an exception.
/** * Test for the loadContentByRemoteId() method. * * @covers \eZ\Publish\Core\Repository\ContentService::loadContentByRemoteId * @expectedException \eZ\Publish\API\Repository\Exceptions\UnauthorizedException */ public function testLoadContentByRemoteIdWithVersion() { list( $draft, ) = $this->createTestContent(); $this->repository->getContentService()->loadContentByRemoteId( $draft->contentInfo->remoteId ); }
Attachments
Issue Links
- discovered while testing
-
EZP-21219 versionread policy not checked in ContentService::loadContent
- Closed