Uploaded image for project: 'ACE'
  1. ACE
  2. ACE-402

Change file repository layout and prefs usage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0.0
    • None
    • Repository
    • None

    Description

      ACE-391 added optional configuration to the file repositories, but there are still two concerns that I would like to address which are not strictly backward compatible.

      1) The RepositoryFactory assigns working directories based on the PID which is a hard to interpret randomly generated number. As we have logical concepts as 'customer' and 'name' for repositories I suggest to use those (in a fs safe fashion) instead.

      Eg.

      current layout : <basedir>/<pid>/<revision><extension>
      proposed layout : <basedir>/<customer>/<name>/<revision>[extension]

      2) The RepositoryFactory uses prefs (keeping unsafe refs which is a bug) for, AFAICS, the sole purpose of guaridng uniqueness of customer/name combination. Addressing the layout as described in 1 voids the need for prefs altogether so I ould like to remove it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bramk Bram de Kruijff
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: