Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24083

Content Service creates empty url in ezurl db table

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.3.3
    • Fix Version/s: 2015.07, 5.4.5-beta, 5.3.8
    • Component/s: None
    • Labels:
      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);
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            kuborgh-fdyckhoff Franziska Dyckhoff
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: