Project

General

Profile

Defect #763

$baseHREF breaks Web-Client "Error Calling Server"

Added by Curt Cadwell over 10 years ago. Updated over 10 years ago.

Status:
Rejected
Priority:
High
Category:
velocity
Target version:
Start date:
11/25/2013
Due date:
% Done:

0%

Estimated time:
Browser (if web client):
chrome

Description

If you include the $baseHREF in header section of template to an htmlarea the rendered report displays fine but breaks Web-Client in Servoy with the message "Error Calling Server" in the upper right hand window. No error messages in Servoy log. But I did find under application_server/server/logs called localhost_access_log.txt which I have attached. The weird thing is it is looking for the /eastwood/reports folder which never existed. I created it but still getting HTTP 403 errors on a temp file it looks like. But the other interesting thing it is also somehow changing the location of a BUTTON on the Servoy form which is not in the HTML area. It is looking for the my media icon for the button in eastwood/reports/resources and displays a HTTP 404.
If I comment out the $baseHREF in header section of template everything works fine?


Files

localhost_access_log.2013-11-25.txt (33.7 KB) localhost_access_log.2013-11-25.txt eastwood 404 and 403 errors Curt Cadwell, 11/25/2013 06:52 PM

History

#1

Updated by Patrick Talbot over 10 years ago

  • Status changed from New to Rejected

$baseHREF was never meant to be used inside a web client.
It's used by the reporting engine when rendering PDF (or HTML OUT OF web client), to point to the Eastwood chart engine.

As such it is creating a link like this <base href="$yourserver$/eastwood"/> which is not compatible with web client URLs.
The base tag affects the whole page so what you see is expected behavior.

Just don't use the $baseHREF if you intend to embed Velocity generated content inside a text area.

#2

Updated by Curt Cadwell over 10 years ago

Thanks Patrick guess I misunderstood docs.

Also available in: Atom PDF