[solved] Bad cache of dist.plone.org

Although I can access http://dist.plone.org/release/5.0.5/versions.cfg in a browser, it is failing in buildout with a 403 error. I can reproduce the error just using urllib2, which buildout uses

import urllib2
urllib2.urlopen('http://dist.plone.org/release/5.0.5/versions.cfg')

All of the adjacent versions work without a problem. And in fact I can get this to work with a no-cache header

import urllib2
url='http://dist.plone.org/release/5.0.5/versions.cfg'
request = urllib2.Request(url)
request.add_header('Pragma', 'no-cache')
urllib2.build_opener().open(request)

Is this likely a cache on the dist.plone.org server?

Might be solved?

python 2.7.15:

urllib2.urlopen('http://dist.plone.org/release/5.0.5/versions.cfg').read()
"[buildout]\nextends = http://dist.plone.org/versions/zopetoolkit-1-0-8-zopeapp-versions.cfg\n          http://dist.plone.org/versions/zope-2-13-24-versions.cfg\n\n[versions]\n################\n#(...)

If it's still not working for you, please email admins@plone.org to let them know

Looks like our proxy cached a bad request, flushing it resolved this issue.

1 Like

Some years a go we had a similar problem (https://github.com/plone/Products.CMFPlone/issues/606), but instead of 403 we were getting a gzipped file, and used the strangest workaround we've ever seen.