refs #2591. new response. Added job_id
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details

main
Manuel Aranda Rosales 2025-08-04 12:37:23 +02:00
parent 3c78984217
commit 4a4771f8eb
2 changed files with 7 additions and 6 deletions

View File

@ -89,8 +89,9 @@ readonly class ImageProcessor implements ProcessorInterface
}
if ($response instanceof JsonResponse && $response->getStatusCode() === 200) {
$jobContent = json_decode($response->getContent(), true);
return new JsonResponse(data: $jobContent, status: Response::HTTP_OK);
$jobContent = json_decode($response->getContent(), true, 512, JSON_UNESCAPED_SLASHES);
$jsonString = json_encode($jobContent, JSON_UNESCAPED_SLASHES);
return new JsonResponse($jsonString, Response::HTTP_OK, [], true);
}
return new JsonResponse(data: ['/clients/' . $image->getClient()->getUuid() => ['headers' => []]], status: Response::HTTP_OK);

View File

@ -76,13 +76,13 @@ readonly class PartitionProcessor implements ProcessorInterface
$response = $this->partitionAssistantAction->__invoke($data);
// Si hay una respuesta exitosa, devolvemos el contenido del job ID
if ($response instanceof JsonResponse && $response->getStatusCode() === 200) {
$jobContent = json_decode($response->getContent(), true);
return new JsonResponse(data: $jobContent, status: Response::HTTP_OK);
$jobContent = json_decode($response->getContent(), true, 512, JSON_UNESCAPED_SLASHES);
$jsonString = json_encode($jobContent, JSON_UNESCAPED_SLASHES);
return new JsonResponse($jsonString, Response::HTTP_OK, [], true);
}
return new JsonResponse('OK', Response::HTTP_NO_CONTENT);
return new JsonResponse(data: ['/clients/' . $image->getClient()->getUuid() => ['headers' => []]], status: Response::HTTP_OK);
}
private function processDelete($data, Operation $operation, array $uriVariables = [], array $context = []): null