Mercurial > p > roundup > code
diff doc/customizing.txt @ 5232:462b0f76fce8
issue2550864 - Potential information leakage via journal/history
Fix this by making the hyperdb::Class::history function check for view
permissions on the journaled properties. So a user that sees [hidden]
for a property in the web interface doesn;t see the property changes
in the history.
While doing this, relocated the filter for quiet properties
from the templating class to the hyperdb.
Also added the skipquiet option to the history command in
roundup-admin.py to enable filtering of quiet params.
Also changed calls to history() in the backend databases to report all
items.
Changed inline documentation for all history calls that document the
actions. The create action (before nov 6 2002) used to record all
parameters. After that point the create call uses an empty dictionary.
The filtering code depends on the create dictionary being empty.
It may not operate properly on very old roundup databases.
Changed calls to logging.getLogger to roundup.hyperdb.backends to
allow filtering the back end while keeping hyperdb logging.
In cgi/templating.py, changed history() function consolidating
handiling of link and unlink actions
Added tests for quiet property filtering and permission filtering
of history.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 14 Apr 2017 23:24:18 -0400 |
| parents | 8743b7226dc7 |
| children | 15440504fb04 |
line wrap: on
line diff
--- a/doc/customizing.txt Tue Apr 11 22:20:13 2017 -0400 +++ b/doc/customizing.txt Fri Apr 14 23:24:18 2017 -0400 @@ -2461,6 +2461,8 @@ HTML. By default properties marked as "quiet" (see `design documentation`_) are not shown unless the function is called with the showall=True parameter. + Properties that are not Viewable to the user are not + shown. renderQueryForm specific to the "query" class - render the search form for the query hasPermission specific to the "user" class - determine whether the @@ -3213,6 +3215,13 @@ <tal:block tal:replace="structure context/history" /> +or:: + + <tal:block + tal:replace="structure python:context.history(showall=True)" /> + +if you want to show history entries for quiet properties. + *To be done:* *The actual history entries of the item may be accessed for manual
