powered by Jive Software

REST API Plugin and spaces in URI

Hello,

I understand that this might be most appropriate to ask in github for the project or somewhere like that but figure there are more people here that may have had to deal with this issue.

When using the REST plugin, trying to GET a user that has spaces in the username, or groups that have spaces in the name does not resolve, returns a 500.

Replacing the spaces with a ‘\20’ and or ‘%20’ does not solve the issue. I am scripting the creation of users now so we will not have to worry about spaces in the future but how can I handle these objects that have spaces?

Basically:

get ‘http://server.com:9090/plugins/restapi/v1/users/user.name’ returns 200
get ‘http://server.com:9090/plugins/restapi/v1/users/user name’ returns 500
get ‘http://server.com:9090/plugins/restapi/v1/users/user\20name’ returns 500

get ‘http://server.com:9090/plugins/restapi/v1/users/user%20name’ returns 500

Thanks!

Actually, asking here is the best option. Maybe @Redeyes will see this thread.

Its a known issue in the Plugin and need to be fixed. There is no workaround there to create users with a space.