Project

General

Profile

Actions

Bug #13366

closed

Correct image url for widget gallery bots

Added by Matthias Van Ceulebroeck 20 days ago. Updated 6 days ago.

Status:
Closed
Priority:
High
Target version:
Start date:
01/02/2025
Due date:
% Done:

100%

Estimated time:

Description

When opening the widget gallery on the /graphics-charts path, the pics/sintel_trailer.jpg cannot be found, IF the agent accessing the page is a bot.
In this case, there is no JS context, and no canvas to draw to. The image is then opened on the server, rendered there, and sent over to the client.

In the widget gallery example, the pic/sintel_trailer.jpg is specified, but this is a relative path, of which the image is found in the docroot. However, the application is not launched from here, so the server is not able to locate the file.
In case of a bot user, where no JS is present, the server would not be able to find, load, render, and serve the file.

A quick fix would be to ensure that the file exists in the WRasterImage implementation, and then render it. If it doesn't, we can prepend the docroot.
This ought to be documented to be an intermediary step. This is not a solution, yet.

Actions #1

Updated by Matthias Van Ceulebroeck 20 days ago

  • Status changed from New to InProgress
Actions #2

Updated by Matthias Van Ceulebroeck 20 days ago

  • Status changed from InProgress to Review
  • Assignee deleted (Matthias Van Ceulebroeck)
Actions #3

Updated by Matthias Van Ceulebroeck 7 days ago

  • Status changed from Review to Implemented @Emweb
  • Assignee set to Matthias Van Ceulebroeck
  • % Done changed from 0 to 100
Actions #4

Updated by Matthias Van Ceulebroeck 6 days ago

  • Status changed from Implemented @Emweb to Implemented @Test
Actions #5

Updated by Matthias Van Ceulebroeck 6 days ago

  • Status changed from Implemented @Test to Closed
Actions

Also available in: Atom PDF