Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331703 - OSGI test fails on MacOSX
Summary: OSGI test fails on MacOSX
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: osgi (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 minor (vote)
Target Milestone: 7.1.x   Edit
Assignee: Jesse McConnell CLA
QA Contact: Thomas Becker CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-02 13:22 EST by Thomas Becker CLA
Modified: 2010-12-03 04:54 EST (History)
3 users (show)

See Also:
gregw: iplog+


Attachments
Patch (3.32 KB, application/octet-stream)
2010-12-02 13:25 EST, Thomas Becker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Becker CLA 2010-12-02 13:22:52 EST
Build Identifier: 

TestJettyOSGiBootWithJsp.java fails on MacOSX Snow Leopard. Similar reason as in: https://bugs.eclipse.org/bugs/show_bug.cgi?id=331567

localhost is not resolved to 127.0.0.1. Strange thing about this one is that I'm getting a 302 return code and this assertion fails:  Assert.assertEquals(HttpStatus.OK_200, responseStatus);

Even more strange that the pretty similar test: TestJettyOSGiBootCore.java using localhost as well works fine.

However as breakpoints in this test do not work in eclipse for whatever reason and the solution is simple (replace localhost with 127.0.0.1) I will just provide a patch and stop further investigations. 

Reproducible: Always
Comment 1 Thomas Becker CLA 2010-12-02 13:25:48 EST
Created attachment 184375 [details]
Patch

I changed it in both OSGI tests even if TestJettyOSGiBootCore.java worked with localhost to be consistent.
Comment 2 Michael Gorovoy CLA 2010-12-02 13:47:01 EST
Assigning to Thomas.
Comment 3 Greg Wilkins CLA 2010-12-03 04:54:13 EST
applied, passed tests, committed r2575