Mantis - Resin
Viewing Issue Advanced Details
1017 minor always 03-27-06 05:25 04-05-06 18:44
tderouin  
ferg  
normal  
closed 3.0.18  
fixed  
none    
none 3.0.19  
0001017: host host-name doesn't work as expected
It seems that host-name needs http:// in it in order to work.

This configuration:

  <host id="" root-directory="." host-name="www.ehow.com">
 
Doesn't work for 302 redirects:

[root@server1 resin]# lynx -mime_header http://localhost:8080/halloween [^]
HTTP/1.0 302 Found
Server: Resin/3.0.17
Location: http://localhost:8080/halloween/ [^]

Where this one does:

  <host id="" root-directory="." host-name="http://www.ehow.com"> [^]

[root@server1 resin]lynx -mime_header http://localhost:8080/halloween [^]
HTTP/1.0 302 Found
Server: Resin/3.0.17
Location: http://www.ehow.com/halloween/ [^]

Now the problem with this is that ResinStatusServlet stops working:

javax.management.MalformedObjectNameException: Invalid character ':' in
value part of property
    at javax.management.ObjectName.construct(ObjectName.java:529)
    at javax.management.ObjectName.<init>(ObjectName.java:1304)
    at com.caucho.servlets.ResinStatusServlet.printApplicationSummary(ResinStatusServlet.java:775)
    at com.caucho.servlets.ResinStatusServlet.service(ResinStatusServlet.java:170)
    at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
    at com.caucho.filters.RewriteFilter.doFilter(RewriteFilter.java:120)
    at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:267)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:388)
    at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)
    at com.caucho.util.ThreadPool.run(ThreadPool.java:423)
    at java.lang.Thread.run(Thread.java:595)

Looking this up suggests that : should be converted to %3a, but when that happens, the host-name stops working again.

Notes
(0001023)
ferg   
04-05-06 18:44   
server/1f1{6,7}