Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29271

Alfresco Repository UI not showing site information

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.4
    • Component/s: Repositories
    • Labels:
    • Database:
      Any
    • Testing Instructions:
      Hide

      Test pre-requisites

      • Make sure you have pulled MDL-34400 (should be the case if this has been integrated)
      • Set up your Alfresco repository
      • Create an instance of the repository

      Test steps

      • Go to your privates files, click Add
      • In the file picker browse your instance of Alfresco
      • Make sure you can see the folder 'Sites'
      • Make sure you can browse the folder 'Sites'
      • Make sure you can add a file from the folder 'Sites'
      • Make sure that the other root directories work too
      • Save your private files and make sure the files have been saved
      Show
      Test pre-requisites Make sure you have pulled MDL-34400 (should be the case if this has been integrated) Set up your Alfresco repository Create an instance of the repository Test steps Go to your privates files, click Add In the file picker browse your instance of Alfresco Make sure you can see the folder 'Sites' Make sure you can browse the folder 'Sites' Make sure you can add a file from the folder 'Sites' Make sure that the other root directories work too Save your private files and make sure the files have been saved
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-29271-master

      Description

      Information in Alfresco Sites is stored under a top level folder called Sites, this is not included in the list of folders when connecting to a vanilla Alfresco Repository.

      Reproduction instructions:

      1. Install fully packaged alfresco install,
      2. setup an alfresco repository,
      3. attempt to attach a file from the sample site included by default in a vanilla install.

      The top level Sites folder is not included in the browser.

      There is a "bug" in repository/alfresco/lib.php because the Sites folder and the individual Site sub-folders are typed with a subtype of folder and the namespace encoded in the code is wrong.

      $folder_filter = "{http://www.alfresco.org/model/content/1.0}folder";
      $file_filter = "{http://www.alfresco.org/model/content/1.0}content";
      $sites_filter = "{http://www.alfresco.org/model/content/1.0}sites";
      $site_filter = "{http://www.alfresco.org/model/content/1.0}site";

      Should be:

      $folder_filter = "{http://www.alfresco.org/model/content/1.0}folder";
      $file_filter = "{http://www.alfresco.org/model/content/1.0}content";
      $sites_filter = "{http://www.alfresco.org/model/site/1.0}sites";
      $site_filter = "{http://www.alfresco.org/model/site/1.0}site";

      Notice the

      {http://www.alfresco.org/model/site/1.0}

      instead of

      {http://www.alfresco.org/model/content/1.0}

      namespace definitions for the Sites and Site folder filters.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/12