Error on updating ImageRef
-
When updating image ref and user is land coordinator for the transect to which ImageRef belongs, following error occurs:
mutation {
updateImageRef(
input: {
id: "image_refs/97"
observation: "/tagfalter-monitoring-api/index.php/observations/611"
sectionEvent: null
}
) {
imageRef
{
id
url
}
}
}
{"errors":[{"debugMessage":"[Semantical Error] line 0, col 92 near \u0027t.icc2 = lc.icc2\u0027: Error: \u0027t\u0027 is not defined.","message":"Internal server error","extensions":{"category":"internal"},"locations":[{"line":2,"column":13}],"path":["updateImageRef"],"trace":[{"file":"\/www-data\/vendor\/doctrine\/orm\/lib\/Doctrine\/ORM\/Query\/Parser.php","line":547,"call":"Doctrine\\ORM\\Query\\QueryException::semanticalError()"},{"file":"\/www-data\/vendor\/doctrine\/orm\/lib\/Doctrine\/ORM\/Query\/Parser.php","line":650,"call":"Doctrine\\ORM\\Query\\Parser::semanticalError()"},{"file":"\/www-data\/vendor\/doctrine\/orm\/lib\/Doctrine\/ORM\/Query\/Parser.php","line":317,"call":"Doctrine\\ORM\\Query\\Parser::processDeferredIdentificationVariables()"},{"file":"\/www-data\/vendor\/doctrine\/orm\/lib\/Doctrine\/ORM\/Query\/Parser.php","line":413,"call":"Doctrine\\ORM\\Query\\Parser::getAST()"},{"file":"\/www-data\/vendor\/doctrine\/orm\/lib\/Doctrine\/ORM\/Query.php","line":274,"call":"Doctrine\\ORM\\Query\\Parser::parse()"},{"file":"\/www-data\/vendor\/doctrine\/orm\/lib\/Doctrine\/ORM\/Query.php","line":286,"call":"Doctrine\\ORM\\Query::parse()"},{"file":"\/www-data\/vendor\/doctrine\/orm\/lib\/Doctrine\/ORM\/AbstractQuery.php","line":1073,"call":"Doctrine\\ORM\\Query::_doExecute()"},{"file":"\/www-data\/vendor\/doctrine\/orm\/lib\/Doctrine\/ORM\/AbstractQuery.php","line":1027,"call":"Doctrine\\ORM\\AbstractQuery::executeIgnoreQueryCache()"},{"file":"\/www-data\/vendor\/doctrine\/orm\/lib\/Doctrine\/ORM\/AbstractQuery.php","line":830,"call":"Doctrine\\ORM\\AbstractQuery::execute()"},{"file":"\/www-data\/src\/DataProvider\/UserFilterableDataProvider.php","line":93,"call":"Doctrine\\ORM\\AbstractQuery::getOneOrNullResult()"},{"file":"\/www-data\/vendor\/api-platform\/core\/src\/Bridge\/Symfony\/Bundle\/DataProvider\/TraceableChainItemDataProvider.php","line":75,"call":"App\\DataProvider\\UserFilterableDataProvider::getItem()"},{"file":"\/www-data\/vendor\/api-platform\/core\/src\/DataProvider\/OperationDataProviderTrait.php","line":64,"call":"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\DataProvider\\TraceableChainItemDataProvider::getItem()"},{"file":"\/www-data\/vendor\/api-platform\/core\/src\/Bridge\/Symfony\/Routing\/IriConverter.php","line":106,"call":"ApiPlatform\\Core\\Bridge\\Symfony\\Routing\\IriConverter::getItemData()"},{"file":"\/www-data\/vendor\/api-platform\/core\/src\/GraphQl\/Resolver\/Stage\/ReadStage.php","line":122,"call":"ApiPlatform\\Core\\Bridge\\Symfony\\Routing\\IriConverter::getItemFromIri()"},{"file":"\/www-data\/vendor\/api-platform\/core\/src\/GraphQl\/Resolver\/Stage\/ReadStage.php","line":74,"call":"ApiPlatform\\Core\\GraphQl\\Resolver\\Stage\\ReadStage::getItem()"},{"file":"\/www-data\/vendor\/api-platform\/core\/src\/GraphQl\/Resolver\/Factory\/ItemMutationResolverFactory.php","line":75,"call":"ApiPlatform\\Core\\GraphQl\\Resolver\\Stage\\ReadStage::__invoke()"},{"file":"\/www-data\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php","line":632,"call":"ApiPlatform\\Core\\GraphQl\\Resolver\\Factory\\ItemMutationResolverFactory::ApiPlatform\\Core\\GraphQl\\Resolver\\Factory\\{closure}()"},{"file":"\/www-data\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php","line":555,"call":"GraphQL\\Executor\\ReferenceExecutor::resolveOrError()"},{"file":"\/www-data\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php","line":478,"call":"GraphQL\\Executor\\ReferenceExecutor::resolveField()"},{"file":"\/www-data\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php","line":921,"call":"GraphQL\\Executor\\ReferenceExecutor::GraphQL\\Executor\\{closure}()"},{"call":"GraphQL\\Executor\\ReferenceExecutor::GraphQL\\Executor\\{closure}()"},{"file":"\/www-data\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php","line":923,"function":"array_reduce()"},{"file":"\/www-data\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php","line":494,"call":"GraphQL\\Executor\\ReferenceExecutor::promiseReduce()"},{"file":"\/www-data\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php","line":256,"call":"GraphQL\\Executor\\ReferenceExecutor::executeFieldsSerially()"},{"file":"\/www-data\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php","line":208,"call":"GraphQL\\Executor\\ReferenceExecutor::executeOperation()"},{"file":"\/www-data\/vendor\/webonyx\/graphql-php\/src\/Executor\/Executor.php","line":155,"call":"GraphQL\\Executor\\ReferenceExecutor::doExecute()"},{"file":"\/www-data\/vendor\/webonyx\/graphql-php\/src\/GraphQL.php","line":158,"call":"GraphQL\\Executor\\Executor::promiseToExecute()"},{"file":"\/www-data\/vendor\/webonyx\/graphql-php\/src\/GraphQL.php","line":90,"call":"GraphQL\\GraphQL::promiseToExecute()"},{"file":"\/www-data\/vendor\/api-platform\/core\/src\/GraphQl\/Executor.php","line":34,"call":"GraphQL\\GraphQL::executeQuery()"},{"file":"\/www-data\/vendor\/api-platform\/core\/src\/GraphQl\/Action\/EntrypointAction.php","line":86,"call":"ApiPlatform\\Core\\GraphQl\\Executor::executeQuery()"},{"file":"\/www-data\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":157,"call":"ApiPlatform\\Core\\GraphQl\\Action\\EntrypointAction::__invoke()"},{"file":"\/www-data\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":79,"call":"Symfony\\Component\\HttpKernel\\HttpKernel::handleRaw()"},{"file":"\/www-data\/vendor\/symfony\/http-kernel\/Kernel.php","line":195,"call":"Symfony\\Component\\HttpKernel\\HttpKernel::handle()"},{"file":"\/www-data\/web\/index.php","line":22,"call":"Symfony\\Component\\HttpKernel\\Kernel::handle()"}]}],"data":{"updateImageRef":null}}
-
When and image is uploaded to restricted bucket, as regular user, it cannot be updated - error message "Not found"
Edited by Michael Voigt