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

If a profile property contains [...], it is interpreted as JSONArray, even if not multivalued #3013

Open
rdenarie opened this issue Feb 24, 2025 · 0 comments

Comments

@rdenarie
Copy link
Member

Steps to reproduce

Steps to reproduce the behavior:

  1. Create a space with name '[Space Name]'
  2. OR : create a new mono valued profile property and fill with '[MyValue]'

In https://github.com/Meeds-io/social/blob/develop/component/core/src/main/java/org/exoplatform/social/core/jpa/storage/EntityConverterUtils.java#L174

It is interpreted as JSON Array, even if the property is not multivalued.

Current behaviour

One possible effet is :
If you put [SpaceNmae] in spaceName, then, the avatar is not correctly generated and there is a trace is server log.

I suspect possible problem with the user profile, but didnt test.

Expected behavior

To analyze if the property is multivalued or not, we should rely on the property configuration instead of the value of the attribute.
We should ask to PropertySettingsService is the property is multivalued.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: People & Profile
Development

No branches or pull requests

1 participant