dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #05727
Re: [Bug 331932] Re: No right to delete object + associated objects exist gives XML parser error
On Thu, Apr 29, 2010 at 8:14 AM, Hieu Duy Dang
<hieu.hispvietnam@xxxxxxxxx>wrote:
> This fixed bug on the hieu branch not i18n-uniqueness anymore
>
> OK good will have a look.
> --
> No right to delete object + associated objects exist gives XML parser error
> https://bugs.launchpad.net/bugs/331932
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in DHIS 2 - District Health Information Software: Confirmed
>
> Bug description:
> The functionality for denying an object to be deleted and informing a user
> about it is overridden when the user doesn't have privileges to delete it.
> This leads to the "not sufficient authorities" page content being sent
> through XML to the div which displays the "object cannot be deleted because
> of associated objects", resulting in weird output.
>
> To replicate this create and log in with a user that cannot delete
> indicator types. Then try to delete an indicator type that has indicators
> associated with it.
>
> In this case, the error message (not sufficient authorities) should be sent
> directly to the feedback area instead of the "cannot delete because..."
> message, ie. no xml parsing should take place.
>
> The solution should be centralized. All delete methods must be examined.
>
>
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/dhis2/+bug/331932/+subscribe
>
--
No right to delete object + associated objects exist gives XML parser error
https://bugs.launchpad.net/bugs/331932
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
Status in DHIS 2 - District Health Information Software: Confirmed
Bug description:
The functionality for denying an object to be deleted and informing a user about it is overridden when the user doesn't have privileges to delete it. This leads to the "not sufficient authorities" page content being sent through XML to the div which displays the "object cannot be deleted because of associated objects", resulting in weird output.
To replicate this create and log in with a user that cannot delete indicator types. Then try to delete an indicator type that has indicators associated with it.
In this case, the error message (not sufficient authorities) should be sent directly to the feedback area instead of the "cannot delete because..." message, ie. no xml parsing should take place.
The solution should be centralized. All delete methods must be examined.
References