Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"path" parameter empty in AzureBlob and Filesystem actions #46

Closed
ghost opened this issue Apr 5, 2019 · 2 comments
Closed

"path" parameter empty in AzureBlob and Filesystem actions #46

ghost opened this issue Apr 5, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 5, 2019

Hi,

The latest version seems to lose the "path" input parameter value of AzureBlob and Filesystem action blocks. This is especially troublesome in cases (e.g. "List blobs in folder") where the path parameter contains a full folder or file path.

For example, the following action block
"Create_blob": { "inputs": { "body": "'Some content text'", "host": { "connection": { "name": "@parameters('$connections')['azureblob']['connectionId']" } }, "method": "post", "path": "/datasets/default/files", "queries": { "folderPath": "@{parameters('ContainerName')}", "name": "@{parameters('FileName')}", "queryParametersSingleEncoded": true } }, "runAfter": {}, "runtimeConfiguration": { "contentTransfer": { "transferMode": "Chunked" } }, "type": "ApiConnection" }
comes through in the template as
"Create_blob": { "runAfter": {}, "type": "ApiConnection", "inputs": { "body": "'Some content text'", "host": { "connection": { "name": "@parameters('$connections')['azureblob']['connectionId']" } }, "method": "post", "path": "", "queries": { "folderPath": "@{parameters('ContainerName')}", "name": "@{parameters('FileName')}", "queryParametersSingleEncoded": true } }, "runtimeConfiguration": { "contentTransfer": { "transferMode": "Chunked" } } }

I really can't follow the C# code, but in the source I noticed that AzureBlob and Filesystem API Connections have some special processing in TemplateGenerator.cs involving some Base64 handling.

Regards,
Patrik Palm

@pfoolen
Copy link

pfoolen commented Feb 10, 2020

Hi,
I'm having the same issue. Is it possible to fix this?

Kind Regards,
Pieter

@ghost
Copy link
Author

ghost commented Feb 11, 2020

Hi,

Looks like the issue has already been fixed in LogicAppTemplate v1.0.9 (released some time ago, current is v1.0.14). It's available as a module from PowerShell Gallery.

-Patrik Palm

@ghost ghost closed this as completed Feb 11, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant