Issue Details (XML | Word | Printable)

Key: SPRNET-763
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Erich Eichinger
Reporter: Erich Eichinger
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring.NET

Page DI doesn't work correctly on Server.Transfer()

Created: 08/Nov/07 12:34 PM   Updated: 06/Oct/08 06:42 AM
Component/s: Spring-NET-WEB
Affects Version/s: 1.1 RC2
Fix Version/s: 1.1.0

Time Tracking:
Not Specified

Issue Links:
Related
 


 Description  « Hide
see http://forum.springframework.net/showthread.php?p=9342#post9342

"Server.Transfer() still seems to have issues in the latest release. The Page instance is not initialized in the same manner when the Spring aspx handler is in the stream. Particularly the PreviousPage property is not set. Looking at HttpServer.ExecuteInternal() it appears to be injecting values into the page instance which with the SpringHandler inserted would be the SessionAwarePageHandler stub not the requested page. The only fix that I see at the moment would be to have The stub handler forward the value for PreviousPage (unfortunately there is no public method for setting this variable)."



 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Erich Eichinger added a comment - 27/Nov/07 04:41 PM
another issue likely to be related: http://forum.springframework.net/showthread.php?p=9660#post9660

"but when I'm using <property name="Mode" value="Transfer"/> or
don't explicit set the Mode the I get a System.Web.HttpException
when calling "SetResult": the inner-Exception tells something about "Error validatingView State-MAC"


Erich Eichinger added a comment - 27/Nov/07 04:43 PM
I guess it has to do with Spring's PageHandlerFactory returning its internal PageHandler/SessionAwarePageHandler instance from GetHandler() instead of the real instance

Erich Eichinger added a comment - 03/Dec/07 11:10 AM
according to my tests in Spring.Web.Tests/Spring.Web.Support.PageHandlerFactoryTests.TransferAfterSetResult() the behaviour during Server.Transfer() is not different from standard asp.net behaviour

Erich Eichinger added a comment - 05/Dec/07 08:37 AM
cannot reproduce