devonfw / ide

Tool to automate setup and update of development environment (esp. for Java projects).
Apache License 2.0
33 stars 102 forks source link

UrlUpdater changes both error and success timestamp #1343

Closed hohwille closed 9 months ago

hohwille commented 10 months ago

Expected behavior

The UrlUpdater (update-urls.yml) should update status.json in the following ways:

Actual behavior

There is total non-sense happening. See e.g. this commit where both success and error timestamps have been set to the exact same instant of time. At one moment of time the state can either be error or success but not both. The fun fact and the actual reason seems to lay in the error status code that is set to 200:

"urls" : {
    "202695819" : {
      "success" : {
        "timestamp" : "2023-08-30T03:35:35.531458481Z"
        "timestamp" : "2023-08-31T03:41:43.706649707Z"
      },
      "error" : {
        "timestamp" : "2023-08-30T03:35:35.651600276Z",
        "timestamp" : "2023-08-31T03:41:43.840025356Z",
        "code" : 200
      }
    },

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. check this status.json: https://github.com/devonfw/ide-urls/blob/055a0285b38376ea49f612ac4e60eeb75c74e817/pip/pip/3.2/status.json#L10

Related/Dependent Issues

Comments/Hints:

Maybe we broke that code that determines if something is success or error from the response.

Affected version: