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
[Gitlab driver] 404 on urlencode the repository name #6064
Comments
This looks like a bug, but will need further investigation. |
/cc @calin-marian who did the initial url encoding PR. Do you think it would be fine to not encode |
I think the original encoding solution was because package names with |
thanks @Seldaek |
I'm currently experiencing the same issue with My {
"name": "adam/private-gitlab-test",
"require": {
"group/project-name": "dev-master"
},
"repositories": [
{
"type": "gitlab",
"url": "https://git.domain.com/group/project-name"
}
],
"config": {
"gitlab-domains": ["https://git.domain.com"]
}
} composer update
Failed to download group/project-name:The "https://git.domain.com/api/v3/projects/group%2Fproject-name" file could not be downloaded (HTTP/1.1 404 Not Found) Hitting the URL |
For me, it solve the issue. |
@fezfez I guess project visibility is the issue here although Composer is generating a valid API token for my user okay. It's a strange user experience. |
I've got same issue on 1.4.2 using a composer.json similar to yours.
|
My
composer.json
:Output of
composer diagnose
:When I run this command:
I get the following output:
And I expected this to happen:
I simply expected to work :)
I believe that the encoding of the url in the repository name, especially for the "-" char is wrong. (https://github.com/composer/composer/blob/master/src/Composer/Repository/Vcs/GitLabDriver.php#L223)
A simple test on public gitlab repo.
https://gitlab.com/gitlab-org/gitlab-ee [200 OK]
https://gitlab.com/gitlab-org/gitlab%2Dee [302 Found]
On my private repo
https://gitlab.****.fr/ulysse/file-iterator [200 OK]
https://gitlab.*****.fr/ulysse/file%2Diterator[404 Not Found]
gitlab version 8.15.2
Composer version 1.3.1 2017-01-07 18:08:51
The text was updated successfully, but these errors were encountered: