• Remember Mailing List

  • unable to self-register, join_form redirects to login_form (Plone 3)

    from Kees Hink on Aug 20, 2008 03:28 AM
    Hello,
    
    I just installed membrane+remember on a fresh Plone 3 site
    using a buildout. (See buildout.cfg below.) Someone who
    tries to register and clicks the "register" (join_form) link
    is redirected to the login form. In the default Plone,
    without membrane+remember, this is not the case.
    
    The permission "Add portal member" is given to Anonymous.
    The permissions "remember: Add FolderishMember" is given to
    no one, but giving it to Anonymous doesn't make a difference.
    
    How can i enable self-registering?
    
    Regards,
    
    Kees
    
    
    Product versions:
    remember 1.1dev (SVN checkout, linked from products folder)
    membrane 1.1b3 (egg)
    
    Site setup:
    Plone 3.1.4
    CMF 2.1.1
    Zope (Zope 2.10.6-final, python 2.4.5, linux2)
    Python 2.4.5 (#2, Jul 31 2008, 19:04:55) [GCC 4.2.3 (Ubuntu
    4.2.3-2ubuntu7)]
    PIL 1.1.6
    
    
    buildout.cfg:
    [buildout]
    parts =
         plone
         productdistros
         instance
         zopepy
    
    # Add additional egg download sources here. dist.plone.org
    contains archives
    # of Plone packages.
    find-links =
         http://dist.plone.org
         http://download.zope.org/ppix/
         http://download.zope.org/distribution/
         http://effbot.org/downloads
    
    # Add additional eggs here
    # elementtree is required by Plone
    eggs =
         elementtree
         Products.membrane
    
    # Reference any eggs you are developing here, one per line
    # e.g.: develop = src/my.package
    develop =
    
    [plone]
    recipe = plone.recipe.plone>=3.1.1,<3.2dev
    # By overriding the download URLs and making them an empty
    list, we
    # Make sure our own products directory takes precedence
    urls =
    
    
    # Use this section to download additional old-style products.
    # List any number of URLs for product tarballs under URLs
    (separate
    # with whitespace, or break over several lines, with
    subsequent lines
    # indented). If any archives contain several products inside
    a top-level
    # directory, list the archive file name (i.e. the last part
    of the URL,
    # normally with a .tar.gz suffix or similar) under
    'nested-packages'.
    # If any archives extract to a product directory with a
    version suffix, list
    # the archive name under 'version-suffix-packages'.
    [productdistros]
    recipe = plone.recipe.distros
    urls =
    nested-packages =
    version-suffix-packages =
    
    [instance]
    recipe = plone.recipe.zope2instance
    zope2-location = /home/kees/Zope-2.10.6-final
    user = admin:
    http-address = 8081
    debug-mode = on
    #verbose-security = on
    
    # If you want Zope to know about any additional eggs, list
    them here.
    # This should include any development eggs you listed in
    develop-eggs above,
    # e.g. eggs = ${buildout:eggs} ${plone:eggs} my.package
    eggs =
         ${buildout:eggs}
         ${plone:eggs}
    
    # If you want to register ZCML slugs for any packages, list
    them here.
    # e.g. zcml = my.package my.other.package
    zcml =
    
    products =
         ${buildout:directory}/products
         ${productdistros:location}
         /home/kees/products/Plone-3.1.4/Products
    
    [zopepy]
    recipe = zc.recipe.egg
    eggs = ${instance:eggs}
    interpreter = zopepy
    extra-paths = /home/kees/Zope-2.10.6-final/lib/python
    scripts = zopepy
    
    
    Thread Outline:
  • Re: unable to self-register, join_form redirects to login_form (Plone 3)

    from ra on Aug 20, 2008 02:18 PM
    Kees Hink wrote:
    > Hello,
    > 
    > I just installed membrane+remember on a fresh Plone 3 site
    > using a buildout. (See buildout.cfg below.) Someone who
    > tries to register and clicks the "register" (join_form) link
    > is redirected to the login form. In the default Plone,
    > without membrane+remember, this is not the case.
    > 
    > The permission "Add portal member" is given to Anonymous.
    > The permissions "remember: Add FolderishMember" is given to
    > no one, but giving it to Anonymous doesn't make a difference.
    > 
    > How can i enable self-registering?
    
    hmmm... i'm unable to reproduce the problem.  your buildout.cfg had a few 
    settings that were specific to you, so i modified it a bit... here's what i used:
    
    -----------BEGIN buildout.cfg---------------
    [buildout]
    parts =
         plone
         zope2
         productdistros
         instance
         zopepy
    
    # Add additional egg download sources here. dist.plone.org contains archives
    # of Plone packages.
    find-links =
         http://dist.plone.org
         http://download.zope.org/ppix/
         http://download.zope.org/distribution/
         http://effbot.org/downloads
    
    # Add additional eggs here
    # elementtree is required by Plone
    eggs =
         elementtree
         Products.membrane
         Products.remember
    
    # Reference any eggs you are developing here, one per line
    # e.g.: develop = src/my.package
    develop =
         src/Products.remember
    
    [plone]
    recipe = plone.recipe.plone>=3.1.1,<3.2dev
    
    [zope2]
    recipe = plone.recipe.zope2install
    url = ${plone:zope2-url}
    
    # Use this section to download additional old-style products.
    # List any number of URLs for product tarballs under URLs (separate
    # with whitespace, or break over several lines, with subsequent lines
    # indented). If any archives contain several products inside a top-level
    # directory, list the archive file name (i.e. the last part of the URL,
    # normally with a .tar.gz suffix or similar) under 'nested-packages'.
    # If any archives extract to a product directory with a version suffix, list
    # the archive name under 'version-suffix-packages'.
    [productdistros]
    recipe = plone.recipe.distros
    urls =
    nested-packages =
    version-suffix-packages =
    
    [instance]
    recipe = plone.recipe.zope2instance
    zope2-location = ${zope2:location}
    user = admin:admin
    http-address = 8081
    debug-mode = on
    #verbose-security = on
    
    # If you want Zope to know about any additional eggs, list them here.
    # This should include any development eggs you listed in develop-eggs above,
    # e.g. eggs = ${buildout:eggs} ${plone:eggs} my.package
    eggs =
         ${buildout:eggs}
         ${plone:eggs}
    
    # If you want to register ZCML slugs for any packages, list them here.
    # e.g. zcml = my.package my.other.package
    zcml =
    
    products =
         ${buildout:directory}/products
         ${productdistros:location}
         ${plone:products}
    
    [zopepy]
    recipe = zc.recipe.egg
    eggs = ${instance:eggs}
    interpreter = zopepy
    #extra-paths = /home/kees/Zope-2.10.6-final/lib/python
    scripts = zopepy
    --------------END buildout.cfg-----------------
    
    here are the exact steps i took to create my environment:
    
    - run 'bootstrap.py' in the directory where the buildout.cfg lives to create 
    the buildout environment
    - mkdir src
    - cd src
    - svn co https://svn.plone.org/svn/collective/Products.remember/trunk 
    Products.remember
    - run './bin/buildout' to build Zope, Plone, etc.
    
    at this point './bin/instance fg' works to start Zope.  once Zope is started, 
    i added a Plone site w/ the membrane and remember extension profiles.  then i 
    visited the control panel to set the mail settings (in the 'Mail' panel) and 
    enable self registration (in the 'Security' panel).  i tried it both with 'Let 
    users select their own passwords' unchecked and checked, in each case i was 
    able to join the site as an anonymous user w/ no problems.
    
    it's possible you're using an older version of Remember that has a bug; if 
    your Remember isn't up to date, try using the trunk, see if that helps.  if 
    it's not that, then you'll have to debug to see what, exactly, is causing your 
    problem.  please refer to
    http://plone.org/documentation/how-to/debug-unauthorized for help getting a 
    traceback.
    
    -r