Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot create CET with CFT that are reference to User when CET has CrudScript #736

Closed
smichea opened this issue Jun 21, 2023 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@smichea
Copy link
Contributor

smichea commented Jun 21, 2023

looks like the pb comes from that
image

		try {
	       	Method getUuid = object.getClass().getMethod("getUuid");
			return getUuid.invoke(object);
		} catch(Exception ignored) {
		}
@smichea smichea added the bug Something isn't working label Jun 21, 2023
@tonysviews
Copy link
Collaborator

additional context:

This user entity is being associated to an NFCTag entity:
image

image

When it is passed into a CrudListenerScript:

image

The data in the owner entity is lost:

image

@tonysviews
Copy link
Collaborator

tonysviews commented Jun 21, 2023

When debugging the issue, it seems that during deserialization, the User type CFT will try to deserialize using JacksonUtil. This results in a new User object.

I believe a possible fix for this is to move the following lines in CEIUtils:

image

@smichea smichea changed the title cannot create CET with 2 CFT that are reference to User cannot create CET with CFT that are reference to User when CET has CrudScript Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants