Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal server error when redirecting in the first request #58

Closed
GoogleCodeExporter opened this issue Mar 25, 2015 · 1 comment
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. override #incomingRequest: aRequest
2. intercept the very first request
3. redirect it to some arbitrary url

What is the expected output? 
the destination page

What do you see instead?
the internal error

What version of the product are you using? 
2.8a1-lr.541
On what operating system?

Please provide any additional information below.
I've patched it with:

WASession>>redirectTo: anUrl

    ^ self returnResponse: (self redirectResponseFor: anUrl)

WASession>> returnResponse: aResponse
    "aborts all further processing and directly returns aResponse
    aResponse instance of WAResponse"
    ^ escapeContinuation notNil
        ifTrue:[escapeContinuation value: aResponse]
        ifFalse: [aResponse]

Original issue reported on code.google.com by [email protected] on 18 Apr 2008 at 12:42

@GoogleCodeExporter
Copy link
Author

The proper place to hook into WASession for the first request would be by 
overriding
#start:. If you want all requests, you could override #performRequest: instead.

If you really want to override #incomingRequest: for some reason, you should 
just
return a response rather than using #returnResponse: or something that calls it.

Original comment by [email protected] on 29 Aug 2008 at 1:36

  • Changed state: WontFix
  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant