You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to avoid encoding of path parameters of a REST API in Visual Builder at runtime?



I'm trying to download a file from Object Cloud Storage Bucket using the /n/{namespaceName}/b/{bucketName}/o/{objectName} API. The objectName contains the whole file path including the directory. For eg. objectName = "dir1/subdir1/filename" which is encoded as "dir1%2Fsubdir1%2Ffilename" while calling the API giving a 400 Bad Request error.

Content (required):

VBCS encodes the path parameter. In my case in encodes / to %2F. The REST call it makes is /n/namespace/b/bucket/o/dir1%2Fsubdir1%2Ffilename. While testing in the service connection if we pass the objectName as "dir1/subdir1/filename" it works fine but if we give the encoded value "dir1%2Fsubdir1%2Ffilename" it gives 400 Bad Request error.


Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!