Skip to content

package checking with "cabal upload -c" gives error 404 #128

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

Closed
choener opened this issue Oct 10, 2013 · 6 comments
Closed

package checking with "cabal upload -c" gives error 404 #128

choener opened this issue Oct 10, 2013 · 6 comments

Comments

@choener
Copy link

choener commented Oct 10, 2013

cabal upload -c dist/PrimitiveArray-0.5.2.0.tar.gz
Checking dist/PrimitiveArray-0.5.2.0.tar.gz...
Error: dist/PrimitiveArray-0.5.2.0.tar.gz: 404 Not Found

This could also be a cabal-install problem.

@dcoutts
Copy link
Contributor

dcoutts commented Oct 22, 2013

And presumably dist/PrimitiveArray-0.5.2.0.tar.gz really does exist? Output with -v3 ?

@choener
Copy link
Author

choener commented Oct 22, 2013

Yes, the file exists, without "-c" I successfully uploaded it. "-v3" output follows:

cabal-install version 1.18.0.2
using version 1.18.0 of the Cabal library 

cabal upload -v3 -c dist/PrimitiveArray-0.5.2.0.tar.gz
Checking dist/PrimitiveArray-0.5.2.0.tar.gz...

POST http://hackage.haskell.org/cgi-bin/hackage-scripts/check-pkg HTTP/1.1
Content-Type: multipart/form-data; boundary=d907e10a92da52
Content-Length: 10108
Accept: text/plain

Sending:
POST /cgi-bin/hackage-scripts/check-pkg HTTP/1.1
Host: hackage.haskell.org
Content-Type: multipart/form-data; boundary=d907e10a92da52
Content-Length: 10108
Accept: text/plain

Creating new connection to hackage.haskell.org
Received:
HTTP/1.1 404 Not Found
Server: nginx/1.4.2
Date: Tue, 22 Oct 2013 17:42:35 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Content-Length: 50

HTTP/1.1 404 Not Found
Server: nginx/1.4.2
Date: Tue, 22 Oct 2013 17:42:35 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Content-Length: 50

Error: dist/PrimitiveArray-0.5.2.0.tar.gz: 404 Not Found
Error: Page not found

Sorry, it's just not here.

@toschoo
Copy link

toschoo commented Oct 23, 2013

It works without the -c option. But with the option, I get the same result:

cabal upload -c -v3 dist/stomp-queue-0.0.6.tar.gz
Checking dist/stomp-queue-0.0.6.tar.gz...

POST http://hackage.haskell.org/cgi-bin/hackage-scripts/check-pkg HTTP/1.1
Content-Type: multipart/form-data; boundary=73ba95a462e345
Content-Length: 30358
Accept: text/plain
Sending:
POST /cgi-bin/hackage-scripts/check-pkg HTTP/1.1
Host: hackage.haskell.org
Content-Type: multipart/form-data; boundary=73ba95a462e345
Content-Length: 30358
Accept: text/plain
Creating new connection to hackage.haskell.org
Received:
HTTP/1.1 404 Not Found
Server: nginx/1.4.2
Date: Wed, 23 Oct 2013 19:02:26 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Content-Length: 50
HTTP/1.1 404 Not Found
Server: nginx/1.4.2
Date: Wed, 23 Oct 2013 19:02:26 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Content-Length: 50
Error: dist/stomp-queue-0.0.6.tar.gz: 404 Not Found
Error: Page not found
Sorry, it's just not here.

@andreasabel
Copy link
Member

Same behavior for me: upload works, but not with --check.

@aslatter
Copy link
Contributor

aslatter commented Jan 9, 2014

It's been a while since I've hacked on this, but my understanding is that the "package candidates" feature was meant to supersede "cabal upload --check". Maybe I'm mis-remembering.

Also suspicious is the "LegacyRedirects" module has a commented-out redirect for the "check" POST request.

@gbaz
Copy link
Contributor

gbaz commented Jan 28, 2018

Resolved as with #1823

@gbaz gbaz closed this as completed Jan 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants