Problem with User Registration in 2.1

classic Classic list List threaded Threaded
3 messages Options
Johannes Graumann Johannes Graumann
Reply | Threaded
Open this post in threaded view
|

Problem with User Registration in 2.1

Hello,

All of a sudden my administrative user isn't able any more to register new
users. I'll end up with an "insufficient privileges" error after hitting
"register" in the Registration Form.

The Error Log produces the following exception:
> Unauthorized: You are not allowed to access 'isMemberIdAllowed' in this
> context

Exception Details are attached below ...
The baby is coming and I need to add some users to grant access to the foto
albums! Help! Please! ;0)

Joh

> Time
>     2005-11-23 11:47
> User Name (User Id)
>     <MYUSER>
> Request URL
>     <MYSERVER>
> Exception Type
>     Unauthorized
> Exception Value
>     You are not allowed to access 'isMemberIdAllowed' in this context
>
> Traceback (innermost last):
>
>     * Module ZPublisher.Publish, line 113, in publish
>     * Module ZPublisher.mapply, line 88, in mapply
>     * Module ZPublisher.Publish, line 40, in call_object
>     * Module Products.CMFFormController.FSControllerPageTemplate, line 98,
>in __call__
>     * Module Products.CMFFormController.BaseControllerPageTemplate, line
>37, in _call
>     * Module Products.CMFFormController.FormController, line 375, in
>validate
>     * Module ZPublisher.mapply, line 88, in mapply
>     * Module ZPublisher.Publish, line 40, in call_object
>     * Module Products.CMFFormController.FSControllerValidator, line 59, in
>__call__
>     * Module Products.CMFFormController.Script, line 141, in __call__
>     * Module Products.CMFCore.FSPythonScript, line 108, in __call__
>     * Module Shared.DC.Scripts.Bindings, line 311, in __call__
>     * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
>     * Module Products.CMFCore.FSPythonScript, line 163, in _exec
>     * Module None, line 33, in join_form_validate
>       <FSControllerValidator at /JohSite/join_form_validate>
>       Line 33
>
> Unauthorized: You are not allowed to access 'isMemberIdAllowed' in this
> context
>
> Display traceback as text
> REQUEST
> form
> username      'Something'
> form.button.Register  'Register'
> last_visit    DateTime('2005/11/23 11:46:36.549 US/Pacific')
> form.submitted        '1'
> email '[hidden email]'
> came_from_prefs       '1'
> fullname      'Joe Shmoe'
> password      '<password obscured>'
> prev_visit    DateTime('2005/11/23 11:46:36.550 US/Pacific')
> password_confirm      '<password obscured>'
> cookies
> I18N_LANGUAGE 'en'
> _ZopeId       '77192476A2GQcFeGW4g'
> lazy items
> SESSION       <bound method SessionDataManager.getSessionData of
> <SessionDataManager at /session_data_manager>>
> other
> username      'Something'
> controller_state      
> <Products.CMFFormController.ControllerState.ControllerState object at
> 0x4146e46c>  
> TraversalRequestNameStack     []
> LANGUAGE      'en'
> AUTHENTICATED_USER    <MYUSER>
> URL   '<MYSERVER>join_form'
> SERVER_URL    'http://www.<MYSERVER>:8081'
> LANGUAGE_TOOL <Products.PloneLanguageTool.LanguageTool.LanguageBinding
> instance at 0x425b55ec>
> AUTHENTICATION_PATH   '<MYSITE>'
> traverse_subpath      []
> email '[hidden email]'
> password_confirm      '<password obscured>'
> PUBLISHED     <FSControllerPageTemplate at /<MYSITE>/join_form>
> password      '<password obscured>'
> ACTUAL_URL    'http://www.<MYSERVER>:8081/<MYSITE>/join_form'
> URL0  http://www.<MYSERVER>:8081/<MYSITE>/join_form
> URL1  http://www.<MYSERVER>:8081/<MYSITE>
> URL2  http://www.<MYSERVER>:8081
> BASE0 http://www.<MYSERVER>:8081
> BASE1 http://www.<MYSERVER>:8081
> BASE2 http://www.<MYSERVER>:8081/<MYSITE>
> BASE3 http://www.<MYSERVER>:8081/<MYSITE>/join_form
> environ
> HTTP_COOKIE   '_ZopeId="77192476A2GQcFeGW4g"; I18N_LANGUAGE="en";
> __ac="QmFsaW46cWRiVG9QRUM2cTZsQ0Q5RQ%3D%3D"'
> SERVER_SOFTWARE       'Zope/(Zope 2.8.3-final, python 2.3.5, linux2) ZServer/1.1
> Plone/Unknown'
> SCRIPT_NAME   ''
> REQUEST_METHOD        'POST'
> HTTP_KEEP_ALIVE       '300'
> SERVER_PROTOCOL       'HTTP/1.1'
> channel.creation_time 1132774908
> CONNECTION_TYPE       'keep-alive'
> HTTP_ACCEPT_CHARSET   'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
> HTTP_USER_AGENT       'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12)
> Gecko/20050924 Firefox/1.0.7 (Debian package 1.0.7-1)'
>HTTP_REFERER   'http://www.<MYSERVER>:8081/<MYSITE>/join_form?came_from_prefs=1'
> SERVER_NAME   '0.0.0.0'
> REMOTE_ADDR   '<MYIP>'
> PATH_TRANSLATED       '/<MYSITE>/join_form'
> SERVER_PORT   '8081'
> CONTENT_LENGTH        '324'
> HTTP_HOST     'www.<MYSERVER>:8081'
>HTTP_ACCEPT    'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
> GATEWAY_INTERFACE     'CGI/1.1'
> HTTP_ACCEPT_LANGUAGE  'en-us,en;q=0.5'
> CONTENT_TYPE  'application/x-www-form-urlencoded'
> HTTP_ACCEPT_ENCODING  'gzip,deflate'
> PATH_INFO     '/<MYSITE>/join_form'
--
+----------------------------------------------------------------------+
| Johannes Graumann, Dipl. Biol.                                       |
|                                                                      |
|      Graduate Student                Tel.: ++1 (626) 395 6602        |
|      Deshaies Lab                    Fax.: ++1 (626) 395 5739        |
|      Department of Biology                                           |
|      CALTECH, M/C 156-29                                             |
|      1200 E. California Blvd.                                        |
|      Pasadena, CA 91125                                              |
|      USA                                                             |
+----------------------------------------------------------------------+



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
J Cameron Cooper-3 J Cameron Cooper-3
Reply | Threaded
Open this post in threaded view
|

