Defect #368
plugins.VelocityReport.getMedia may not be working in Servoy 6
0%
Description
My solution appears to have broken when using this function in web client.
It still works in developer, but appears to be broken in deployment on the web server.
The show pdf appears to create a temporary file that can be accessed, so it would appear the velocity plugin is pointing correctly at the server url.
but any images created using this function don't appear in the html. This happens even when rendering to an HTML field on the layout.
David
Files
History
Updated by David Pearce over 13 years ago
- File servoy6_screenshot.png servoy6_screenshot.png added
Sorry, here is the same preview in servoy 6. this is on the live server.
Updated by Patrick Talbot over 13 years ago
I have found out that the method I was relying on in Servoy 5 API and which was doing:
public URLStreamHandler getMediaURLStreamHandler() { return new MediaURLStreamHandler(application); }
Is now (in 6 and for Web client only):
@Deprecated public URLStreamHandler getMediaURLStreamHandler() { return null; }
I have asked Johan for some explanations, they shouldn't brake/deprecate methods without warnings, when the method is still in the public API.
Will keep you posted.
Updated by David Pearce over 13 years ago
Thanks,
hopefully it will be easy to fix. They must be due 6.0.1 soon!
David
Updated by Patrick Talbot over 13 years ago
Talked to Johan about it, it's a bug in 6.
I'm prepared to send him a patch but he is on vacation right now :)
Hopefully this will make it in 6.0.1
Updated by Patrick Talbot over 13 years ago
Will be resolved in 6.0.1 due to this https://www.servoyforge.net/projects/servoy/repository/revisions/4325
Updated by Patrick Talbot over 13 years ago
- Status changed from In Progress to Closed
Working with Servoy 6.0.1