{"action":"closed","issue":{"url":"https://api.github.com/repos/dmwm/WMCore/issues/4131","labels_url":"https://api.github.com/repos/dmwm/WMCore/issues/4131/labels{/name}","comments_url":"https://api.github.com/repos/dmwm/WMCore/issues/4131/comments","events_url":"https://api.github.com/repos/dmwm/WMCore/issues/4131/events","html_url":"https://github.com/dmwm/WMCore/issues/4131","id":7352999,"number":4131,"title":"srmv2 stageout implementation fails for file paths containing consecutive slashes","user":{"login":"pkonst","id":1799735,"avatar_url":"https://avatars.githubusercontent.com/u/1799735?v=3","gravatar_id":"","url":"https://api.github.com/users/pkonst","html_url":"https://github.com/pkonst","followers_url":"https://api.github.com/users/pkonst/followers","following_url":"https://api.github.com/users/pkonst/following{/other_user}","gists_url":"https://api.github.com/users/pkonst/gists{/gist_id}","starred_url":"https://api.github.com/users/pkonst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkonst/subscriptions","organizations_url":"https://api.github.com/users/pkonst/orgs","repos_url":"https://api.github.com/users/pkonst/repos","events_url":"https://api.github.com/users/pkonst/events{/privacy}","received_events_url":"https://api.github.com/users/pkonst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2012-10-04T14:53:08Z","updated_at":"2015-04-26T16:07:29Z","closed_at":"2015-04-26T16:07:29Z","body":"The srm v2 stageout implementation determines the size of the written file by doing `srmls` on the remote PFN and then `grep` for the remote path (https://github.com/dmwm/WMCore/blob/master/src/python/WMCore/Storage/Backends/SRMV2Impl.py#L197). When the PFN and the path contain consecutive slashes, e.g. (*), this does not work because `srmls` returns the path with just a single slash and the `grep` does not match. This results in declaring perfectly successful stageouts as failed.\r\n\r\n\r\n(*)\r\nsrm://lcgsedc01.jinr.ru:8443/srm/managerv2?SFN=/pnfs/jinr.ru/data/cms/store/temp/user/pkonst/logs///pkonst_crab_crab3test-PK-001_121003_101259/Analysis/0000/0/eb423dac-0d47-11e2-893f-003048f1c5ce-23-0-logArchive.tar.gz"}}