{ "name": "verify-config-defaults-ttl-zero-http-request", "settings": { "storagePermissions": { "collections": { "ttl0_download_probe": "read-write", "files": "read-write" } } }, "nodes": [ { "id": "n1", "name": "Trigger", "type": "click-trigger", "position": { "x": 0, "y": 0 }, "config": {} }, { "id": "dl", "name": "Download", "type": "http-request", "position": { "x": 0, "y": 100 }, "config": { "method": "GET", "url": "http://localhost:8090/index.html", "responseMode": "binary", "storeDownload": true, "downloadCollection": "ttl0_download_probe", "downloadTtlHours": 0 } } ], "connections": [ { "sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "dl", "targetInput": "data" } ], "expect": { "dl": { "status": "completed", "output": { "storage": { "collection": "ttl0_download_probe" } } } }, "_comment": "The bytes of a stored download go to the file store now, not into the document - so this needs write access to \"files\" as well as to the collection. A document that carried its own base64 made a listing of twenty-five downloads 54 MB." }