I am having a problem with the Method restOperation.createRequest. I created an action to make a query to the Storage Array Isilon. It is working fine when the folder that I am querying doesn't contain any spaces, if the folder contain a space the method converts the space to a "+" sign and the method does not found the folder and gives me and 404 error.
If I use the function encodeURI to convert the spaces into %20 before call restOperation.createRequest , the Method convert the "%20" to "%2520".
Here is the vRO System log:
Any help will be very appreciated.
[2017-01-17 12:41:02.097] [I] CETAD\CETAD04\
[2017-01-17 12:41:02.101] [I] O resultado do newDirPath na criação do diretório é: /ifs/DCPARMAZNA1/ZONECORP/Arquivos/CETAD/CETAD04/VPLEX e RP
[2017-01-17 12:41:02.106] [I] ISILON DTC
[2017-01-17 12:41:02.108] [I] GET Quota Operation by path
[2017-01-17 12:41:02.109] [I] /ifs/DCPARMAZNA1/ZONECORP/Arquivos/CETAD/CETAD04/VPLEX%20e%20RP
[2017-01-17 12:41:02.110] [I] Request: DynamicWrapper (Instance) : [RESTRequest]-[class com.vmware.o11n.plugin.rest.Request] -- VALUE : com.vmware.o11n.plugin.rest.Request@429d94cb
[2017-01-17 12:41:02.111] [I] Request URL: https://customerisilon.com:8080/platform/1/quota/quotas?query&path=%2Fifs%2FDCPARMAZNA1%2FZONECORP%2FArquivos%2FCETAD%2FCETAD04%2FVPLEX%2520e%2520RP
[2017-01-17 12:41:02.326] [I] Response: DynamicWrapper (Instance) : [RESTResponse]-[class com.vmware.o11n.plugin.rest.Response] -- VALUE : com.vmware.o11n.plugin.rest.Response@1f290f0c
[2017-01-17 12:41:02.328] [I] Status code: 404
[2017-01-17 12:41:02.329] [I] Content as string:
{
"errors" :
[
{
"code" : "AEC_NOT_FOUND",
"message" : "Path not found '/ifs/DCPARMAZNA1/ZONECORP/Arquivos/CETAD/CETAD04/VPLEX%20e%20RP'"
}
]
}
[2017-01-17 12:41:02.330] [E] Error in (Dynamic Script Module name : findQuotaHardSubdirectory#55) TypeError: Cannot read property "0" from undefined
[2017-01-17 12:41:02.339] [E] Workfow execution stack:
item: 'Find Quota Hard Subdirectory/item1', state: 'failed', business state: 'null', exception: 'TypeError: Cannot read property "0" from undefined (Dynamic Script Module name : findQuotaHardSubdirectory#55)'
workflow: 'Find Quota Hard Subdirectory' (3ebf23df-cce1-4d7e-9974-e128e42baaef)
| 'input': name=subtenantName type=string value=\arquivos.caixa\CETAD\CETAD04\
| 'input': name=subDirName type=string value=VPLEX e RP
| 'output': name=actionResult type=string value=null
| 'no attributes'
*** End of execution stack.