Skip to content

Plus sign (“+”) in product name causes 404 error in prosEO Ingestor (character escaping) #255

@ncortim

Description

@ncortim

Description:

When downloading products through the prosEO Ingestor, a 404-199 error occurs if the product name contains a plus sign (+).

The issue appears to be caused by the fact that the + character in HTTP query parameters is interpreted as a space. As a result, the Ingestor searches for a product name containing a space and cannot find the correct file.

The missing URL encoding (escape) of the plus sign likely occurs in the PRIP API service, when it retrieves the download token from the Ingestor.

Steps to Reproduce

Attempt to download a product whose name includes a + character via the PRIP API.

Observe that the ProSEo Ingestor returns a 404-199 error.

Compare the requested filename and the actual filename in the S3 bucket — note the mismatch caused by the + being treated as a space.

Image

Expected Behavior

The product should be successfully retrieved even if the filename includes a + character. The + should be properly URL-encoded (%2B) in all HTTP requests.

Suggested Fix

Ensure that the + character is correctly escaped/encoded in the PRIP API service when generating or passing download tokens to the Ingestor.

Additional Context

The issue was observed when comparing API responses with S3 bucket filenames.

Discussed and confirmed as likely a PRIP-API-side issue (see Thomas’ analysis).

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingimplementedIssue has been implemented and is ready for test

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions