openwhisk-client-swift icon indicating copy to clipboard operation
openwhisk-client-swift copied to clipboard

Url encode namespaces

Open StanislavGoryachev opened this issue 10 years ago • 3 comments

When trying to invoke an action for a namespace containing a space for example "My Company", an error 400 is returned.

Instead one must do "My%20Company" which works, but is't pretty.

Maybe all string should be url encoded, including packages and actions?

StanislavGoryachev avatar Apr 06 '16 19:04 StanislavGoryachev

Indeed, namespaces and package, and entity names must be encoded.

rabbah avatar Apr 06 '16 23:04 rabbah

Yes, this should have been done. I made changes and created a PR for this. I can just merge myself if no one objects.

paulcastro avatar Apr 15 '16 16:04 paulcastro

I merged the changes into 0.1.2.

paulcastro avatar Apr 15 '16 17:04 paulcastro