Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
4ba9038c
Commit
4ba9038c
authored
Oct 24, 2011
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix serious authentication vulnerability in stock configuration.
parent
1ff03705
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
doc/CHANGES.rst
doc/CHANGES.rst
+2
-0
src/OFS/tests/test_userfolder.py
src/OFS/tests/test_userfolder.py
+13
-3
src/OFS/userfolder.py
src/OFS/userfolder.py
+2
-0
No files found.
doc/CHANGES.rst
View file @
4ba9038c
...
@@ -11,6 +11,8 @@ http://docs.zope.org/zope2/releases/.
...
@@ -11,6 +11,8 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed
Bugs Fixed
++++++++++
++++++++++
- Fixed serious authentication vulnerability in stock configuration.
- Fixed a regression in webdav support that broke external editor feature.
- Fixed a regression in webdav support that broke external editor feature.
- Restore ability to undo multiple transactions from the ZMI by using the
- Restore ability to undo multiple transactions from the ZMI by using the
...
...
src/OFS/tests/test_userfolder.py
View file @
4ba9038c
...
@@ -17,7 +17,15 @@ import unittest
...
@@ -17,7 +17,15 @@ import unittest
# TODO class Test_readUserAccessFile(unittest.TestCase)
# TODO class Test_readUserAccessFile(unittest.TestCase)
# TODO class BasicUserFoldertests(unittest.TestCase)
class
BasicUserFolderTests
(
unittest
.
TestCase
):
def
_getTargetClass
(
self
):
from
OFS.userfolder
import
BasicUserFolder
return
BasicUserFolder
def
test_manage_users_security_initialized
(
self
):
uf
=
self
.
_getTargetClass
()()
self
.
assertTrue
(
hasattr
(
uf
,
'manage_users__roles__'
))
class
UserFolderTests
(
unittest
.
TestCase
):
class
UserFolderTests
(
unittest
.
TestCase
):
...
@@ -171,6 +179,8 @@ class UserFolderTests(unittest.TestCase):
...
@@ -171,6 +179,8 @@ class UserFolderTests(unittest.TestCase):
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
((
suite
.
addTest
(
unittest
.
makeSuite
(
UserFolderTests
))
unittest
.
makeSuite
(
BasicUserFolderTests
),
unittest
.
makeSuite
(
UserFolderTests
),
))
return
suite
return
suite
src/OFS/userfolder.py
View file @
4ba9038c
...
@@ -293,6 +293,8 @@ class BasicUserFolder(Navigation, Tabs, Item, RoleManager,
...
@@ -293,6 +293,8 @@ class BasicUserFolder(Navigation, Tabs, Item, RoleManager,
message
=
'Cannot change the id of a UserFolder'
,
message
=
'Cannot change the id of a UserFolder'
,
action
=
'./manage_main'
))
action
=
'./manage_main'
))
InitializeClass
(
BasicUserFolder
)
class
UserFolder
(
accesscontrol_userfolder
.
UserFolder
,
BasicUserFolder
):
class
UserFolder
(
accesscontrol_userfolder
.
UserFolder
,
BasicUserFolder
):
"""Standard UserFolder object
"""Standard UserFolder object
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment