Skip to content

Copy ED or drag and drop between Engineering models - issues in copying items with subscriptions for user with limited permissions #382

@MartinFijneman

Description

@MartinFijneman

TBD what expected or wanted implementation behaviour is, noticed unwanted issue for participant with limited permissions (typical domain expert) for the following situation/ steps:

  • setup a new Element Definition X with several parameters owned by domain A, with participant A
  • copy the ED or create additional ED Y and set subscriptions for several parameters

If the participant has a domain expert role with permissions on parameters subscriptions modify_if_owner, the following situation occurs:

  • for copying action of the EDs:
    ** ED X can be copied by the domain expert
    ** ED Y cannot be copied, gives an error: An error occured when deleting a copy of an Element Definition
  • for drag and drop to another engineering model:
    ** using no keys, the action is allowed for both EDs, so X as well as Y, where in the copy of ED Y the subscriptions are taken along (so created)
    ** using "cntrl" to keep ownership of items (which should in principle make no difference in expected result), the action is not performed, gives error message: The CDP4 Services replied with code Unauthorized: Unauthorized: "exception:The person testde2 does not have an appropriate create permission for ParameterSubscription."

This situation is a bit confusing and unwanted, where:

  • for copying: an owning domain is not able to copy one of its own items, if other domains have subscriptions on the parameters
  • for drag and drop: was expecting to get the same result without any keys or when using "cntrl"

There is a workaround for this issue, in setting the permission on Parameter Subscriptions to "Modify" for domain experts (where there is not really a possibility for a domain expert who is assigned to domain A to actually change subscriptions on behalf of other domains.

Info:
noticed issue when testing version 10.0.4.2, on dev server with version 10.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions