Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destination URL path is lowercased for harmony-job-status-link #673

Open
frankinspace opened this issue Dec 12, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@frankinspace
Copy link
Contributor

Noticed a bit of odd behavior when testing out the destination url parameter. If I submit a request where a portion of the destination url is uppercase (in my example, the dataset shortname), the results end up creating two keys in my s3 bucket one is uppercase like in my request and the other is lowercased. The lowercase key contains the harmony-job-status-link object and the uppercase key contains the request results.

Example query:

https://harmony.uat.earthdata.nasa.gov/C1264760805-POCLOUD/ogc-api-coverages/1.0.0/collections/all/coverage/rangeset?forceAsync=true&destinationUrl=s3%3A%2F%2Fsvc-bignbit-sit-harmony-staging%2Fbignbit-harmony-output%2FOPERA_L3_DSWX-S1_V1%2F20241212&granuleId=G1272632541-POCLOUD&width=720&height=360&format=image%2Fpng

The destination url is s3://svc-bignbit-sit-harmony-staging/bignbit-harmony-output/OPERA_L3_DSWX-S1_V1/20241212

This results in the following objects:

s3://svc-bignbit-sit-harmony-staging/bignbit-harmony-output/opera_l3_dswx-s1_v1/20241212/0b6f89d6-0a02-415c-b4c5-181cab3902eb/harmony-job-status-link
s3://svc-bignbit-sit-harmony-staging/bignbit-harmony-output/OPERA_L3_DSWX-S1_V1/20241212/0b6f89d6-0a02-415c-b4c5-181cab3902eb/4928657/OPERA_L3_DSWx-S1_T45QYD_20241001T121219Z_20241206T065726Z_S1A_30_v1.0_B01_WTR.png
s3://svc-bignbit-sit-harmony-staging/bignbit-harmony-output/OPERA_L3_DSWX-S1_V1/20241212/0b6f89d6-0a02-415c-b4c5-181cab3902eb/4928657/OPERA_L3_DSWx-S1_T45QYD_20241001T121219Z_20241206T065726Z_S1A_30_v1.0_B01_WTR.pgw
s3://svc-bignbit-sit-harmony-staging/bignbit-harmony-output/OPERA_L3_DSWX-S1_V1/20241212/0b6f89d6-0a02-415c-b4c5-181cab3902eb/4928657/OPERA_L3_DSWx-S1_T45QYD_20241001T121219Z_20241206T065726Z_S1A_30_v1.0_B01_WTR.png.aux.xml
s3://svc-bignbit-sit-harmony-staging/bignbit-harmony-output/OPERA_L3_DSWX-S1_V1/20241212/0b6f89d6-0a02-415c-b4c5-181cab3902eb/4928657/OPERA_L3_DSWx-S1_T45QYD_20241001T121219Z_20241206T065726Z_S1A_30_v1.0_B01_WTR.txt

Only the harmony-job-status-link object is created under the lowercased opera_l3_dswx-s1_v1 path. I would expect the object to all be created under the same path that matches the case specified in the request.

@frankinspace frankinspace added the bug Something isn't working label Dec 12, 2024
@ygliuvt
Copy link
Member

ygliuvt commented Dec 12, 2024

Thanks for submitting the issue @frankinspace! I have submitted a PR for this issue. It should be in the next Harmony release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants