Comment 2 for bug 1674886

Revision history for this message
Prerna Dembla (prerna.dembla) wrote :

Operation image upload is performed in below three steps:
STEP 1) Chunking of the image : The large size image file is divided into smaller size chunks.
STEP 2) Validation of image ID. If image ID is valid then proceed to Step 3 else EXIT.
STEP 3) Uploading of the chunks to the empty container.

If an invalid image-id is provided in image upload operation, then unwanted CPU effort get waste in chunking of image and then Error response "No image found with ID <image-id>"is returned.
Ideally, the validity of the <image-id> should be checked first to prevent further chunking of data.