argoproj / argo-workflows

Workflow Engine for Kubernetes
https://argo-workflows.readthedocs.io/
Apache License 2.0
14.55k stars 3.12k forks source link

v3.4.14 Broken redirect to archived workflows #13056

Open apiwoni opened 1 month ago

apiwoni commented 1 month ago

Pre-requisites

What happened/what did you expect to happen?

The following URL https://{{serverUrl}}/workflows/{namespace}/{workflowName} no longer redirects to https://{{serverUrl}}/archived-workflows/{namespace}/{metadata.uid} starting with v3.4.14 when fix(ui): missing uiUrl in ArchivedWorkflowsList #12172 has been committed.

Pasting https://{{serverUrl}}/archived-workflows/{namespace}/{metadata.uid} directly in the browser works as expected.

Argo UI shows the following:

Error: Failed to execute 'pushState' on 'History': A history state object with URL 'https://archived-workflows/{{namepsace}}/87e895f1-50df-443b-971d-218beae9d25f' cannot be created in a document with origin 'https://xxx' and URL 'https://xxx/archived-workflows?namespace={namespace}&name=workflowName&deep=true'.
    at https://xxx/main.fa82dae05c4e68e1ec09.js:446:1047769
    at Object.confirmTransitionTo (https://xxx/main.fa82dae05c4e68e1ec09.js:446:1045618)
    at Object.push (https://xxx/main.fa82dae05c4e68e1ec09.js:446:1047680)
    at t.componentDidUpdate (https://xxx/main.fa82dae05c4e68e1ec09.js:433:843312)
    at is (https://xxx/main.fa82dae05c4e68e1ec09.js:398:83471)
    at hc (https://xxx/main.fa82dae05c4e68e1ec09.js:398:101246)
    at t.unstable_runWithPriority (https://xxx/main.fa82dae05c4e68e1ec09.js:406:3844)
    at Ho (https://xxx/main.fa82dae05c4e68e1ec09.js:398:45024)
    at pc (https://xxx/main.fa82dae05c4e68e1ec09.js:398:97718)
    at Qs (https://xxx/main.fa82dae05c4e68e1ec09.js:398:93872)

componentDidUpdate has added uiUrl in v3.4.14 per https://github.com/argoproj/argo-workflows/pull/12172/files

Version

v3.4.16

Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.

N/A

Logs from the workflow controller

N/A

Logs from in your workflow's wait container

N/A
diegofd commented 6 days ago

We're still experiencing the same issue on 3.4.17.

Navigating to https://SERVER/workflows/NAMESPACE/WORKFLOW_NAME on an already archived workflow doesn't redirect to it, but fails with above Error: Failed to execute 'pushState' on 'History' error.

Navigating directly to the archived workflow on https://SERVER/archived-workflows/NAMESPACE/UUID works.

apiwoni commented 5 days ago

@diegofd This has not been fixed yet

diegofd commented 5 days ago

@apiwoni I know, sorry if my wording told a different thing :) I just wanted to highlight that we're also hitting this issue.