V
vplusplus
I found by accident following behavior with ASP.Net 2.0 web.config
Background:
I am trying to implement WebDav protocol for serving information from
database.
I had to route all requests (with or without file extension) to my WebDav
Httphandler.
Step 1:
I added IIS wildcard map to aspnet_isapi.dll (with 'Verift that file exists'
turned off).
This routed all requests to ASP.Net http pipeline.
I verified this by adding an http module and logging the url of incoming
requests.
Step 2:
I had added an web.config entry as follows:
<httpHandlers> <add verb="*" path="*" type="RV.WebDav.CommonHandler" />
</httpHandlers>
This routed the calls to the Common handler as long as an file extension is
given.
Example: http://localhost/Sub1/Sub2/AnyFile.anyextension
Still urls with no file extension didn't reach the handler.
Example: http://localhost/Sub1/Sub2/
I accidentally typed two stars for the path:
<httpHandlers> <add verb="*" path="**" type="RV.WebDav.CommonHandler" />
</httpHandlers>
This routed all url requests (with or with out any file extension) to my
handler.
Question:
Is this TWO START behavior a bug or is this by design that I can bank on?
Thanks in advance.
Background:
I am trying to implement WebDav protocol for serving information from
database.
I had to route all requests (with or without file extension) to my WebDav
Httphandler.
Step 1:
I added IIS wildcard map to aspnet_isapi.dll (with 'Verift that file exists'
turned off).
This routed all requests to ASP.Net http pipeline.
I verified this by adding an http module and logging the url of incoming
requests.
Step 2:
I had added an web.config entry as follows:
<httpHandlers> <add verb="*" path="*" type="RV.WebDav.CommonHandler" />
</httpHandlers>
This routed the calls to the Common handler as long as an file extension is
given.
Example: http://localhost/Sub1/Sub2/AnyFile.anyextension
Still urls with no file extension didn't reach the handler.
Example: http://localhost/Sub1/Sub2/
I accidentally typed two stars for the path:
<httpHandlers> <add verb="*" path="**" type="RV.WebDav.CommonHandler" />
</httpHandlers>
This routed all url requests (with or with out any file extension) to my
handler.
Question:
Is this TWO START behavior a bug or is this by design that I can bank on?
Thanks in advance.