Bug #4488
closedcurrentUrl in WResource
0%
Description
Hi,
I created a test resource to load some text fragments using Ajax. It's not a global resource and so I call Resource::setInternalPath( "something" ). When I issue a request for this resource, I get back the application html and the application log says "Wt: refreshing session", basically smashing the session (clicking on a link now spams the server with requests - this might be another issue).
When I looked into the code it seems that "WResource::setInternalPath" clears "currentUrl_". When I call "generateUrl" after "setInternalPath" everything works fine. Either there seems to be a bug or this should be mentioned in the documentation.
Updated by Koen Deforche about 9 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
Hey,
I don't understand the link between a private resource and the call to setInternalPath(). That's not necessary, and may only be relevant if you're somehow exporting this in a JavaScript API?
But you're right about the issue. We'll fix it for 3.3.5.
Koen
Updated by Koen Deforche about 9 years ago
- Status changed from InProgress to Resolved
- Target version set to 3.3.5
Updated by Koen Deforche about 9 years ago
- Status changed from Resolved to Closed