Project

General

Profile

Defect #423

Why are two methods removed

Added by Hans Nieuwenhuis about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Start date:
02/16/2012
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

Hi,

I noticed that in 3.5-250 some methods are removed.
Why is that done ?

I use ITServer.getApplicationServerDir() to show in the solutions about page which servoy implementation is used.
Just the servername is not enough, because there can be more then one servoy installations on one server.

3.5-250 02/16/2012
[chg] using the server object is now restricted to users that are logged in
[chg] removed method ITServer.getApplicationServerDir()
[chg] removed method ITServer.getDeveloperDir()

<<<<<<<<<<<<<<<<<<<<<<<<

History

#1

Updated by Servoy Components about 12 years ago

  • Status changed from New to Feedback
  • Assignee set to Servoy Components

This was done based on questions raised by Servoy.
With these 2 methods it is easy to create a security issue.

Servoy has added a couple of changes to the latest versions of Servoy and prompted all 3rd party component developers to improve security for critical server related methods.

I could either make these methods available within developer only (which does not make any sense to me) or drop them.

Little hint: you can still use the old version, there are no dependencies on anything other than Servoy 5+ or 6+.

#2

Updated by Harjo Kompagnie about 12 years ago

Hi Marcel,

my whole solution breaks because of this missing piece: plugins.it2be_tools.server().getApplicationServerDir()

I use it everywhere in my solution to point to the right folder, in this case to an ireport folder: plugins.jasperPluginRMI.reportDirectory = plugins.it2be_tools.server().getApplicationServerDir() + '/server/webapps/ROOT/reports/'

And far as I know, this is the only way , to tell the jasper-plugin serverside, where the report files are...
I believe, Servoy warned for security issues, and allow certain actions ONLY when users are logged in!!

The trouble is I can't roll back to an older version, because I had to update to the latest Word version and it auto-updated the tools plugin also......

So I really hope, there is some solution to this.....

#3

Updated by Patrick Talbot about 12 years ago

Why don't you use the jasper report server plugin property "directory.jasper.report" to set that path?
The client should not need to know about the server path.

#4

Updated by Harjo Kompagnie about 12 years ago

Because with every deployment I have to set this by hand in the servoy-admin page.

And I fiddled around with it, and could'nt find a reliable way todo this relative.....

With this code I don't have to think about it, my report folder is always relative to the ROOT.

#5

Updated by Servoy Components about 12 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF