eodms-sgdot / py-eodms-rapi

EODMS RAPI Client is a Python3 package used to access the REST API service provided by the Earth Observation Data Management System (EODMS) from Natural Resources Canada.
Other
13 stars 4 forks source link

handle wrong url in the `"destinations":`. The one in `"manifest:` is right. #22

Closed willmacs closed 1 year ago

willmacs commented 1 year ago

Issue

In the below example, the EODMS REST API is returning the wrong url in the destinations. The one in manifest is right.

Impact

After submitting an order, a single image from that order is repeatedly downloaded and no other images in the order are downloaded.

Expectation

Construct the url from manifest and destinations until EODMS is fixed.

Sample

{
  "items": [
    {
      "orderId": 188705,
      "manifest": {
        "2e720468-c128-4cf3-8c71-22e75e2325e9/2239431/RCM2_OK2195019_PK2421176_1_SC50MB_20230119_145532_HH_HV_GRD.zip": "1050308566"
      },
      "destinations": [
        {
          "stringValue": "<a href='https://data.eodms-sgdot.nrcan-rncan.gc.ca/rcm/carts/6f641a71-e6c7-4ca4-8070-f0b22bdf805f/1461195/0afeadf1-cfb0-431a-8fb4-abdb3f50364a'>https://data.eodms-sgdot.nrcan-rncan.gc.ca/rcm/carts/6f641a71-e6c7-4ca4-8070-f0b22bdf805f/1461195/0afeadf1-cfb0-431a-8fb4-abdb3f50364a</a></br>",
          "type": "Download"
        }
      ],
...