Skip to content

Key-value pairs are saved/processed incorrectly in ILS #28

@vohtaski

Description

@vohtaski

@lnlina
appdata should be saved as key-value pair.
The format for appdata is:
"The keys that developers specify to index this data must only contain alphanumeric (A-Za-z0-9) characters, underscore(_), dot(.) or dash(-)."

In ILS you save data that users input as a key, which is incorrect.

For example, the user tries to put "Anna Fiakkou" which causes an exception below in shindig.

107 INFO: A response error is being returned because a protocol exception occurred.
108 org.apache.shindig.protocol.ProtocolException: One or more of the app data keys are invalid: Anna Fiakkou
109 at org.apache.shindig.social.opensocial.service.AppDataHandler.create(AppDataHandler.java:109)
110 at org.apache.shindig.social.opensocial.service.AppDataHandler.update(AppDataHandler.java:86)
111 at sun.reflect.GeneratedMethodAccessor254.invoke(Unknown Source)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions