{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/290","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/290/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/290/events","html_url":"https://github.com/GoogleCloudPlatform/gsutil/issues/290","id":97484919,"number":290,"title":"some directories with brackets don't upload","user":{"login":"lihanli","id":830084,"avatar_url":"https://avatars.githubusercontent.com/u/830084?v=3","gravatar_id":"","url":"https://api.github.com/users/lihanli","html_url":"https://github.com/lihanli","followers_url":"https://api.github.com/users/lihanli/followers","following_url":"https://api.github.com/users/lihanli/following{/other_user}","gists_url":"https://api.github.com/users/lihanli/gists{/gist_id}","starred_url":"https://api.github.com/users/lihanli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lihanli/subscriptions","organizations_url":"https://api.github.com/users/lihanli/orgs","repos_url":"https://api.github.com/users/lihanli/repos","events_url":"https://api.github.com/users/lihanli/events{/privacy}","received_events_url":"https://api.github.com/users/lihanli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-07-27T15:04:17Z","updated_at":"2017-01-12T17:44:41Z","closed_at":null,"body":"I'm getting a \"CommandException: No URLs matched:\" message when trying to upload a directory that has brackets in the name.\n\n```\n$ mkdir 'hello [foo]'\n$ touch hello\\ \\[foo\\]/bar\n$ gsutil cp -r 'hello [foo]' gs://test5903495034959\nCommandException: No URLs matched: hello [foo]\n$ mv hello\\ \\[foo\\] hello\n$ gsutil cp -r 'hello' gs://test5903495034959\nCopying file://hello/bar [Content-Type=application/octet-stream]...\n```\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/comments/272231282","html_url":"https://github.com/GoogleCloudPlatform/gsutil/issues/290#issuecomment-272231282","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/290","id":272231282,"user":{"login":"thobrla","id":3239120,"avatar_url":"https://avatars.githubusercontent.com/u/3239120?v=3","gravatar_id":"","url":"https://api.github.com/users/thobrla","html_url":"https://github.com/thobrla","followers_url":"https://api.github.com/users/thobrla/followers","following_url":"https://api.github.com/users/thobrla/following{/other_user}","gists_url":"https://api.github.com/users/thobrla/gists{/gist_id}","starred_url":"https://api.github.com/users/thobrla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thobrla/subscriptions","organizations_url":"https://api.github.com/users/thobrla/orgs","repos_url":"https://api.github.com/users/thobrla/repos","events_url":"https://api.github.com/users/thobrla/events{/privacy}","received_events_url":"https://api.github.com/users/thobrla/received_events","type":"User","site_admin":false},"created_at":"2017-01-12T17:44:41Z","updated_at":"2017-01-12T17:44:41Z","body":"Some additional discussion from https://github.com/GoogleCloudPlatform/gsutil/issues/405 - the fix for the limitation is described by the TODO in the code referenced there:\r\n\r\n```\r\n# TODO: Disambiguate user-supplied strings from iterated\r\n# prefix and object names so that we can better reason\r\n# about wildcards and handle this case without raising an error.\r\n```\r\n\r\nHowever, this fix still would not allow gsutil to receive such files/objects as command-line arguments without the addition of a raw mode as described in https://github.com/GoogleCloudPlatform/gsutil/issues/220 or the addition or escape characters which have backwards-compatibility implications."}}
{"actor":{"display_login":"thobrla"}}