{"action":"created","issue":{"url":"https://api.github.com/repos/dmwm/CRABServer/issues/5031","labels_url":"https://api.github.com/repos/dmwm/CRABServer/issues/5031/labels{/name}","comments_url":"https://api.github.com/repos/dmwm/CRABServer/issues/5031/comments","events_url":"https://api.github.com/repos/dmwm/CRABServer/issues/5031/events","html_url":"https://github.com/dmwm/CRABServer/issues/5031","id":110313793,"number":5031,"title":"Fix regular expression for primary dataset name","user":{"login":"AndresTanasijczuk","id":6575844,"avatar_url":"https://avatars.githubusercontent.com/u/6575844?v=3","gravatar_id":"","url":"https://api.github.com/users/AndresTanasijczuk","html_url":"https://github.com/AndresTanasijczuk","followers_url":"https://api.github.com/users/AndresTanasijczuk/followers","following_url":"https://api.github.com/users/AndresTanasijczuk/following{/other_user}","gists_url":"https://api.github.com/users/AndresTanasijczuk/gists{/gist_id}","starred_url":"https://api.github.com/users/AndresTanasijczuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndresTanasijczuk/subscriptions","organizations_url":"https://api.github.com/users/AndresTanasijczuk/orgs","repos_url":"https://api.github.com/users/AndresTanasijczuk/repos","events_url":"https://api.github.com/users/AndresTanasijczuk/events{/privacy}","received_events_url":"https://api.github.com/users/AndresTanasijczuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-07T20:52:01Z","updated_at":"2015-10-07T21:30:49Z","closed_at":null,"body":"In case of an Analysis task without an input dataset, a user is required to use\r\nData.primaryDataset = '/A/B/C' while it should be enough to specify Data.primaryDataset = 'A'. The problem is that this regex https://github.com/dmwm/CRABServer/blob/3.3.1510.rc8/src/python/CRABInterface/Regexps.py#L32 has changed recently to require the full dataset name pattern. This regex is used in https://github.com/dmwm/CRABServer/blob/86acd5b12f274c5dfab2d033b8b7e9c2603239df/src/python/CRABInterface/RESTUserWorkflow.py#L352-L353\r\nThis is in general correct, except that \"inputdata\" is actually the primary dataset name (in the form \"/A\" form) when a task doesn't require an input dataset but a primary dataset name.\r\nSo we either generalize this regex or use RX_LFNPRIMDS instead as in https://github.com/dmwm/CRABServer/blob/86acd5b12f274c5dfab2d033b8b7e9c2603239df/src/python/CRABInterface/RESTUserWorkflow.py#L364"},"comment":{"url":"https://api.github.com/repos/dmwm/CRABServer/issues/comments/146337348","html_url":"https://github.com/dmwm/CRABServer/issues/5031#issuecomment-146337348","issue_url":"https://api.github.com/repos/dmwm/CRABServer/issues/5031","id":146337348,"user":{"login":"belforte","id":1837785,"avatar_url":"https://avatars.githubusercontent.com/u/1837785?v=3","gravatar_id":"","url":"https://api.github.com/users/belforte","html_url":"https://github.com/belforte","followers_url":"https://api.github.com/users/belforte/followers","following_url":"https://api.github.com/users/belforte/following{/other_user}","gists_url":"https://api.github.com/users/belforte/gists{/gist_id}","starred_url":"https://api.github.com/users/belforte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belforte/subscriptions","organizations_url":"https://api.github.com/users/belforte/orgs","repos_url":"https://api.github.com/users/belforte/repos","events_url":"https://api.github.com/users/belforte/events{/privacy}","received_events_url":"https://api.github.com/users/belforte/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T21:30:48Z","updated_at":"2015-10-07T21:30:48Z","body":"that's part of the publication process, still nothing to do with input\n\nOn 10/07/2015 11:29 PM, Andres Tanasijczuk wrote:\n> A: And also for LFN path.\n\n"}}