Roundup Tracker - Issues

Message6328

Author rouilj
Recipients anrounham14, ber, rouilj, tekberg
Date 2019-02-07.02:15:13
Message-id <1549505714.12.0.691256820997.issue2550833@roundup.psfhosted.org>
In-reply-to
There is another bug in ExportCSVNamesAction.

If there is an issue in your list that you don't have access to, the
current code will result in every csv element being reported
as [hidden].

Tom this may be the bug you ran into with custom objects. As soon as you
hit any
object that the user can't view everything is set to [hidden]. If the
first custom
item is not accessibly, you get a nice matrix of [hidden] even for
entries the user can
access.

This little bit of code:

                  if not self.hasPermission(self.permissionType,
itemid=itemid,
                        classname=request.classname, property=col):
                    represent[col] = repr_no_right(request.classname, col)

results in all the represent[col] set to repr_no_right on the first
inaccessible object/issue.

I have attached a file with two patches that applies to my copy of
file1532 that
fixes this by assigning the current representation to a new variable and
not changing represent[col].

The second patch in the file hides any object that the user doesn't have
access to.
Otherwise you get a row of [hidden] output for every field. It is meant
to mimic the
access check in the html so the row is not displayed in any way.
History
Date User Action Args
2019-02-07 02:15:14rouiljsetmessageid: <1549505714.12.0.691256820997.issue2550833@roundup.psfhosted.org>
2019-02-07 02:15:14rouiljsetrecipients: + rouilj, ber, tekberg, anrounham14
2019-02-07 02:15:14rouiljlinkissue2550833 messages
2019-02-07 02:15:14rouiljcreate