Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Create Folder at Root Level in Pentaho Server 8.2

  1. #1
    Join Date
    May 2014
    Posts
    9

    Default Create Folder at Root Level in Pentaho Server 8.2

    Hi to all,

    in previews versions of Pentaho BA Server (ie 6.1) I could create a new Root Level Folder (next to Public and Home) using this REST API

    PUT: http://10.10.10.10:8080/pentaho/api/...rs/%3AMyNEWDir

    In 8.2 version is not possibile anymore, it returns a 403 Forbidden and I think the point is in this piece of code (row 86)

    https://github.com/pentaho/pentaho-p...yResource.java

    Why this beaviour? Also if you delete for an error the Public or Home Directory you are note able to recreate them and Pentaho server is now broken.

    Any hint to bypass this problem?

    Thank you.

  2. #2
    Join Date
    Apr 2008
    Posts
    4,690

    Default

    It's hard to tell what the product direction is.

    The changes that you linked to were made as part of a fix for https://jira.pentaho.com/browse/BISERVER-12433
    But then it seems like there was additional fixes as part of https://jira.pentaho.com/browse/BISERVER-13898
    And there's also the open ticket https://jira.pentaho.com/browse/BISERVER-14081

    I guess the big question (and not being a BIServer user, I can't answer it...) is... Why do you want/need to create root level directories?

    The cause of the issue that you are experiencing actually seems to be coming from the redesign of:
    https://github.com/pentaho/pentaho-p...tils.java#L120

    Which now is checking to see if the path you are trying to create starts with Public, Home, or etc, if not, then it's considered to be a root level path. This came as part of the fixes for 13898 linked above.

    Also, you should file a bug about being able to delete one of the required directories (Public / Home)

  3. #3
    Join Date
    May 2014
    Posts
    9

    Default

    Quote Originally Posted by gutlez View Post
    It's hard to tell what the product direction is.

    The changes that you linked to were made as part of a fix for https://jira.pentaho.com/browse/BISERVER-12433
    But then it seems like there was additional fixes as part of https://jira.pentaho.com/browse/BISERVER-13898
    And there's also the open ticket https://jira.pentaho.com/browse/BISERVER-14081

    I guess the big question (and not being a BIServer user, I can't answer it...) is... Why do you want/need to create root level directories?

    The cause of the issue that you are experiencing actually seems to be coming from the redesign of:
    https://github.com/pentaho/pentaho-p...tils.java#L120

    Which now is checking to see if the path you are trying to create starts with Public, Home, or etc, if not, then it's considered to be a root level path. This came as part of the fixes for 13898 linked above.

    Also, you should file a bug about being able to delete one of the required directories (Public / Home)
    My answer is... why not ?

    In a corporate BI System I expect to organize resource through folder to differentiate different function reports (sells, purchases, costs, business management).
    Having an Home directory with resources created by different users on their own is not what happen in a corporate system.
    Also a Public folder... what does that mean? If it's the only root folder I can have, why does it have a name that implies that this data are "public"?
    I can use folder permission, variable on authenticated user/group and much more to change the resource visibility and the data in it...
    So the "Public" root name is trickier and leads to misunderstanding.

    In all of my Pentaho 6.x systems I've done the same thing, deleting the Public Folder and creating my folder with the api as the first jira you've linked.
    Everything has always worked perfectly.

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.