{"action":"created","issue":{"url":"https://api.github.com/repos/smira/aptly/issues/339","repository_url":"https://api.github.com/repos/smira/aptly","labels_url":"https://api.github.com/repos/smira/aptly/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/smira/aptly/issues/339/comments","events_url":"https://api.github.com/repos/smira/aptly/issues/339/events","html_url":"https://github.com/smira/aptly/issues/339","id":129438247,"number":339,"title":"Aptly Publish API should support .(dot) as prefix name","user":{"login":"bhush9","id":1061944,"avatar_url":"https://avatars.githubusercontent.com/u/1061944?v=3","gravatar_id":"","url":"https://api.github.com/users/bhush9","html_url":"https://github.com/bhush9","followers_url":"https://api.github.com/users/bhush9/followers","following_url":"https://api.github.com/users/bhush9/following{/other_user}","gists_url":"https://api.github.com/users/bhush9/gists{/gist_id}","starred_url":"https://api.github.com/users/bhush9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhush9/subscriptions","organizations_url":"https://api.github.com/users/bhush9/orgs","repos_url":"https://api.github.com/users/bhush9/repos","events_url":"https://api.github.com/users/bhush9/events{/privacy}","received_events_url":"https://api.github.com/users/bhush9/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/smira/aptly/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-28T12:32:30Z","updated_at":"2016-02-05T21:43:49Z","closed_at":null,"body":"In ```PUT /api/publish/:prefix/:distribution``` method if ```prefix``` is dot then it becomes ```PUT /api/publish/:distribution``` which in turn returns the 404. It is impossible to update repositories when prefix is not sub directory.\r\n\r\nRelevant log that maybe useful:\r\n\r\n```\r\n11:12:21 :get\r\n11:12:21 \"/api/publish\"\r\n11:12:21 {}\r\n11:12:21 I, [2016-01-28T11:12:21.481071 #15220]  INFO -- : get http://localhost:9090/api/publish\r\n11:12:21 D, [2016-01-28T11:12:21.481151 #15220] DEBUG -- request: User-Agent: \"Faraday v0.9.2\"\r\n11:12:21 I, [2016-01-28T11:12:21.486074 #15220]  INFO -- Status: 200\r\n11:12:21 D, [2016-01-28T11:12:21.486207 #15220] DEBUG -- response: content-type: \"application/json; charset=utf-8\"\r\n11:12:21 date: \"Thu, 28 Jan 2016 11:12:21 GMT\"\r\n11:12:21 content-length: \"382\"\r\n11:12:21 connection: \"close\"\r\n11:12:21 :put\r\n11:12:21 \"/api/publish/./vivid\"\r\n11:12:21 {:body=>\"{}\"}\r\n11:12:21 I, [2016-01-28T11:12:21.487044 #15220]  INFO -- : put http://localhost:9090/api/publish/vivid\r\n11:12:21 D, [2016-01-28T11:12:21.487125 #15220] DEBUG -- request: User-Agent: \"Faraday v0.9.2\"\r\n11:12:21 Content-Type: \"application/json\"\r\n11:12:21 I, [2016-01-28T11:12:21.490014 #15220]  INFO -- Status: 404\r\n11:12:21 D, [2016-01-28T11:12:21.490125 #15220] DEBUG -- response: content-type: \"text/plain\"\r\n11:12:21 date: \"Thu, 28 Jan 2016 11:12:21 GMT\"\r\n11:12:21 content-length: \"18\"\r\n11:12:21 connection: \"close\"\r\n```"},"comment":{"url":"https://api.github.com/repos/smira/aptly/issues/comments/180571780","html_url":"https://github.com/smira/aptly/issues/339#issuecomment-180571780","issue_url":"https://api.github.com/repos/smira/aptly/issues/339","id":180571780,"user":{"login":"philtay","id":7722913,"avatar_url":"https://avatars.githubusercontent.com/u/7722913?v=3","gravatar_id":"","url":"https://api.github.com/users/philtay","html_url":"https://github.com/philtay","followers_url":"https://api.github.com/users/philtay/followers","following_url":"https://api.github.com/users/philtay/following{/other_user}","gists_url":"https://api.github.com/users/philtay/gists{/gist_id}","starred_url":"https://api.github.com/users/philtay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philtay/subscriptions","organizations_url":"https://api.github.com/users/philtay/orgs","repos_url":"https://api.github.com/users/philtay/repos","events_url":"https://api.github.com/users/philtay/events{/privacy}","received_events_url":"https://api.github.com/users/philtay/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T21:43:49Z","updated_at":"2016-02-05T21:43:49Z","body":"This `/api/publish//vivid` (note two slashes after publish) used to work with 0.9.5. Now, with the new version (0.9.6), it doesn't work anymore. The \"two slashes\" method is documented [here](http://www.aptly.info/doc/api/publish/) (in the relevant example).\r\n\r\nThis bug broken several of our builds. :( Stick with 0.9.5 for now."}}