Project

General

Profile

Actions

Bug #4488

closed

currentUrl in WResource

Added by Stefan Arndt over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
09/21/2015
Due date:
% Done:

0%

Estimated time:

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.

Actions #1

Updated by Koen Deforche over 8 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

Actions #2

Updated by Koen Deforche over 8 years ago

  • Status changed from InProgress to Resolved
  • Target version set to 3.3.5
Actions #3

Updated by Koen Deforche over 8 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF