Bug #13366
closedCorrect image url for widget gallery bots
100%
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.
Updated by Matthias Van Ceulebroeck 20 days ago
- Status changed from New to InProgress
Updated by Matthias Van Ceulebroeck 20 days ago
- Status changed from InProgress to Review
- Assignee deleted (
Matthias Van Ceulebroeck)
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
Updated by Matthias Van Ceulebroeck 6 days ago
- Status changed from Implemented @Emweb to Implemented @Test
Updated by Matthias Van Ceulebroeck 6 days ago
- Status changed from Implemented @Test to Closed