Project

General

Profile

Actions

Bug #868

closed

resolveRelativeUrl() seems to use outdated urls

Added by Boris Nagaev almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
06/22/2011
Due date:
% Done:

0%

Estimated time:

Description

I noticed a problem with new URL api:

  1. Application is deployed at localhost:8000/
  2. Open main page of application
  3. Try to open other pages (under some internal path). There is WAnchor with internal path; new images are added in slot connected to wApp->internalPathChanged()
  4. Images are loaded using relative path without "../"

I watched the value of pagePathInfo_ in WebSession::fixRelativeUrl() and it seems to be set to previous value of internal path, causing this error. When the nesting level of "folder" is changed, images can not be loaded.


Files

path.cpp (927 Bytes) path.cpp Boris Nagaev, 06/27/2011 11:29 PM
Actions #1

Updated by Koen Deforche almost 13 years ago

  • Status changed from New to Resolved

Hey,

I fixed this (and some other problems) already in my private git copy.

Hopefully I can push my stash of work to the git repo tomorrow.

Regards,

koen

Actions #2

Updated by Boris Nagaev almost 13 years ago

Hello,

I updated git, but it seems unfixed.

Look at file in attachment.

deploy command:

./path --docroot '.;/img' --http-address=0.0.0.0 --http-port=8003

This application should output (relative) path of image.

If http://localhost:8003/ is opened (ajax version), clicking at every anchor does not affect output (remains without "../", as path from root).

However, if application was started from for example http://localhost:8003/foo/, output is constantly "../img/1.img" (like from /foo/ rather than from real location).

The conclusion is that path in output seems to be one used when application was created.

Actions #3

Updated by Koen Deforche almost 13 years ago

Hey,

Apparently I overlooked the situation where setInternalPath() is triggered by anchor navigation... Fixed now in git.

Regards,

koen

Actions #4

Updated by Koen Deforche almost 13 years ago

  • Target version set to 3.1.10
Actions #5

Updated by Koen Deforche almost 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF