Defect #1596
getImageTag generates URL without an instance name
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
velocity
Target version:
-
Start date:
02/28/2025
Due date:
% Done:
100%
Estimated time:
Browser (if web client):
Description
When generating the img tag from the function getImageTag it generates it without the instance name.
The "/servoy-service/velocitemp" will point to the root where it can't be found because there is no ROOT instance.
Input
<tr><td rowspan="3">$!care_person.image.getImageTag( { 'height': 90 } )</td>
Result
<td rowspan="3"><img src="/servoy-service/velocitemp?file=tmp_10435323386260472884.jpeg" height="90"/></td>
I used the functions:
plugins.VelocityReport.getPDFReport()
plugins.VelocityReport.renderTemplate()
History
Updated by Patrick Talbot about 2 months ago
- Category changed from overall to velocity
- Priority changed from High to Normal
The problem is that the plugin has no idea under what war/instance you have deployed your app... I would probably have to add a servoy-admin property to allow you to declare this instance. I'll see what I can do.
Updated by Patrick Talbot about 2 months ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset r1789.
Updated by Patrick Talbot about 2 months ago
See v3.8 which fixes this by adding a velocityreport.warContext servoy-admin property