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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 2015.07, 5.4.5-beta, 5.3.8
    • 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);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            1b6798b0-82f7-4817-80e6-38893363180a@accounts.ibexa.co Franziska Dyckhoff
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: