mail-archives/mono-bugs/2004-June/017130.html

113 строки
4.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 59794][Maj] Changed - problems with cookieless sessions and databinding
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="017128.html">
<LINK REL="Next" HREF="017131.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 59794][Maj] Changed - problems with cookieless sessions and databinding
</H1>
<B>bugzilla-daemon@bugzilla.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com"
TITLE="[Mono-bugs] [Bug 59794][Maj] Changed - problems with cookieless sessions and databinding">bugzilla-daemon@bugzilla.ximian.com
</A><BR>
<I>Wed, 9 Jun 2004 15:46:31 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="017128.html">[Mono-bugs] [Bug 59894][Wis] Changed - TypeBuilder implementation does not match MS.NET
</A></li>
<LI> Next message: <A HREF="017131.html">[Mono-bugs] [Bug 59889][Maj] Changed - Spurious ID reference errors reported at end of XML file when using validating reader
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17130">[ date ]</a>
<a href="thread.html#17130">[ thread ]</a>
<a href="subject.html#17130">[ subject ]</a>
<a href="author.html#17130">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by <A HREF="mailto:chris@turchin.net.">chris@turchin.net.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=59794">http://bugzilla.ximian.com/show_bug.cgi?id=59794</A>
--- shadow/59794 2004-06-09 02:13:04.000000000 -0400
+++ shadow/59794.tmp.5016 2004-06-09 15:46:31.000000000 -0400
@@ -107,6 +107,49 @@
go.img = &quot;images/folder.gif&quot;;
go.url = &quot;default.aspx?dir=&quot;+HttpUtility.UrlEncode(go.Path);
so don't expect them to contain the cookieless session stuff.
+
+------- Additional Comments From <A HREF="mailto:chris@turchin.net">chris@turchin.net</A> 2004-06-09 15:46 -------
+There is still an inconsistency in xsp, even if I described it
+incorrectly in my bugreport:
+
+i am binding these paths:
+
+go.img = &quot;thumbnail.ashx?fmt=Thumb&amp;img=&quot;+HttpUtility.UrlEncode(go.Path);
+go.url = &quot;preview.aspx?img=&quot;+HttpUtility.UrlEncode(go.Path);
+
+and i expected that the session string appears in the path, but that
+is not what should happen at all. instead, xsp/mod_mono should stop
+(incorrectly) prepending the complete path to the file in this case,
+regardless of the session string:
+
+results on MS.NET for databinding of this nature:
+
+&lt;a id=&quot;mediaList__ctl0_galleryObjectLink&quot;
+href=&quot;preview.aspx?img=c%3a%5ctemp%5cADZBatchMediaQueryInterface.jpg&quot;&gt;&lt;img
+src=&quot;thumbnail.ashx?fmt=Thumb&amp;amp;img=c%3a%5ctemp%5cADZBatchMediaQueryInterface.jpg&quot;
+border=&quot;0&quot; /&gt;&lt;/a&gt;
+&lt;asp:literal id=&quot;galleryObjectName&quot;&gt;
+ADZBatchMediaQueryInterface.jpg
+&lt;/asp:literal&gt;
+&lt;/td&gt;
+
+note the path without &quot;/gd-gallery/&quot; --- results on mod_mono/xsp:
+
+&lt;td&gt;
+&lt;a id=&quot;mediaList__ctrl0a_galleryObjectLink&quot;
+href=&quot;/gd-gallery/preview.aspx?img=%2fdata%2fimages%2fhw.jpg&quot;&gt;&lt;img
+src=&quot;/gd-gallery/thumbnail.ashx?fmt=Thumb&amp;amp;img=%2fdata%2fimages%2fhw.jpg&quot;
+border=&quot;0&quot; /&gt;
+&lt;/img&gt;&lt;/a&gt;
+&lt;asp:literal id=&quot;galleryObjectName&quot;&gt;
+hw.jpg
+&lt;/asp:literal&gt;
+
+since the relative path in ms.net is still relative to a path
+INCLUDING the session key (which just looks like a folder to the
+browser) it will be requested from the server as such. in mono, the
+complete (and wrong) path to the file shows up, and the request fails.
+
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="017128.html">[Mono-bugs] [Bug 59894][Wis] Changed - TypeBuilder implementation does not match MS.NET
</A></li>
<LI> Next message: <A HREF="017131.html">[Mono-bugs] [Bug 59889][Maj] Changed - Spurious ID reference errors reported at end of XML file when using validating reader
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17130">[ date ]</a>
<a href="thread.html#17130">[ thread ]</a>
<a href="subject.html#17130">[ subject ]</a>
<a href="author.html#17130">[ author ]</a>
</LI>
</UL>
</body></html>