Change Password (third post) Help
Yes it is in the acquistion path, it is a root level property! I know that is what the problem appears to be, but how can changing a password cause it not to find a root level password??????? Your problem is that it cant find BoxName, is that visible in the Acquistion? -- Andy McKay. ----- Original Message ----- From: "Daniel Rusch" <drusch@globalcrossing.com> To: <zope@zope.org> Sent: Monday, March 12, 2001 3:28 PM Subject: [Zope] Manage
All,
Zope 2.3.0 (binary release, python 1.5.2, solaris-2.6-sparc) Python Version 1.5.2 (#8, Nov 16 1999, 10:05:41) [GCC 2.8.1] System Platform sunos5
We have a page that allows users to change their password it executes the following:
<dtml-call "REQUEST.set('name', login_name)"> <dtml-call "REQUEST.set('password', password)"> <dtml-call "REQUEST.set('confirm', confirm)"> <dtml-call "REQUEST.set('roles', acl_users.getUser(login_name).getRoles())"> <dtml-call "acl_users.manage_users(submit='Change', REQUEST=REQUEST)">
The password is changed and the user is taken to a page that notifies them that their password was changed, but when the user tries to navigate to any page instead of getting an Authentication dialog, they get a NameError for a variable that is (or should be) there.
It is as if the Name Space is lost? Any thoughts?
Dan
Zope Error
Zope has encountered an error while publishing this resource.
NameError
Sorry, a Zope error occurred.
Traceback (innermost last): File /home/newZope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/newZope/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/newZope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /home/newZope/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/newZope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /home/newZope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /home/newZope/lib/python/OFS/DTMLDocument.py, line 189, in __call__ (Object: index_html) File /home/newZope/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: index_html) File /home/newZope/lib/python/OFS/DTMLMethod.py, line 182, in __call__ (Object: standard_html_header) File /home/newZope/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: standard_html_header) File /home/newZope/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: BoxName=='devo') (Info: BoxName) File <string>, line 0, in ? NameError: BoxName
Daniel, Your best bet is to force the user to re-login after the password change occurs. You can do this by <dtml-raise Unauthorized>. --Adam On 16 Mar 2001 08:50:17 -0600, Daniel Rusch wrote:
Yes it is in the acquistion path, it is a root level property! I know that is what the problem appears to be, but how can changing a password cause it not to find a root level password???????
Your problem is that it cant find BoxName, is that visible in the Acquistion? -- Andy McKay. ----- Original Message ----- From: "Daniel Rusch" <drusch@globalcrossing.com> To: <zope@zope.org> Sent: Monday, March 12, 2001 3:28 PM Subject: [Zope] Manage
All,
Zope 2.3.0 (binary release, python 1.5.2, solaris-2.6-sparc) Python Version 1.5.2 (#8, Nov 16 1999, 10:05:41) [GCC 2.8.1] System Platform sunos5
We have a page that allows users to change their password it executes the following:
<dtml-call "REQUEST.set('name', login_name)"> <dtml-call "REQUEST.set('password', password)"> <dtml-call "REQUEST.set('confirm', confirm)"> <dtml-call "REQUEST.set('roles', acl_users.getUser(login_name).getRoles())"> <dtml-call "acl_users.manage_users(submit='Change', REQUEST=REQUEST)">
The password is changed and the user is taken to a page that notifies them that their password was changed, but when the user tries to navigate to any page instead of getting an Authentication dialog, they get a NameError for a variable that is (or should be) there.
It is as if the Name Space is lost? Any thoughts?
Dan
Zope Error
Zope has encountered an error while publishing this resource.
NameError
Sorry, a Zope error occurred.
Traceback (innermost last): File /home/newZope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/newZope/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/newZope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /home/newZope/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/newZope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /home/newZope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /home/newZope/lib/python/OFS/DTMLDocument.py, line 189, in __call__ (Object: index_html) File /home/newZope/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: index_html) File /home/newZope/lib/python/OFS/DTMLMethod.py, line 182, in __call__ (Object: standard_html_header) File /home/newZope/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: standard_html_header) File /home/newZope/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: BoxName=='devo') (Info: BoxName) File <string>, line 0, in ? NameError: BoxName
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Daniel Rusch wrote:
Yes it is in the acquistion path, it is a root level property! I know that is what the problem appears to be, but how can changing a password cause it not to find a root level password???????
I see your traceback and from what you are saying BoxName is a property on the root folder. So, the user submits their change password form and then they get a confirmation screen correct? Then are they navigating to something that can be viewed anonymously or to a secured page? -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
Then are they navigating to
something that can be viewed anonymously or to a secured page?
to a secured page Casey Duncan wrote:
Daniel Rusch wrote:
Yes it is in the acquistion path, it is a root level property! I know that is what the problem appears to be, but how can changing a password cause it not to find a root level password???????
I see your traceback and from what you are saying BoxName is a property on the root folder. So, the user submits their change password form and then they get a confirmation screen correct? Then are they navigating to something that can be viewed anonymously or to a secured page?
-- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
Daniel Rusch wrote:
Then are they navigating to
something that can be viewed anonymously or to a secured page?
to a secured page
So, as I'm sure you know, after changing passwords, the user looses Authentication (assuming you are using the built in Zope machinery, which from all appearances you are) because the browser continues to send the old password. This is then a rather odd point of failure. What should happen is the browser should make the user log in again. Is this happening or no? -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
On Fri, Mar 16, 2001 at 01:50:43PM -0700, Casey Duncan wrote:
Daniel Rusch wrote:
Then are they navigating to
something that can be viewed anonymously or to a secured page?
to a secured page
So, as I'm sure you know, after changing passwords, the user looses Authentication (assuming you are using the built in Zope machinery, which from all appearances you are) because the browser continues to send the old password.
This is then a rather odd point of failure. What should happen is the browser should make the user log in again. Is this happening or no?
The browser will ask for a password again on the next request, if Basic Auth is used. Try this on your own ZOpe server; change the password of the User object you use to log in and then click on any link you previously had access to; a password box will pop up. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------
Sorry for taking so long to get back to this, but in an effort to solve the problem I upgraded, which turned out to be a disaster. So I am back to where I started: Zope Version Zope 2.3.1b1 (binary release, python 1.5.2,solaris-2.6-sparc) Python Version 1.5.2 (#8, Nov 16 1999, 10:05:41) [GCC 2.8.1] System Platform sunos5 Once again here's the problem: (This did not happen on the older version of Zope) 1. a user changes goes to the change password page enters the new password (and confirm etc) and submits 2. The password is changed and the user is redirected to a page the informs them of this. 3. The user has the option to click ok or click on any of several hyper links. No matter what the user clicks on, instead of getting a password dialog box like they should they get the error below. the property BoxName is a root level property and is there. Any thoughts. Dan Zope Error Zope has encountered an error while publishing this resource. NameError Sorry, a Zope error occurred. Traceback (innermost last): File /home/Zope-2.3.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/Zope-2.3.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/Zope-2.3.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /home/Zope-2.3.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/Zope-2.3.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /home/Zope-2.3.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /home/Zope-2.3.0-solaris-2.6-sparc/lib/python/OFS/DTMLDocument.py, line 189, in __call__ (Object: index_html) File /home/Zope-2.3.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: index_html) File /home/Zope-2.3.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 182, in __call__ (Object: standard_html_header) File /home/Zope-2.3.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: standard_html_header) File /home/Zope-2.3.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: BoxName=='devo') (Info: BoxName) File <string>, line 0, in ? NameError: BoxName Martijn Pieters wrote:
On Fri, Mar 16, 2001 at 01:50:43PM -0700, Casey Duncan wrote:
Daniel Rusch wrote:
Then are they navigating to
something that can be viewed anonymously or to a secured page?
to a secured page
So, as I'm sure you know, after changing passwords, the user looses Authentication (assuming you are using the built in Zope machinery, which from all appearances you are) because the browser continues to send the old password.
This is then a rather odd point of failure. What should happen is the browser should make the user log in again. Is this happening or no?
The browser will ask for a password again on the next request, if Basic Auth is used. Try this on your own ZOpe server; change the password of the User object you use to log in and then click on any link you previously had access to; a password box will pop up.
-- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------
participants (5)
-
Casey Duncan -
Daniel G. Rusch -
Daniel Rusch -
M. Adam Kendall -
Martijn Pieters