{"action":"created","issue":{"url":"https://api.github.com/repos/ctron/package-drone/issues/100","labels_url":"https://api.github.com/repos/ctron/package-drone/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/ctron/package-drone/issues/100/comments","events_url":"https://api.github.com/repos/ctron/package-drone/issues/100/events","html_url":"https://github.com/ctron/package-drone/issues/100","id":83408310,"number":100,"title":"problems with special version-datas","user":{"login":"afischer211","id":4056990,"avatar_url":"https://avatars.githubusercontent.com/u/4056990?v=3","gravatar_id":"","url":"https://api.github.com/users/afischer211","html_url":"https://github.com/afischer211","followers_url":"https://api.github.com/users/afischer211/followers","following_url":"https://api.github.com/users/afischer211/following{/other_user}","gists_url":"https://api.github.com/users/afischer211/gists{/gist_id}","starred_url":"https://api.github.com/users/afischer211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afischer211/subscriptions","organizations_url":"https://api.github.com/users/afischer211/orgs","repos_url":"https://api.github.com/users/afischer211/repos","events_url":"https://api.github.com/users/afischer211/events{/privacy}","received_events_url":"https://api.github.com/users/afischer211/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-01T09:38:08Z","updated_at":"2015-06-01T09:55:24Z","closed_at":null,"body":"I try to deploy an org.apache.servicemix-artifact (bundle-id: **org.apache.servicemix.bundles.saxon**) with the version: **9.6.0.5_1**\r\nThe artifact is uploaded successfully and shown in the channel-content, but can not be consumed by features or so. I also get a warning message in the console-log (no exception):\r\n`\r\nWARN  d.d.pm.p2.servlet.DownloadHandler [DownloadHandler.java:100] Artifact not found - name: org.apache.servicemix.bundles.saxon_9.6.0.5, version: 1, classifier: bundle\r\n`\r\nIs there a possible problem with **underscores** in the version-data?"},"comment":{"url":"https://api.github.com/repos/ctron/package-drone/issues/comments/107384794","html_url":"https://github.com/ctron/package-drone/issues/100#issuecomment-107384794","issue_url":"https://api.github.com/repos/ctron/package-drone/issues/100","id":107384794,"user":{"login":"ctron","id":202474,"avatar_url":"https://avatars.githubusercontent.com/u/202474?v=3","gravatar_id":"","url":"https://api.github.com/users/ctron","html_url":"https://github.com/ctron","followers_url":"https://api.github.com/users/ctron/followers","following_url":"https://api.github.com/users/ctron/following{/other_user}","gists_url":"https://api.github.com/users/ctron/gists{/gist_id}","starred_url":"https://api.github.com/users/ctron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctron/subscriptions","organizations_url":"https://api.github.com/users/ctron/orgs","repos_url":"https://api.github.com/users/ctron/repos","events_url":"https://api.github.com/users/ctron/events{/privacy}","received_events_url":"https://api.github.com/users/ctron/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T09:55:24Z","updated_at":"2015-06-01T09:55:24Z","body":"I just checked and yes, there is a problem  ...\r\n\r\nThe OSGi specification allows the bundle symbolic name and the version to have the character \"_\". The P2 artifacts file defines a rule how to build an HTTP get url, which by default is `${repoUrl}/features/${id}_${version}.jar`\r\n\r\nNow the `DownloadHandler` needs to find the appropriate OSGi bundle, and therefore splits the requested file name by the underscore. Assuming that the BSN may contain an underscore the version part if defined \"non greedy\".\r\n\r\nSo having a bundle named `a.b.c_d.e.f` with version `1.2.3.4_5_6` will result in the P2 file name `a.b.c_d.e.f_1.2.3.4_5_6.jar`. Since `d.e.f` of course could also be `1.2.3` there is now way to figure out which part belongs to the symbolic name and which to the version.\r\n"}}