Opened 16 years ago

Closed 16 years ago

#1142 closed enhancement (fixed)

Batch importer plug-ins should handle lack of USE permission better

Reported by: Nicklas Nordborg Owned by: Martin Svensson
Priority: major Milestone: BASE 2.9
Component: coreplugins Version:
Keywords: Cc:

Description

The current implementation of the batch importer simply ignores all items that the logged in user doesn't have permission to use. The result is that this is reported as an ItemNotFoundException which may be confusing because if the user has READ permission it is visible in listings and other places.

It would be better if the items were loaded and the permission checked. An error handling option to handle this must be added with the same options as for the item-not-found case.

In addition, the code that handles multiple found items should be able to handle the case were only one of the items found can be used. This case should transparently be transformed into the single-item-found case.

Change History (4)

comment:1 by Martin Svensson, 16 years ago

Owner: changed from everyone to Martin Svensson
Status: newassigned

comment:2 by Martin Svensson, 16 years ago

Resolution: fixed
Status: assignedclosed

(In [4595]) Fixes #1142 Batch importer plug-ins should handle lack of USE permission better.

comment:3 by Martin Svensson, 16 years ago

Resolution: fixed
Status: closedreopened

There are two more cases where the permission handling can be improved.

comment:4 by Martin Svensson, 16 years ago

Resolution: fixed
Status: reopenedclosed

(In [4597]) Fixes #1142 Lack of permission when trying to write to an item or use a reference is now handled. The last case covers also when an array slide is used by another hyb.

Note: See TracTickets for help on using tickets.