Details
-
Bug
-
Resolution: Fixed
-
High
-
5.3.3
-
None
-
None
Description
Updating a Content object via Content Service results in following error in the logs, when a ezurl field value is empty.
app.ERROR: URL with ID '1391' not found
the corresponding entry in the ezurl db table contains this:
id | original_url_md5 | url |
---|---|---|
1391 | d41d8cd98f00b204e9800998ecf8427e | (NULL) |
I actually got more than one entry with the URL hash d41d8cd98f00b204e9800998ecf8427e and NULL as url value.
What I did to update the Content object:
$contentService = $this->getContentService(); $updateObject = $contentService->newContentUpdateStruct(); $updateObject->setField('some_field_but_not_ezurl_field_type', 'some_value'); $draft = $contentService->createContentDraft($content->contentInfo); $updatedContent = $contentService->updateContent($draft->versionInfo, $updateObject); $contentService->publishVersion($updatedContent->versionInfo);