[ https://issues.apache.org/jira/browse/ISIS-820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17531031#comment-17531031 ]
Andi Huber commented on ISIS-820: --------------------------------- >From ISIS-1059 (so can close as duplicate) If a domain entity uses PersistenceCapable(identityType = IdentityType.APPLICATION) combined with PrimaryKey annotated property then it is not allowed to use some symbols like '@'. The exception is: Caused by: java.lang.IllegalArgumentException: identifier 's...@email.tld' contains an '@' symbol at org.apache.isis.core.commons.ensure.Ensure.ensureThatArg(Ensure.java:75) at org.apache.isis.core.metamodel.adapter.oid.RootOidDefault.<init>(RootOidDefault.java:124) at org.apache.isis.core.metamodel.adapter.oid.RootOidDefault.<init>(RootOidDefault.java:92) at org.apache.isis.core.runtime.system.persistence.OidGenerator.createPersistentOrViewModelOid(OidGenerator.java:99) at org.apache.isis.objectstore.jdo.datanucleus.persistence.FrameworkSynchronizer$3.run(FrameworkSynchronizer.java:203) at org.apache.isis.objectstore.jdo.datanucleus.persistence.FrameworkSynchronizer$8.call(FrameworkSynchronizer.java:350) > OidMarshaller - Identifier(PK) with special symbols should be allowed > --------------------------------------------------------------------- > > Key: ISIS-820 > URL: https://issues.apache.org/jira/browse/ISIS-820 > Project: Isis > Issue Type: Improvement > Components: Isis Core > Affects Versions: core-1.5.0 > Reporter: Ranganath Chittari > Priority: Minor > Attachments: Identifier-#Symbol.log > > > When a domain object has “#” symbol in its Primary key(of String type) and > try to query it, java.lang.IllegalArgumentException (Identifier contains # > symbol) exception is thrown: PFA Log file. > This is presentation constraint and need to be enhanced by encoding and > decodng the PK in ISIS OidMarshaller > > See also ISIS-1059 -- This message was sent by Atlassian Jira (v8.20.7#820007)