Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-14254

Need a way to be able to view the forum space content fm:topic in Share UI > Repository Browser which used to be visible in Explorer UI only

    Details

    • Bug Priority:
      Category 2
    • ACT Numbers:

      00416672

      Description

      Currently, there is no way for customer whom upgraded from legacy 4.0 to 5.x to view their previously created forum space and forum post back in legacy 4.0 as Explorer UI has been removed from 5.x release.

      In pre-5.x, Explorer UI afforded option to create custom forum spaces (type fm:forums) with the advance space wizard. As well as provided create forum (fm:forum), create posts (fm:post) under the forums in that forum space.

      Ref:
      (4.2) http://docs.alfresco.com/4.2/tasks/tgs-create-forum.html
      (4.2) http://docs.alfresco.com/4.2/tasks/tgs-discussions.html
      (4.2) http://docs.alfresco.com/4.2/references/RESTful-Discussions.html

      Share UI never rendered forum spaces in Share > Repository Browser even in earlier versions of Alfresco such as v4.2.4. It only renders the 'Discussion' component as such in the sites which is also a forum space.

      Ref:
      (4.2) http://docs.alfresco.com/4.2/concepts/discussions-intro.html
      (5.0) http://docs.alfresco.com/5.0/concepts/discussions-intro.html

      It does not render this outside of viewing the Discussion component page in a site dashboard. Meaning no view if you simply navigate to the discussion folder via Repository Browser in Share UI.

      E.g.
      Share UI > Repository Browser > Sites > MySites > Discussion

      This was never in Share UI Repository Browser. Meaning to navigate via repository to a forum space and anything (fm:forums, fm:forum, fm:post) items.

      We still support the REST API and structure see: http://docs.alfresco.com/5.0/references/RESTful-Discussions.html

      and via CMIS, e.g.

      private Folder createForumFolder(Folder target, String newFolderName)

      { Map<String, String> props = new HashMap<String, String>(); props.put(PropertyIds.OBJECT_TYPE_ID, "F:fm:forum"); props.put(PropertyIds.NAME, newFolderName); Folder newFolder = target.createFolder(props); return newFolder; }

      private Folder createTopic(Folder forumFolder, String topicName)

      { Map<String, String> props = new HashMap<String, String>(); props.put(PropertyIds.OBJECT_TYPE_ID, "F:fm:topic"); props.put(PropertyIds.NAME, topicName); Folder newFolder = forumFolder.createFolder(props); return newFolder; }

      public Document createPost(String userName, String password, Folder topic, String content) {
      Session userSession = this.createSession(userName, password);
      Map<String, String> props = new HashMap<String, String>();
      props.put(PropertyIds.OBJECT_TYPE_ID, "D:fm:post");
      props.put(PropertyIds.NAME, "test+" + System.currentTimeMillis());
      props.put(PropertyIds.CONTENT_STREAM_MIME_TYPE, "text/plain");
      props.put(PropertyIds.OBJECT_TYPE_ID, "D:fm:post");
      ContentStream contentStream = userSession.getObjectFactory()
      .createContentStream("forum-posting.txt", content.length(),
      "text/plain",
      new ByteArrayInputStream(content.getBytes()));
      Document newDocument = topic.createDocument(props, contentStream,
      VersioningState.MAJOR);
      if(userSession != null)

      { userSession.clear(); }

      return newDocument;
      }

      In 5.x , the customer can still create forums & topic folders and post messages even without Explorer UI. But, customer cannot view any of the new and existing forum post via Share UI in v5.x.

      This likely will require customized documentlist-view or some how use the discussions component js when one navigates to a folder of type fm:forums via Repository Browser in Share UI. Not clear how you would differentiate managing forms/post via repository view versus when accessing via the Discussions page component in a site.

      A blog post can be displayed in Repo Browser because blog folder is cmis:folder. From the script called, it does not seem to search through fm:topic folder but only cm:folder.

      Replication Findings
      http://screencast.com/t/qekebytIed
      http://screencast.com/t/RSylmhVGQWg

      Sample NET request being passed in:

      http://10.245.240.214:8080/share/service/components/documentlibrary/data/doclist/all/node/alfresco/user/home/Sites/mysite/discussions?filter=path&size=50&pos=1&sortAsc=true&sortField=cm%3Aname&libraryRoot=alfresco%3A%2F%2Fcompany%2Fhome&view=browse&noCache=1434992945952

      Sample response bodies:
      {"totalRecords": 0, "startIndex": 0, "metadata": {"repositoryId": "5dc20c45-947e-45f9-9a2a-d43e598febac", "container": "workspace:\/\/SpacesStore\/35ee47b4-b46a-485a-a244-8ac8d20de7d7", "parent": {"isLink": false, "recordContributorGroupName": "RECORD_CONTRIBUTORS", "nodeRef": "workspace:\/\/SpacesStore\/906b6c31-ce49-4156-8d1d-26673da8be30", "permissions": {"inherited": true, "roles": ["ALLOWED;GROUP_EVERYONE;ReadPermissions;INHERITED", "ALLOWED;GROUP_site_mysite_SiteConsumer;SiteConsumer;INHERITED", "ALLOWED;GROUP_EVERYONE;SiteConsumer;INHERITED", "ALLOWED;GROUP_site_mysite_SiteCollaborator;SiteCollaborator;INHERITED", "ALLOWED;GROUP_site_mysite_SiteManager;SiteManager;INHERITED", "ALLOWED;GROUP_site_mysite_SiteContributor;SiteContributor;INHERITED"], "user": {"Delete": true, "Write": true, "CancelCheckOut": false, "ChangePermissions": true, "CreateChildren": true, "Unlock": false}}, "isLocked": false, "aspects": ["cm:tagscope", "st:siteContainer", "cm:auditable", "sys:referenceable", "sys:localized"], "isContainer": true, "type": "cm:folder", "isRmSiteCreated": true, "isRecordContributorGroupEnabled": false, "properties": {"cm:creator":

      {"firstName": "Administrator", "lastName": "", "displayName": "Administrator", "userName": "admin"}

      , "cm:modifier":

      {"firstName": "Administrator", "lastName": "", "displayName": "Administrator", "userName": "admin"}

      , "cm:created":

      {"iso8601": "2015-04-15T14:56:23.478Z", "value": "Wed Apr 15 10:56:23 EDT 2015"}

      , "st:componentId": "discussions", "cm:name": "discussions", "sys:store-protocol": null, "sys:node-dbid": null, "sys:store-identifier": null, "sys:locale": null, "cm:modified":

      {"iso8601": "2015-06-22T16:18:32.139Z", "value": "Mon Jun 22 12:18:32 EDT 2015"}

      , "sys:node-uuid": null}}, "custom": {"googledocs": {"enabled": true, "importFormats": {"application/vnd.openxmlformats-officedocument.presentationml.presentation": "presentation", "application/vnd.ms-powerpoint": "presentation", "text/tab-separated-values": "spreadsheet", "application/vnd.sun.xml.writer": "document", "application/vnd.ms-excel": "spreadsheet", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "spreadsheet", "application/rtf": "document", "application/msword": "document", "application/vnd.oasis.opendocument.text": "document", "text/plain": "document", "text/csv": "spreadsheet", "application/x-vnd.oasis.opendocument.spreadsheet": "spreadsheet", "application/vnd.oasis.opendocument.spreadsheet": "spreadsheet", "application/vnd.openxmlformats-officedocument.wordprocessingml.document": "document"}}, "aos":

      {"baseUrl": "http:\/\/10.245.240.214:8080\/alfresco\/aos"}

      , "vtiServer": null}, "onlineEditing": false, "itemCounts":

      {"folders": 0, "documents": 0}

      , "workingCopyLabel": " (Working Copy)"}, "items": []}

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                sliaw Seng Liaw
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d

                    Structure Helper Panel