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

2.6 RC1 - 'URL parsing failed' error when opening application sourced from OCI registry (ECR) #11816

Closed
RomanBats opened this issue Dec 22, 2022 · 4 comments · Fixed by #11819 or #11916
Labels
bug Something isn't working
Milestone

Comments

@RomanBats
Copy link

Describe the bug

I am using the latest nightly build (quay.io/argoproj/argocd@sha256:3e3890cd3614fff9d86db4facd99349cad0241fee7f974fefdd97fdca8c13ef2). Same happens with v2.6.0-rc1.

All my applications from the ECR OCI registry fail to open with an error "URL parsing failed".
It seems to me that it expects to have a protocol in the repoURL, because if I use - "repoURL: 1234567890.dkr.ecr.us-west-1.amazonaws.com" - the UI crashes. When I add "oci://" or "https://" - the UI works but, of course, the application is in an unknown state due to the "unsupported protocol scheme "oci"".

To Reproduce

Use OCI registry without protocol in the URI

Expected behavior

Either allow adding "oci://" prefix to the repoURL or support URLs without a protocol

Screenshots

image

Version

{
    "Version": "v2.6.0+43c928e",
    "BuildDate": "2022-12-21T19:47:17Z",
    "GitCommit": "43c928e2e5f474f8e78f66f73cd0ee2bf91a0cd1",
    "GitTreeState": "clean",
    "GoVersion": "go1.18.9",
    "Compiler": "gc",
    "Platform": "linux/arm64",
    "KustomizeVersion": "v4.5.7 2022-08-02T16:35:54Z",
    "HelmVersion": "v3.10.3+g835b733",
    "KubectlVersion": "v0.24.2",
    "JsonnetVersion": "v0.19.1"
}
@RomanBats RomanBats added the bug Something isn't working label Dec 22, 2022
@RomanBats RomanBats changed the title 'URL parsing failed' error when opening application sourced from OCI registry (ECR) - nightly build 2.6 RC1 - 'URL parsing failed' error when opening application sourced from OCI registry (ECR) - nightly build Dec 23, 2022
@RomanBats RomanBats changed the title 2.6 RC1 - 'URL parsing failed' error when opening application sourced from OCI registry (ECR) - nightly build 2.6 RC1 - 'URL parsing failed' error when opening application sourced from OCI registry (ECR) Dec 23, 2022
@alexef
Copy link
Member

alexef commented Dec 23, 2022

I'm also affected by this. I believe it was introduced in cd171bf will now try to figure it out

@alexef alexef added the breaking/high A possibly breaking change with high impact label Dec 23, 2022
@alexef alexef added this to the v2.6 milestone Dec 23, 2022
@ejennings95
Copy link

ejennings95 commented Dec 28, 2022

+1

Running version:

{
    "Version": "v2.6.0+566d50f",
    "BuildDate": "2022-12-22T18:52:05Z",
    "GitCommit": "566d50f6336e38579239694d8c1649236b5672cc",
    "GitTreeState": "clean",
    "GoVersion": "go1.18.9",
    "Compiler": "gc",
    "Platform": "linux/amd64",
    "KustomizeVersion": "v4.5.7 2022-08-02T16:35:54Z",
    "HelmVersion": "v3.10.3+g835b733",
    "KubectlVersion": "v0.24.2",
    "JsonnetVersion": "v0.19.1"
}

Have either of you used a work around until this is fixed? Currently i have re-deployed v2.5.5 to get around it.

@RomanBats
Copy link
Author

@ejennings95, nope, had to roll back it as well.
Waiting for the fix to be merged.

@alexef alexef reopened this Jan 9, 2023
@alexef
Copy link
Member

alexef commented Jan 9, 2023

Re-opening this as reported by @RomanBats: #11819 (comment)

the problem is now that on the git path (no exception raised) the variable is not visible outside the try except.

alexef added a commit to alexef/argo-cd that referenced this issue Jan 9, 2023
Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
crenshaw-dev pushed a commit that referenced this issue Jan 10, 2023
* fix: parsed url is not exposed (#11816)

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>

* subtler fix, thanks @woehrl01

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
crenshaw-dev pushed a commit that referenced this issue Jan 10, 2023
* fix: parsed url is not exposed (#11816)

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>

* subtler fix, thanks @woehrl01

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
@alexef alexef removed the breaking/high A possibly breaking change with high impact label Jan 16, 2023
emirot pushed a commit to emirot/argo-cd that referenced this issue Jan 27, 2023
* fix: parsed url is not exposed (argoproj#11816)

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>

* subtler fix, thanks @woehrl01

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
Signed-off-by: emirot <emirot.nolan@gmail.com>
schakrad pushed a commit to schakrad/argo-cd that referenced this issue Mar 14, 2023
* fix: parsed url is not exposed (argoproj#11816)

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>

* subtler fix, thanks @woehrl01

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
Signed-off-by: schakrad <chakradari.sindhu@gmail.com>
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
3 participants