[Mono-bugs] [Bug 324011] SimpleWorkerRequest: Content in subdirs not accesible

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 25 09:03:09 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=324011

User gert.driesen at pandora.be added comment
https://bugzilla.novell.com/show_bug.cgi?id=324011#c20





--- Comment #20 from Gert Driesen <gert.driesen at pandora.be>  2008-04-25 07:03:09 MST ---
I think SimpleWorkerRequest was actually broken:
  * it treated everything up until the first / as path_info, but it should have
    taken everything up until the last /.
  * GetFilePath did not ever use path_info at all, so content from subdir could
    never be served.

I attached a patch which fixes this, and which uses Path.DirectorySeparatorChar
to split the path instead of hardcoding it to /.  This should not have any
effect on linux (since for unix Path.DirectorySeparatorChar is / anyway), and
it fixes the behavior for Windows.

After applying my patch, the file path passed to HttpResponse.TransmitFile is
correct but still nothing is written to the TextWriter.

Can you please apply this patch locally, and look into this? You can use my
"simplified repro" to reproduce this.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list