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

Unauthorized when accessing Products.PythonScripts.standard in PageTemplate #209

Closed
icemac opened this Issue Oct 23, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@icemac
Contributor

icemac commented Oct 23, 2017

The following code in a TTW PageTemplate in Zope 2.13 rendered asdf when calling it.

<span tal:content="python:modules['Products.PythonScripts.standard'].url_quote('asdf')" />

In Zope 4 it raises an Unauthorized exception which manifests in a basic auth password dialog.

Other modules seem to work. Maybe the security declarations of this module are no longer read.

@icemac icemac added this to the 4.0b3 milestone Oct 23, 2017

@tseaver

This comment has been minimized.

Show comment
Hide comment
@tseaver

tseaver Oct 23, 2017

Member

There used to be a security.declarePublic(Products.PythonScripts.standard) call somewhere in the startup bits.

Member

tseaver commented Oct 23, 2017

There used to be a security.declarePublic(Products.PythonScripts.standard) call somewhere in the startup bits.

@icemac

This comment has been minimized.

Show comment
Hide comment
@icemac

icemac Oct 24, 2017

Contributor

It was fixed in zopefoundation/Products.PythonScripts#10 which did not have a change log entry nor a release so I stumbled across it by accident. I'm going to write a change log entry for it. Sorry for the noise.

Contributor

icemac commented Oct 24, 2017

It was fixed in zopefoundation/Products.PythonScripts#10 which did not have a change log entry nor a release so I stumbled across it by accident. I'm going to write a change log entry for it. Sorry for the noise.

@icemac icemac closed this Oct 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment