You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http://code.google.com/p/glassdb/issues/detail?id=300
Retrieving a Seaside WAUrl from a SwazooUri in
WAServerAdaptor>>requestUrlFor: does not account for the possibility that
the uri might end in a slash.
This turned out to be a problem in a recent SqueakSource version where this
lead to an infinite redirect. The FastCGI-version does not seem to have this
problem.
Solution: in WAServerAdaptor>>requestUrlFor:
a line "seasideUrl slash: swazooUri isDirectory." should be added.
See below.
WAServerAdaptor>>requestUrlFor: aNativeRequest
| swazooUri seasideUrl |
seasideUrl := WAUrl new.
swazooUri := aNativeRequest uri.
swazooUri identifierPath do: [ :each |
"the first path element seems to always be '/'"
each = '/' ifFalse: [
seasideUrl addToPath: each ] ].
seasideUrl slash: swazooUri isDirectory. "<- new"
swazooUri queries do: [ :each |
| value |
value := each value.
"non-existing values are implemented as ''"
value isEmpty
ifTrue: [ seasideUrl addField: each key ]
ifFalse: [ seasideUrl addField: each key value: value ] ].
aNativeRequest isEncrypted
ifTrue: [ seasideUrl scheme: 'https' ].
^ seasideUrl decodedWith: self codec
Original issue reported on code.google.com by [email protected] on 5 Oct 2011 at 4:52
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 5 Oct 2011 at 4:52The text was updated successfully, but these errors were encountered: