Ticket #13524 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

Scrubbed development copy of p.org does not have a valid user

Reported by: miohtama Owned by: plone-website@…
Priority: minor Milestone: 4.x
Component: Website Version: 4.2
Keywords: Cc:

Description (last modified by miohtama) (diff)

I am following these instructions to create a Plone development copy:

 https://github.com/plone/Products.PloneOrg

However, the copied Data.fs does not seem to have a valid admin user. It should be admin/admin based on the source code, but this login is not working. Looks like the scrubber should recreate the admin user, but it is not happening and the development drop has no admin or any other users:

      >>> app.acl_users.users.objectIds()
()

Change History

comment:1 Changed 3 years ago by miohtama

  • Description modified (diff)

comment:2 Changed 3 years ago by miohtama

Apparently

     bin/instance adduser admin admin

doesn't seem to help, so the p.org user management of dev drop copy must be fixed somehow.

comment:3 Changed 3 years ago by miohtama

Hmmm. Ok this works

    bin/instance adduser admin2 admin

comment:4 Changed 3 years ago by miohtama

But accessing  http://localhost:8080/plone.org with admin2 user gives security error.

  Module zope.tales.tales, line 696, in evaluate
   - URL: /plone.org/frontpage
   - Line 271, Column 12
   - Expression: <StringExpr u'ploneorg.carousel'>
   - Names:
      {'container': <PloneSite at /plone.org>,
       'context': <PloneSite at /plone.org>,
       'default': <object object at 0x106601b20>,
       'here': <PloneSite at /plone.org>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x10a918628>,
       'request': <HTTPRequest, URL=http://localhost:8080/plone.org/frontpage>,
       'root': <Application at >,
       'template': <ZopePageTemplate at /plone.org/frontpage>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin2'>}
  Module zope.contentprovider.tales, line 77, in __call__
  Module Products.Carousel.browser.viewlet, line 58, in update
  Module Products.Carousel.browser.folder, line 49, in getBanners
  Module Products.ZCatalog.CatalogBrains, line 102, in getObject
  Module OFS.Traversable, line 316, in restrictedTraverse
  Module OFS.Traversable, line 244, in unrestrictedTraverse
   - __traceback_info__: ([], 'plone-open-garden-2013')
Unauthorized: You are not allowed to access 'plone-open-garden-2013' in this context
2013-04-14 14:58:06 ERROR Zope.SiteErrorLog 1365940686.810.712338829975 http://localhost:8080/favicon.ico

comment:5 Changed 3 years ago by aclark

Use admin2 to reset the password for admin, maybe.

comment:6 Changed 3 years ago by kleist

  • Status changed from new to confirmed
Note: See TracTickets for help on using tickets.