Hitachi Vantara Pentaho Community Forums
Results 1 to 11 of 11

Thread: hide based on extension?

  1. #1

    Default hide based on extension?

    I want to hide cda files from the file list, just like the xaction files.

    How can I achieve this?


    Thanks!!

  2. #2

    Default

    no one?

  3. #3
    Join Date
    Apr 2011
    Posts
    8

    Default

    You have to add cda to the "acl-files" directive in pentaho-solutions/system/pentaho.xml:
    <acl-files>xaction,url,prpt,xdash,xcdf,cda</acl-files>
    Then you have to remove execute permissions to that file using the properties dialog.

  4. #4

    Default

    Quote Originally Posted by infinicode View Post
    You have to add cda to the "acl-files" directive in pentaho-solutions/system/pentaho.xml:


    Then you have to remove execute permissions to that file using the properties dialog.
    Thanks. I've done that. But when the user tries to open the CDF dashboard the data doesn't appear. If I given the user execute permission, the dashboard works fine, but it appears on the list and some users got confused and tried opening the CDA

  5. #5
    Join Date
    Apr 2011
    Posts
    8

    Default

    Quote Originally Posted by jloffredo View Post
    Thanks. I've done that. But when the user tries to open the CDF dashboard the data doesn't appear. If I given the user execute permission, the dashboard works fine, but it appears on the list and some users got confused and tried opening the CDA
    We have cda files without any permissions and dashboards work perfectly...

  6. #6

    Default

    great, thanks.
    Then I'm having another error. I'll look into that

  7. #7
    Join Date
    Aug 2011
    Posts
    14

    Default Also having trouble executing

    Hello,

    I need to do this too and am having the same behaviour problem you are. If I remove the "Execute" permission on the CDA file it's no longer listed for the user, but also isn't available for the dashboard.

    I'm removing the "authenticated" role's permission to execute.

    Have you had any luck getting it to both not appear and execute for the dashboard?

    Thanks!

    Larry

  8. #8

    Default

    No, I haven't been able to solve it

  9. #9
    Join Date
    Aug 2011
    Posts
    14

    Default

    I figured something out that works here.

    Put the CDA in a different directory, change the index.xml for that directory to <visible>false</visible> and you can still execute the cda even though you can't get to it directly in the PUC.

  10. #10

    Default

    Hi guys,

    I tried the lars30 solutions but it doesn't work. According to this thread it is not possible with the current version: http://forums.pentaho.com/showthread...320#post265320

    I have this problem too but I think we have to wait until the next release.

  11. #11
    Join Date
    Jan 2007
    Posts
    25

    Default Just sharing my temp solution

    Hi, in order to hide .cda extension, i changed pentaho source code at:

    DbBasedSolutionRepository.java line 318
    FileBasedSolutionRepository.java line 301
    SolutionRepositoryServiceImpl.java line 207
    SolutionRepositoryServiceImplFast.java line 77

    add || name.endsWith(".cda") in the if sentence.

    It worked for me.

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.