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

Tag suggestion incorrectly populated when editing from document library

    Details

    • Type: Service Pack Request
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 4.1.1 HF
    • Fix Version/s: 4.1.4
    • Component/s: Tags and Categories
    • Labels:
      None
    • Environment:
      RHEL, Tomcat, MySQL, Alfresco 4.1.1.18

      Description

      When the user is adding a new tag to a document from the document library, the tag suggestion is retrieving all the tags available in the system, regardless of the value entered by the user.

      The picker script seems to have the wrong search. It is using the "?query=2012" but the "searchTerm" parameter is empty.

      /share/proxy/alfresco/api/forms/picker/category/workspace/SpacesStore/tag:tag-root/children?selectableType=cm:category&searchTerm=&size=100&aspect=cm:taggable&?query=2012

      When adding tags from the document properties edit page, the parameters sent to the web script are the following: selectableType=cm:category&searchTerm=2012&size=1000&aspect=cm:taggable
      In this case, the tags are correctly filtered with "2012".

      Please note that the attribute used for the search is "searchTerm".

      See below the headers and values returned by the query/script when adding a tag from the Document Library page:

      Headers

      Request URL:http://localhost:8080/share/proxy/alfresco/api/forms/picker/category/workspace/SpacesStore/tag:tag-root/children?selectableType=cm:category&searchTerm=&size=100&aspect=cm:taggable&?query=2012
      Request Method:GET
      Status Code:200 OK
      Request Headersview source
      Accept:/
      Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
      Accept-Encoding:gzip,deflate,sdch
      Accept-Language:he,en-GB;q=0.8,en;q=0.6,es;q=0.4
      Connection:keep-alive
      Cookie:JSESSIONID=0C8B16B90F5B9424B65438C7C5C2E5D4; alfLogin=1358428454; alfUsername2="YWRtaW4="; __jwpusr=481d504c-04c8-4c4d-9f0c-ac828bedc178; SESSION-GUID=7n03qv8tckofajor
      Host:localhost:8080
      Referer:http://localhost:8080/share/page/site/test/documentlibrary
      User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Ubuntu Chromium/23.0.1271.97 Chrome/23.0.1271.97 Safari/537.11
      X-Requested-With:application/x-www-form-urlencoded
      Query String Parametersview URL encoded
      selectableType:cm:category
      searchTerm:
      size:100
      aspect:cm:taggable
      :
      Response Headersview source
      Cache-Control:no-cache
      Content-Length:3479
      Content-Type:application/json;charset=UTF-8
      Date:Thu, 17 Jan 2013 13:48:45 GMT
      Expires:Thu, 01 Jan 1970 00:00:00 GMT
      Pragma:no-cache
      Server:Apache-Coyote/1.1

      Response

      {
      "data":
      {
      "parent":

      { "type": "cm:category", "isContainer": false, "name": "Tags", "title": "", "description": "", "modified": "2012-12-31T16:02:00.869Z", "modifier": "System", "displayPath": "\/categories", "nodeRef": "workspace://SpacesStore/tag:tag-root" }

      ,
      "items":
      [

      { "type": "cm:category", "parentType": "cm:cmobject", "isContainer": false, "name": "2012", "title": "", "description": "", "modified": "2013-01-17T13:30:39.300Z", "modifier": "admin", "displayPath": "\/categories\/Tags", "nodeRef": "workspace://SpacesStore/eabd0215-b679-49ca-886a-b5a5b3108006", "selectable" : true }

      ,

      { "type": "cm:category", "parentType": "cm:cmobject", "isContainer": false, "name": "list", "title": "", "description": "", "modified": "2013-01-17T13:25:53.035Z", "modifier": "admin", "displayPath": "\/categories\/Tags", "nodeRef": "workspace://SpacesStore/0b5ef129-054e-4bb7-93d1-ee4f0b30d376", "selectable" : true }

      ,

      { "type": "cm:category", "parentType": "cm:cmobject", "isContainer": false, "name": "t1", "title": "", "description": "", "modified": "2013-01-17T13:24:16.360Z", "modifier": "admin", "displayPath": "\/categories\/Tags", "nodeRef": "workspace://SpacesStore/20086503-f97c-44e8-a937-f85bdae0f92e", "selectable" : true }

      ,

      { "type": "cm:category", "parentType": "cm:cmobject", "isContainer": false, "name": "test", "title": "", "description": "", "modified": "2013-01-02T15:57:58.602Z", "modifier": "admin", "displayPath": "\/categories\/Tags", "nodeRef": "workspace://SpacesStore/47f03d73-2015-41d6-b7ef-a6b00ef06c8c", "selectable" : true }

      ,

      { "type": "cm:category", "parentType": "cm:cmobject", "isContainer": false, "name": "test2", "title": "", "description": "", "modified": "2013-01-17T11:05:48.513Z", "modifier": "admin", "displayPath": "\/categories\/Tags", "nodeRef": "workspace://SpacesStore/f7891575-f8a0-4aaf-bce9-5b9296661c5a", "selectable" : true }

      ,

      { "type": "cm:category", "parentType": "cm:cmobject", "isContainer": false, "name": "test3", "title": "", "description": "", "modified": "2013-01-17T13:23:19.154Z", "modifier": "admin", "displayPath": "\/categories\/Tags", "nodeRef": "workspace://SpacesStore/28598ac3-434a-402d-b731-b97331d624c9", "selectable" : true }

      ,

      { "type": "cm:category", "parentType": "cm:cmobject", "isContainer": false, "name": "test4", "title": "", "description": "", "modified": "2013-01-17T13:23:42.885Z", "modifier": "admin", "displayPath": "\/categories\/Tags", "nodeRef": "workspace://SpacesStore/c13debe0-8d6f-4338-b49d-f80d9b89e8a5", "selectable" : true }

      ,

      { "type": "cm:category", "parentType": "cm:cmobject", "isContainer": false, "name": "test5", "title": "", "description": "", "modified": "2013-01-17T13:24:06.893Z", "modifier": "admin", "displayPath": "\/categories\/Tags", "nodeRef": "workspace://SpacesStore/5fd80b03-54c9-4a90-8eff-0bff4d45d27c", "selectable" : true }

      ]
      }
      }

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs (Inactive)
                Reporter:
                mrodriguez Miguel Rodriguez
              • 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 - 1 day, 3 hours
                  1d 3h

                    Structure Helper Panel