Project

General

Profile

Defect #368

plugins.VelocityReport.getMedia may not be working in Servoy 6

Added by David Pearce over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
High
Category:
velocity
Target version:
-
Start date:
09/05/2011
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

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

servoy6.pdf (56.6 KB) servoy6.pdf pdf from servoy 6 David Pearce, 09/05/2011 09:24 PM
servoy5_screenshot.png (221 KB) servoy5_screenshot.png screenshot of the same file from servoy 5 David Pearce, 09/05/2011 09:24 PM
servoy6_screenshot.png (201 KB) servoy6_screenshot.png Servoy 6 screenshot David Pearce, 09/05/2011 09:27 PM

History

#1

Updated by David Pearce over 12 years ago

Sorry, here is the same preview in servoy 6. this is on the live server.

#2

Updated by Patrick Talbot over 12 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.

#3

Updated by Patrick Talbot over 12 years ago

  • Status changed from New to In Progress
#4

Updated by David Pearce over 12 years ago

Thanks,

hopefully it will be easy to fix. They must be due 6.0.1 soon!

David

#5

Updated by Patrick Talbot over 12 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

#6

Updated by David Pearce over 12 years ago

That sounds good. Many thanks

David

#8

Updated by Patrick Talbot over 12 years ago

  • Status changed from In Progress to Closed

Working with Servoy 6.0.1

Also available in: Atom PDF