Unauthorised manage_page_header

Bug #463454 reported by marche1990
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Low
Unassigned

Bug Description

I have just install Zope2 2.12.0
created a new instance
and logged into the ZMI

when I click on the index_html object it gives me the following error

Error Type: Unauthorized
Error Value: You are not allowed to access 'manage_page_header' in this context

I get this on any new folder when I check the create public interface.

If i delete this object and recreate all is fine, I think there is a problem with the default object that get created mapping to the manage_page_header.

If you need any more info from me please ask I'll do my best to supply as I'm a Zope Noobie.

Revision history for this message
Tres Seaver (tseaver) wrote : Re: [zope2-tracker] [Bug 463454] [NEW] Unauthorised manage_page_header

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

marche1990 wrote:
> Public bug reported:
>
> I have just install Zope2 2.12.0
> created a new instance
> and logged into the ZMI
>
> when I click on the index_html object it gives me the following error
>
> Error Type: Unauthorized
> Error Value: You are not allowed to access 'manage_page_header' in this context
>
> I get this on any new folder when I check the create public interface.
>
> If i delete this object and recreate all is fine, I think there is a
> problem with the default object that get created mapping to the
> manage_page_header.
>
> If you need any more info from me please ask I'll do my best to supply
> as I'm a Zope Noobie.

Hmm, I can't reproduce this from an up-to-date Zope 2.12 branch checkout::

  $ cd projects/Zope-CVS/Zope-2.12-branch
  $ svn up
  $ bin/buildout
  ...
  $ bin/mkzopeinstance -d /tmp/z212 -u admin:admin
  $ /tmp/z212/bin/zopectl fg

Nor from a new virtualenv with Zope2==2.12.0 installed:

  $ rm -r /tmp/z212
  $ ../bin/virtualenv2.6 --no-site-packages /tmp/z212sw
  $ cd /tmp/z212sw
  $ bin/easy_install Zope2==2.12.0
  ...
  $ bin/mkzopeisntance -d /tmp/z212inst -u admin:admin
  $ /tmp/z212inst/bin/zopectl fg

In both cases, when I click on the 'index_html' object, I see the "Edit"
tab, and can save changes to it. The "Test" tab renders correctly, too.

Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 <email address hidden>
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkrp07YACgkQ+gerLs4ltQ6C6gCgyXTsBg2cswhPvExR1W5bZSMX
ttoAn2P7ukz6VGoDTq8zV1gqD+wpgFQl
=fwy+
-----END PGP SIGNATURE-----

Revision history for this message
marche1990 (marche) wrote :

Tres,

I've just checked out the 2.12 branch from the svn repo and still have the same problem

$ svn co svn://svn.zope.org/repos/main/Zope/branches/2.12 Zope
$ python bootstrap.py
$ bin/buildout
$ bin/mkzopeinstance -d /tmp/z212 -u admin:admin
$ /tmp/z212/bin/zopectl fg

this is my version of python if that helps

Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin

Revision history for this message
Tres Seaver (tseaver) wrote : Re: [zope2-tracker] [Bug 463454] Re: Unauthorised manage_page_header

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

marche1990 wrote:
> Tres,
>
> I've just checked out the 2.12 branch from the svn repo and still have
> the same problem
>
> $ svn co svn://svn.zope.org/repos/main/Zope/branches/2.12 Zope
> $ python bootstrap.py
> $ bin/buildout
> $ bin/mkzopeinstance -d /tmp/z212 -u admin:admin
> $ /tmp/z212/bin/zopectl fg
>
> this is my version of python if that helps
>
> Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
> [GCC 4.2.1 (Apple Inc. build 5646)] on darwin

I just repeated those steps on my box (Ubuntu w/ system Python 2.6.2),
and can edit / view the /index_html document without problems. The
content of the index_html is just:

 <tal:text tal:replace="structure context/zope_quick_start" />

Are you using a new Data.fs, or copying an old one into the new instance?

Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 <email address hidden>
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkrvLMoACgkQ+gerLs4ltQ5abACgo7w9f6Bs06rejaqTs0bQAcXf
BlcAoLMDGj8Kl8CseEw9w6tg75AGptDf
=yicM
-----END PGP SIGNATURE-----

Revision history for this message
marche1990 (marche) wrote :

Tres,

Its a completely new instance with a new data.fs

Revision history for this message
Hanno Schlichting (hannosch) wrote :

We weren't able to reproduce this. Without further details there's nothing we can do.

Changed in zope2:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope2 project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope2.

Changed in zope2:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.