[ 
https://issues.apache.org/jira/browse/ISIS-3263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17623797#comment-17623797
 ] 

Andi Huber commented on ISIS-3263:
----------------------------------

Actually the ManagedObjects#isNullOrUnspecifiedOrEmpty(...)  throws, if its an 
entity and the entity was deleted.

{noformat}
 java.lang.IllegalStateException
entity not attached after refetch attempt causeway.ext.secman.ApplicationRole:16
org.apache.causeway.commons.internal.exceptions._Exceptions#illegalState(_Exceptions.java:94)
org.apache.causeway.core.metamodel.object._ManagedObjectEntityBookmarked#getPojo(_ManagedObjectEntityBookmarked.java:106)
org.apache.causeway.commons.functional.Either$Right#fold(Either.java:178)
org.apache.causeway.core.metamodel.object._ManagedObjectEntityHybrid#getPojo(_ManagedObjectEntityHybrid.java:117)
org.apache.causeway.core.metamodel.object.ManagedObjects#isNullOrUnspecifiedOrEmpty(ManagedObjects.java:68)
org.apache.causeway.core.metamodel.interactions.managed.ManagedAction#<init>(ManagedAction.java:94)
org.apache.causeway.core.metamodel.interactions.managed.ManagedAction#of(ManagedAction.java:60)
org.apache.causeway.viewer.wicket.model.models.interaction.coll.DataTableModelWkt#forActionModel(DataTableModelWkt.java:65)
org.apache.causeway.viewer.wicket.model.models.EntityCollectionModelStandalone#forActionModel(EntityCollectionModelStandalone.java:46)
org.apache.causeway.viewer.wicket.ui.actionresponse.ActionResultResponseType$2#interpretResult(ActionResultResponseType.java:85)
 
{noformat}


> [Secman] Deleting Role to User Relation results in Object_not_found Error in 
> the UI
> -----------------------------------------------------------------------------------
>
>                 Key: ISIS-3263
>                 URL: https://issues.apache.org/jira/browse/ISIS-3263
>             Project: Isis
>          Issue Type: Bug
>          Components: Isis Extensions SecMan
>            Reporter: Andi Huber
>            Assignee: Andi Huber
>            Priority: Major
>             Fix For: 2.0.0-RC1
>
>
> Seeing this using JDO. Hopefully just bad domain code.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to