Re: Problem with User Registration in 2.1

Johannes Graumann wrote:

> Hello,
>
> All of a sudden my administrative user isn't able any more to register new
> users. I'll end up with an "insufficient privileges" error after hitting
> "register" in the Registration Form.
>
> The Error Log produces the following exception:
>
>>Unauthorized: You are not allowed to access 'isMemberIdAllowed' in this
>>context
>
>
> Exception Details are attached below ...
> The baby is coming and I need to add some users to grant access to the foto
> albums! Help! Please! ;0)

http://plone.org/documentation/how-to/debug-unauthorized

                --jcc

--
"Building Websites with Plone"
http://plonebook.packtpub.com/

Enfold Systems, LLC
http://www.enfoldsystems.com


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Johannes Graumann Johannes Graumann
Reply | Threaded
Open this post in threaded view
|

Re: Problem with User Registration in 2.1

J Cameron Cooper wrote:

> Johannes Graumann wrote:
>> All of a sudden my administrative user isn't able any more to register
>> new users. I'll end up with an "insufficient privileges" error after
>> hitting "register" in the Registration Form.
>>
>> The Error Log produces the following exception:
>>
>>>Unauthorized: You are not allowed to access 'isMemberIdAllowed' in this
>>>context
>>
>>
>> Exception Details are attached below ...
>> The baby is coming and I need to add some users to grant access to the
>> foto albums! Help! Please! ;0)
>
> http://plone.org/documentation/how-to/debug-unauthorized
Thanks for that hint. I follwed the instructions. What happens is the
following:
1) upon hitting "register" in the registration form, a pop-up window shows
up, askin me the following:
> Enter Username and password for "Zope" at http://<MYSERVER>:8081

2) Password/user name for my administrator account doesn't work here.

3) Password/user name for the zope administrator doesn't work either.

4) hitting "cancel" in the popup window leads me to the following error
message:
> Site error
> This site encountered an error trying to fulfill your request. The errors
> were:
> Error Type
>    Unauthorized
> Error Value
>    The object is marked as private. Access to 'isMemberIdAllowed' of
> (RegistrationTool at /<MYSITE>/portal_registration) denied.

I went then to "/<MYSITE>/portal_registration" --> Security and unticked the
"Add portal members" "acquire permissions" box and ticked the "manager"
box.

This allows me now to add members again ...
I have however the feeling, that this maybe a hack ... where could I have
screwed up in the permissions frame work above this rule to arrive at this
point?

Thanks for any further ideas!

Joh

--
+----------------------------------------------------------------------+
| Johannes Graumann, Dipl. Biol.                                       |
|                                                                      |
|      Graduate Student                Tel.: ++1 (626) 395 6602        |
|      Deshaies Lab                    Fax.: ++1 (626) 395 5739        |
|      Department of Biology                                           |
|      CALTECH, M/C 156-29                                             |
|      1200 E. California Blvd.                                        |
|      Pasadena, CA 91125                                              |
|      USA                                                             |
+----------------------------------------------------------------------+



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users