Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003096 [Resin] minor always 11-24-08 14:30 03-18-09 15:52
Reporter ferg View Status public  
Assigned To ferg
Priority urgent Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.0 Product Version 3.2.1
  Product Build
Summary 0003096: dynamic rewrite-dispatch
Description (rep by Leonid Geller)


Protocol://hostname:port/x/y.html [^]
                Always forwards to Protocol://hostname:port/y.html [^]
                Unless x matches a specified regex.
 
Where x and y.html are not known until runtime, and both could be empty.
 
It is easy to do the above if x is known in advance, e.g. <forward regexp="^/x" target="/" />
But I cannot figure out how to do this dynamically, so, except for a short list of ?folders? (really servlet mappings), all requests redirect to the root app.
 
Example 1:
http://hostname.com:88/somefolder [^] and http://hostname.com:88/somefolder/index.html [^]
should load http://hostname.com:88/index.html [^]
 
Example 2:
http://hostname.com:88/foo.html [^] and http://hostname.com:88/somefolder/foo.html [^]
should load the same page: http://hostname.com:88/foo.html [^]
 
Example 3:
http://hostname.com:88/special/foo.html [^]
should go to /special/foo.html because ?/special? is in the exceptions regex.
 
 
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003899)
ferg
03-18-09 15:52

server/1kt0
 

- Issue History
Date Modified Username Field Change
11-24-08 14:30 ferg New Issue
03-18-09 15:52 ferg Note Added: 0003899
03-18-09 15:52 ferg Assigned To  => ferg
03-18-09 15:52 ferg Status new => closed
03-18-09 15:52 ferg Resolution open => fixed
03-18-09 15:52 ferg Fixed in Version  => 4.0.0


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