Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001017 [Resin] minor always 03-27-06 05:25 04-05-06 18:44
Reporter tderouin View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.0.18
Summary 0001017: host host-name doesn't work as expected
Description 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.
Additional Information
Attached Files

- Relationships

- Notes
(0001023)
ferg
04-05-06 18:44

server/1f1{6,7}
 

- Issue History
Date Modified Username Field Change
03-27-06 05:25 tderouin New Issue
04-05-06 18:44 ferg Note Added: 0001023
04-05-06 18:44 ferg Assigned To  => ferg
04-05-06 18:44 ferg Status new => closed
04-05-06 18:44 ferg Resolution open => fixed
04-05-06 18:44 ferg Fixed in Version  => 3.0.19


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker