Jetspeed 2
  1. Jetspeed 2
  2. JS2-917

User home directory path needs to be optimized and customizable.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.2.1
    • Component/s: PSML
    • Labels:
      None

      Description

      Currently, user's home directory is created under a specified folder (e.g. "/_user/admin").
      So, if there are many users to create home directory, then it could be problematic in the sense of performance and availability. That is, if there are more than 5000 sub-directories under the /_user/, it will consume much memory and response time.
      Therefore, we need a separated interface to play a "home locator" role.
      Also, I think the default implementation for the interface should support some predefined variables as most mail servers do. For example, a configuration like '/_user/%2u/%u' can help to locate '/_user/ad/admin' for 'admin' user.

        Activity

        Hide
        Woonsan Ko added a comment -

        I think two solutions are possible:
        (1) To replace Folder constants like USER_FOLDER by using a home locator interface. (e.g. pageManager.getHomeLocator().getHomeLocation(user) )
        (2) To improve or add new FolderHandler and DocumentHandler to CastorXmlPageManager.

        Regarding (1), it's not simple to fix this quickly because many codes are using Folder constants directly. Furthermore, DatabasePageManager is using the path directly to query pages. That is, the path is being regarded as a logical path. So, I don't think (1) is a good solution.
        The solution, (2), looks better, but it is not simple to fix quickly now either.

        Show
        Woonsan Ko added a comment - I think two solutions are possible: (1) To replace Folder constants like USER_FOLDER by using a home locator interface. (e.g. pageManager.getHomeLocator().getHomeLocation(user) ) (2) To improve or add new FolderHandler and DocumentHandler to CastorXmlPageManager. Regarding (1), it's not simple to fix this quickly because many codes are using Folder constants directly. Furthermore, DatabasePageManager is using the path directly to query pages. That is, the path is being regarded as a logical path. So, I don't think (1) is a good solution. The solution, (2), looks better, but it is not simple to fix quickly now either.
        Hide
        Woonsan Ko added a comment -

        For sites having many user directories, JS2 supports database page manager only.

        Show
        Woonsan Ko added a comment - For sites having many user directories, JS2 supports database page manager only.

          People

          • Assignee:
            Woonsan Ko
            Reporter:
            Woonsan Ko
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development