PDA

View Full Version : no access to pictures



begunrom
10-24-2007, 11:43 AM
I have added LDAP based security to the PCI. I guess after this, i no longer see the pictures on the home page like the chart. When i go over it i see that there are links like "terrirory=APAC". So it is only a display problem of http://m030/pentaho/getImage?image=tmp_chart_15981.png
If i ask to view the picture, i get an "Access to the specified resource (Access is denied) has been forbidden." error.
The same error is shown in internet explorer as in firefox.

Where do i start searching?

begunrom
10-25-2007, 12:17 PM
One of the xactions behind this is
http://m030/pentaho/ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Territory.xaction

If i ask output to excel or pdf everything is shown OK. When output to web i get this textual representation and links.


Steel Wheels, Inc.
Summary of Sales by Territory
From 2005-01-01 through 2005-06-01
All Territories - All Product Lines - All Employees - All Products Sales ($)
EMEA >>Product Lines (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Productline.xaction&territory=EMEA&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) >>Products (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Product.xaction&territory=EMEA&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) >>Sales Reps (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Employee.xaction&territory=EMEA&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) >>Customers (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Customer.xaction&territory=EMEA&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) 929,576
NA >>Product Lines (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Productline.xaction&territory=NA&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) >>Products (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Product.xaction&territory=NA&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) >>Sales Reps (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Employee.xaction&territory=NA&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) >>Customers (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Customer.xaction&territory=NA&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) 671,272
APAC >>Product Lines (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Productline.xaction&territory=APAC&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) >>Products (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Product.xaction&territory=APAC&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) >>Sales Reps (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Employee.xaction&territory=APAC&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) >>Customers (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Customer.xaction&territory=APAC&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) 337,047
Japan >>Product Lines (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Productline.xaction&territory=Japan&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) >>Products (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Product.xaction&territory=Japan&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) >>Sales Reps (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Employee.xaction&territory=Japan&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) >>Customers (http://m030/pentaho//ViewAction?solution=samples&path=steel-wheels/reports&action=Sales_by_Customer.xaction&territory=Japan&productline=default&time_start=2005-01-01&time_stop=2005-06-01&type=html) 42,955
Total $ 1,980,850

The html contains links to picture, but they are not shown.

mlowery
10-26-2007, 09:34 AM
Look in applicationContext-acegi-security.xml. The bean with id filterInvocationInterceptor has a line like the following:



\A/getimage.*\Z=Anonymous,Authenticated


The roles that are listed on the right-hand-side of the equation must be granted to the username with whom you are logged in.

alien_mx
11-15-2007, 06:31 PM
Hi I don't see the images ... but, i'm working with

jdeveloper 10g (i build the .ear following the Gretchen Moran's steps, move some libs, made the deploy and now it's running)..... buttt, it show only the hints...... :(

what can i do now? :confused:

mlowery
11-16-2007, 10:29 AM
Can you please elaborate? What do you mean by "don't see the images?" Are you still getting Access Denied errors? Or does it seem like it cannot find the image?

alien_mx
11-16-2007, 11:53 AM
Ok, I attach one file whit the image and some code.... thanks :p

mlowery
11-16-2007, 12:15 PM
In the source for the page attached in the previous post, find one of the getImage references. Copy it and paste it in a new browser window. What do you see? An example: http://localhost:8080/pentaho/getImage?image=tmp_chart_55555.png. Do you get a 404 or a 403? If you get a 404 (i.e. not found), your issue might be that the pentaho-solutions/system/tmp is not writable. It must be writable since the images on the home page are generated and written to that directory.

alien_mx
11-16-2007, 01:13 PM
wow!

ok, the page's source code have this line:

http://localhost:8888/pentaho/getImage?image=tmp_chart_27790.png

when i run pentaho from jdeveloper the url is my ip, and 8988 port.... i change for
http://10.25.2.34:8988/pentaho/getImage?image=tmp_chart_27790.png

and show the image!!! what i have to change in my configuration to do this automatically??

thanksssssss!! :rolleyes:

mlowery
11-16-2007, 01:20 PM
Change context-param named base-url in web.xml.

alien_mx
11-16-2007, 01:34 PM
you are the best!!!!
thanks :D