[Yanel-development] Cruisecontrol build result does not work

yanel-development at wyona.com yanel-development at wyona.com
Wed Nov 15 14:11:37 CET 2006


Andreas Wuest wrote:

> Hi
>
> On 14.11.2006 22:02 Uhr, Michael Wechner wrote:
>
>> Andreas Wuest wrote:
>>
>>> Hi
>>>
>>> Although the build itself works fine, the build result located at 
>>> http://continuous-integration.yanel.wyona.org/ does not seem to 
>>> work. When you try to access it, you get redirected to 
>>> https://192.168.101.102:8443/.
>>
>>
>> I just realize another problem with the current implementation. It 
>> seems not
>> to use the proxy information of the realm and hence ends up on an 
>> internal IP which of course it shouldn't.
>>
>> I have added a bug
>>
>> http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=5026
>
>
> Isn't that exactly what your getRequestURLQS() method does? If you 
> look at the SSL redirect method:
>
> private HttpServletResponse redirectToSecureURI(HttpServletRequest 
> request, HttpServletResponse response)
>         throws ServletException, IOException {
>
>     String urlString = getRequestURLQS(request, null, false);
>                        ^^^^^^^^^^^^^^^
>
>     Properties properties = new Properties();
>     int port = 8080;
>     int sslPort = 8443;
>
>     try {
>
> properties.load(this.getClass().getClassLoader().getResourceAsStream("server.properties")); 
>
>         port = Integer.parseInt(properties.getProperty("port"));
>         sslPort = Integer.parseInt(properties.getProperty("sslPort"));
>     } catch (FileNotFoundException fnf) {
>         log.error("NO server.properties file found! Using default 
> ports instead\n" + fnf.getMessage());
>     } catch (NumberFormatException nfe) {
>         log.error("property is not of type int" + nfe);
>     }
>
>     urlString = urlString.replaceAll("http:", "https:");
>     urlString = urlString.replaceAll("" + port, "" + sslPort);
>
>     response.setHeader("Location", urlString);
>
> response.setStatus(javax.servlet.http.HttpServletResponse.SC_TEMPORARY_REDIRECT); 
>
>     log.info("redirecting to SECURE SSL URL: " + urlString);
>     return response;
> }
>
> you see that it uses getRequestURLQS() to get the request URI, and 
> therefore should be proxy clean! Or did I miss something?
>

well, maybe the proxy isn't configured on the cruise control server and 
hence the problem.

Cheers

Michi


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner at wyona.com                        michi at apache.org
+41 44 272 91 61




More information about the Yanel-development mailing list