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

Argument 'BinaryFile::id' is invalid: '/trashed/d41d8cd98f00b204e9800998ecf8427e.' is wrong value in class 'BinaryFile

    XMLWordPrintable

Details

    Description

      In some circumstances (missing file most-likely) our customer is receiving following error while using Public API.

      Argument 'BinaryFile::id' is invalid: '/trashed/d41d8cd98f00b204e9800998ecf8427e.' is wrong value in class 'BinaryFile

      {
        "ErrorMessage": {
          "_media-type": "application/vnd.ez.api.ErrorMessage+json",
          "errorCode": 406,
          "errorMessage": "Not Acceptable",
          "errorDescription": "Argument 'BinaryFile::id' is invalid: '/trashed/d41d8cd98f00b204e9800998ecf8427e.' is wrong value in class 'BinaryFile'",
          "trace": "#0 /web/docs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/UrlRedecorator.php(37): eZ\Publish\Core\IO\UrlDecorator\Prefix->undecorate('/trashed/d41d8c...')\n#1 /web/docs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/Image.php(205): eZ\Publish\Core\IO\UrlRedecorator->redecorateFromTarget('/trashed/d41d8c...')\n#2 /web/docs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/Image.php(173): eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image->parseLegacyXml('<?xml version=\"...')\n#3 /web/docs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php(419): eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image->toFieldValue(Object(eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue), Object(eZ\Publish\SPI\Persistence\Content\FieldValue))\n#4 /web/docs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php(382): eZ\Publish\Core\Persistence\Legacy\Content\Mapper->extractFieldValueFromRow(Array, 'ezimage')\n#5 /web/docs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php(212): eZ\Publish\Core\Persistence\Legacy\Content\Mapper->extractFieldFromRow(Array)\n#6 /web/docs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Handler.php(327): eZ\Publish\Core\Persistence\Legacy\Content\Mapper->extractContentFromRows(Array)\n#7 /web/docs/ezpublish/cache/stage/ezpublishStageProjectContainer.php(18831): eZ\Publish\Core\Persistence\Legacy\Content\Handler->load(71278, 2, NULL)\n#8 /web/docs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Cache/ContentHandler.php(70): eZPublishCorePersistenceLegacyContentHandler_000000000c87bb5100007ff08090d3e2f5b9a0b0d746e59f715769d4aeeee72a->load(71278, 2, NULL)\n#9 /web/docs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php(410): eZ\Publish\Core\Persistence\Cache\ContentHandler->load(71278, 2, NULL)\n#10 /web/docs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php(343): eZ\Publish\Core\Repository\ContentService->internalLoadContent(71278, NULL, NULL, false, true)\n#11 /web/docs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/ContentService.php(194): eZ\Publish\Core\Repository\ContentService->loadContent(71278, NULL, NULL, true)\n#12 /web/docs/ezpublish/cache/stage/ezpublishStageProjectContainer.php(16080): eZ\Publish\Core\SignalSlot\ContentService->loadContent(71278, NULL, NULL, true)\n#13 /web/docs/vendor/ezsystems/recommendation-bundle/Rest/Field/Value.php(109): eZPublishCoreRepositoryContentService_000000000c87ba2500007ff08090d3e2f5b9a0b0d746e59f715769d4aeeee72a->loadContent(71278)\n#14 /web/docs/vendor/ezsystems/recommendation-bundle/Rest/Field/Value.php(121): EzSystems\RecommendationBundle\Rest\Field\Value->getImageFieldIdentifier(71278, 'eng-US', true)\n#15 /web/docs/vendor/ezsystems/recommendation-bundle/Rest/Field/Value.php(70): EzSystems\RecommendationBundle\Rest\Field\Value->getImageFieldIdentifier(62618, 'eng-US')\n#16 /web/docs/vendor/ezsystems/recommendation-bundle/Rest/Controller/ContentController.php(157): EzSystems\RecommendationBundle\Rest\Field\Value->getFieldValue(Object(eZ\Publish\Core\Repository\Values\Content\Content), 'image', 'eng-US')\n#17 /web/docs/vendor/ezsystems/recommendation-bundle/Rest/Controller/ContentTypeController.php(73): EzSystems\RecommendationBundle\Rest\Controller\ContentController->prepareContent(Array, Object(Symfony\Component\HttpFoundation\Request))\n#18 /web/docs/vendor/ezsystems/recommendation-bundle/Rest/Controller/ContentTypeController.php(35): EzSystems\RecommendationBundle\Rest\Controller\ContentTypeController->prepareContentByContentTypeIds(Array, Object(Symfony\Component\HttpFoundation\Request))\n#19 [internal function]: EzSystems\RecommendationBundle\Rest\Controller\ContentTypeController->getContentType('52', Object(Symfony\Component\HttpFoundation\Request))\n#20 /web/docs/ezpublish/bootstrap.php.cache(3054): call_user_func_array(Array, Array)\n#21 /web/docs/ezpublish/bootstrap.php.cache(3016): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)\n#22 /web/docs/ezpublish/bootstrap.php.cache(3165): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)\n#23 /web/docs/ezpublish/bootstrap.php.cache(2406): Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)\n#24 /web/docs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(490): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)\n#25 /web/docs/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php(60): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)\n#26 /web/docs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(447): Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)\n#27 /web/docs/vendor/friendsofsymfony/http-cache-bundle/SymfonyCache/EventDispatchingHttpCache.php(143): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Object(Symfony\Component\HttpFoundation\Request), true)\n#28 /web/docs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(347): FOS\HttpCacheBundle\SymfonyCache\EventDispatchingHttpCache->fetch(Object(Symfony\Component\HttpFoundation\Request), true)\n#29 /web/docs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(211): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)\n#30 /web/docs/vendor/friendsofsymfony/http-cache-bundle/SymfonyCache/EventDispatchingHttpCache.php(122): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)\n#31 /web/docs/web/index.php(77): FOS\HttpCacheBundle\SymfonyCache\EventDispatchingHttpCache->handle(Object(Symfony\Component\HttpFoundation\Request))\n#32 {main}",
          "file": "/web/docs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/UrlDecorator/Prefix.php",
          "line": 57
        }
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            lukasz.serwatka@ibexa.co Ɓukasz Serwatka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: