Hitachi Vantara Pentaho Community Forums
Results 1 to 10 of 10

Thread: no access to pictures

  1. #1
    Join Date
    Jan 2006
    Posts
    313

    Default no access to pictures

    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?

  2. #2
    Join Date
    Jan 2006
    Posts
    313

    Default only textual representation

    One of the xactions behind this is
    http://m030/pentaho/ViewAction?solut...ritory.xaction

    If i ask output to excel or pdf everything is shown OK. When output to web i get this textual representation and links.
    Code:
                  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 >>Products >>Sales Reps >>Customers     929,576      
     NA >>Product Lines >>Products >>Sales Reps >>Customers     671,272       
    APAC >>Product Lines >>Products >>Sales Reps >>Customers     337,047       
    Japan >>Product Lines >>Products >>Sales Reps >>Customers     42,955                                 
    Total       $ 1,980,850
    The html contains links to picture, but they are not shown.

  3. #3
    Join Date
    Oct 2006
    Posts
    817

    Default

    Look in applicationContext-acegi-security.xml. The bean with id filterInvocationInterceptor has a line like the following:

    Code:
    \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.

  4. #4
    Join Date
    Nov 2007
    Posts
    5

    Default

    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?

  5. #5
    Join Date
    Oct 2006
    Posts
    817

    Default

    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?

  6. #6
    Join Date
    Nov 2007
    Posts
    5

    Default

    Ok, I attach one file whit the image and some code.... thanks
    Attached Files Attached Files

  7. #7
    Join Date
    Oct 2006
    Posts
    817

    Default

    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.

  8. #8
    Join Date
    Nov 2007
    Posts
    5

    Default

    wow!

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

    http://localhost:8888/pentaho/getIma...hart_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/getIm...hart_27790.png

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

    thanksssssss!!

  9. #9
    Join Date
    Oct 2006
    Posts
    817

    Default

    Change context-param named base-url in web.xml.

  10. #10
    Join Date
    Nov 2007
    Posts
    5

    Default now it's running!!!

    you are the best!!!!
    thanks
    Last edited by alien_mx; 11-19-2007 at 02:13 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.