{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/7295","repository_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks","labels_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/7295/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/7295/comments","events_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/7295/events","html_url":"https://github.com/Microsoft/azure-pipelines-tasks/issues/7295","id":326324900,"node_id":"MDU6SXNzdWUzMjYzMjQ5MDA=","number":7295,"title":"'Invalid Resource' when downloading a Secure File","user":{"login":"kjkc-gar","id":22940013,"node_id":"MDQ6VXNlcjIyOTQwMDEz","avatar_url":"https://avatars1.githubusercontent.com/u/22940013?v=4","gravatar_id":"","url":"https://api.github.com/users/kjkc-gar","html_url":"https://github.com/kjkc-gar","followers_url":"https://api.github.com/users/kjkc-gar/followers","following_url":"https://api.github.com/users/kjkc-gar/following{/other_user}","gists_url":"https://api.github.com/users/kjkc-gar/gists{/gist_id}","starred_url":"https://api.github.com/users/kjkc-gar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjkc-gar/subscriptions","organizations_url":"https://api.github.com/users/kjkc-gar/orgs","repos_url":"https://api.github.com/users/kjkc-gar/repos","events_url":"https://api.github.com/users/kjkc-gar/events{/privacy}","received_events_url":"https://api.github.com/users/kjkc-gar/received_events","type":"User","site_admin":false},"labels":[{"id":429249870,"node_id":"MDU6TGFiZWw0MjkyNDk4NzA=","url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/labels/Area:%20CrossPlatform","name":"Area: CrossPlatform","color":"b60205","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-05-24T22:56:22Z","updated_at":"2018-10-18T01:17:42Z","closed_at":"2018-06-14T19:16:11Z","author_association":"NONE","body":"## Environment\r\n- Server - TFS 2018 R2\r\n- Agent - Windows Server 2016 (v2.131.0)\r\n   \r\n## Issue Description\r\n\r\nI get 'invalid resource' anytime I attempt to download a Secure File in either a build or release workflow. I've attempted to delete the resource and recreate it, but I'm still unable to download it.\r\n\r\n### Error logs\r\n\r\n> 2018-05-24T22:46:36.0533810Z ##[debug]Evaluating condition for step: 'Download secure file'\r\n> 2018-05-24T22:46:36.0533810Z ##[debug]Evaluating: succeeded()\r\n> 2018-05-24T22:46:36.0533810Z ##[debug]Evaluating succeeded:\r\n> 2018-05-24T22:46:36.0690042Z ##[debug]=> (Boolean) True\r\n> 2018-05-24T22:46:36.0690042Z ##[debug]Expanded: True\r\n> 2018-05-24T22:46:36.0690042Z ##[debug]Result: True\r\n> 2018-05-24T22:46:36.0690042Z ##[section]Starting: Download secure file\r\n> 2018-05-24T22:46:36.0846345Z ==============================================================================\r\n> 2018-05-24T22:46:36.0846345Z Task         : Download Secure File\r\n> 2018-05-24T22:46:36.0846345Z Description  : Download a secure file to a temporary location on the build or release agent\r\n> 2018-05-24T22:46:36.0846345Z Version      : 1.126.0\r\n> 2018-05-24T22:46:36.0846345Z Author       : Microsoft Corporation\r\n> 2018-05-24T22:46:36.0846345Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=862069)\r\n> 2018-05-24T22:46:36.0846345Z ==============================================================================\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]agent.TempDirectory=e:\\agent\\_work\\_temp\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]loading inputs and endpoints\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]loading INPUT_SECUREFILE\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]loading SECUREFILE_TICKET_5dbc742c-518a-4d6b-9444-8593ab789175\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]loaded 5\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]Agent.ProxyUrl=http://xxxx.xxxx.com:xxxx\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]Agent.ProxyUsername=undefined\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]Agent.ProxyPassword=undefined\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]Agent.ProxyBypassList=undefined\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]expose agent proxy configuration.\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]Agent.CAInfo=undefined\r\n> 2018-05-24T22:46:36.3971306Z ##[debug]Agent.ClientCert=undefined\r\n> 2018-05-24T22:46:36.6315058Z ##[debug]check path : e:\\agent\\_work\\_tasks\\DownloadSecureFile_2a6ca863-f2ce-4f4d-8bcb-15e64608ec4b\\1.126.0\\task.json\r\n> 2018-05-24T22:46:36.6315058Z ##[debug]set resource file to: e:\\agent\\_work\\_tasks\\DownloadSecureFile_2a6ca863-f2ce-4f4d-8bcb-15e64608ec4b\\1.126.0\\task.json\r\n> 2018-05-24T22:46:36.6315058Z ##[debug]system.culture=en-US\r\n> 2018-05-24T22:46:36.6315058Z ##[debug]secureFile=5dbc742c-518a-4d6b-9444-8593ab789175\r\n> 2018-05-24T22:46:36.6315058Z ##[debug]System.TeamFoundationCollectionUri=https://xxxtfs.xxxx.com/DefaultCollection/\r\n> 2018-05-24T22:46:36.6315058Z ##[debug]SYSTEMVSSCONNECTION auth param ACCESSTOKEN = ********\r\n> 2018-05-24T22:46:36.6315058Z ##[debug]secure file name for id 5dbc742c-518a-4d6b-9444-8593ab789175 = xxxx.Dev.xml\r\n> 2018-05-24T22:46:36.6315058Z ##[debug]Agent.TempDirectory=e:\\agent\\_work\\_temp\r\n> 2018-05-24T22:46:36.6315058Z ##[debug]Absolute path for pathSegments: e:\\agent\\_work\\_temp,xxxx.Dev.xml = e:\\agent\\_work\\_temp\\xxxx.Dev.xml\r\n> 2018-05-24T22:46:36.6315058Z ##[debug]Downloading secure file contents to: e:\\agent\\_work\\_temp\\xxxx.Dev.xml\r\n> 2018-05-24T22:46:36.6315058Z ##[debug]SYSTEM.TEAMPROJECT=xxx\r\n> 2018-05-24T22:46:36.6315058Z ##[debug]secure file ticket for id 5dbc742c-518a-4d6b-9444-8593ab789175 = ********\r\n> 2018-05-24T22:46:36.6315058Z ##[debug]task result: Failed\r\n> 2018-05-24T22:46:36.6471305Z ##[error]Error: Invalid Resource\r\n> 2018-05-24T22:46:36.6471305Z ##[debug]Processed: ##vso[task.issue type=error;]Error: Invalid Resource\r\n> 2018-05-24T22:46:36.6471305Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Invalid Resource\r\n> 2018-05-24T22:46:36.6471305Z ##[section]Finishing: Download secure file"},"comment":{"url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/comments/430842274","html_url":"https://github.com/Microsoft/azure-pipelines-tasks/issues/7295#issuecomment-430842274","issue_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/7295","id":430842274,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDg0MjI3NA==","user":{"login":"cbourner","id":36651718,"node_id":"MDQ6VXNlcjM2NjUxNzE4","avatar_url":"https://avatars3.githubusercontent.com/u/36651718?v=4","gravatar_id":"","url":"https://api.github.com/users/cbourner","html_url":"https://github.com/cbourner","followers_url":"https://api.github.com/users/cbourner/followers","following_url":"https://api.github.com/users/cbourner/following{/other_user}","gists_url":"https://api.github.com/users/cbourner/gists{/gist_id}","starred_url":"https://api.github.com/users/cbourner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbourner/subscriptions","organizations_url":"https://api.github.com/users/cbourner/orgs","repos_url":"https://api.github.com/users/cbourner/repos","events_url":"https://api.github.com/users/cbourner/events{/privacy}","received_events_url":"https://api.github.com/users/cbourner/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T01:17:42Z","updated_at":"2018-10-18T01:17:42Z","author_association":"NONE","body":"I should add that I am not using a proxy.  Should I raise a new issue?"}}
{"actor":{"display_login":"cbourner"}}