Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using Jetty 3.2.4, the port information when dynamically allocated is wrong #82

Closed
debbabi opened this issue Sep 15, 2016 · 2 comments
Labels
Milestone

Comments

@debbabi
Copy link
Member

debbabi commented Sep 15, 2016

When letting jetty affect a random port number for Http Service, the port set on "org.osgi.service.http.port" service property is wrong. The good one could be retrieved in "osgi.http.service.endpoints" service property of HttpService.

Using Jetty 2.2.1-SNAPSHOT (Cohorte < 1.2)

service; org.osgi.service.http.HttpService, org.apache.felix.http.api.ExtHttpService with properties:
   org.apache.felix.http.enable = true
   org.apache.felix.https.enable = false
   org.osgi.service.http.port = 51287
   org.osgi.service.http.port.secure = 8443
   osgi.http.service.endpoints = http://[fd25:53c9:b3dc:6707:9933:3684:4086:e9a5]:51287/, http://10.242.2.10:51287/, http://10.130.1.141:51287/
   service.bundleid = 24
   service.id = 97
   service.scope = bundle
   Used by:
      org.cohorte.isolates.discovery.local [19]
      org.psem2m.isolates.base [8]
      org.cohorte.pyboot.shell.agent [33]
      org.cohorte.herald.http [23]

Using Jetty 3.2.4 (Cohorte >= 1.2)

service; org.osgi.service.http.HttpService, org.apache.felix.http.api.ExtHttpService with properties:
   org.apache.felix.http.enable = true
   org.apache.felix.https.enable = false
   org.osgi.service.http.port = 52942
   org.osgi.service.http.port.secure = 8443
   osgi.http.endpoint = http://[fd25:53c9:b3dc:6707:9933:3684:4086:e9a5]:52940/, http://10.242.2.10:52940/, http://10.130.1.141:52940/
   osgi.http.service.endpoints = http://[fd25:53c9:b3dc:6707:9933:3684:4086:e9a5]:52940/, http://10.242.2.10:52940/, http://10.130.1.141:52940/
   service.bundleid = 24
   service.id = 124
   service.scope = bundle
   Used by:
      org.cohorte.isolates.discovery.local [19]
      org.psem2m.isolates.base [8]
      org.cohorte.pyboot.shell.agent [33]
      org.cohorte.herald.http [23]
@debbabi debbabi added the bug label Sep 15, 2016
@debbabi debbabi added this to the 1.2.0 milestone Sep 15, 2016
debbabi added a commit to cohorte/cohorte-herald that referenced this issue Sep 16, 2016
…t to check if Http Service is really started and port is affected. (cohorte/cohorte-platforms#82)
@debbabi
Copy link
Member Author

debbabi commented Sep 22, 2016

SHOULD test jetty separately and report bug to

@debbabi debbabi closed this as completed Sep 22, 2016
@debbabi
Copy link
Member Author

debbabi commented Jul 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant