[MNT-15489] newly created category item in Category Manager does not display immediately and have incorrect message display for Solr4 Created: 13-Jan-16  Updated: 01-Nov-19  Resolved: 29-Jan-16

Status: Closed
Project: Service Packs and Hot Fixes
Component/s: Admin Console (Share), Tags and Categories
Affects Version/s:, 5.0.2
Fix Version/s: 5.0.4

Type: Service Pack Request
Reporter: Seng Liaw Assignee: Closed Bugs (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: 2 hours
Original Estimate: Not Specified

Database: MySQL
App Server: Tomcat
Mobile Version: Not Applicable

Attachments: PNG File SOLR.png     PNG File SOLR4.png     PNG File addition.png     PNG File deletion.png    
Issue Links:
Bug Priority:
Category 4
ACT Numbers:

00584652 , 00590307

Build Location: https://releases.alfresco.com/Enterprise-5.0/5.0.4/build-00030/ALL/


Steps to Replicate

  1. In Alfresco One v5.0.2.5 Share UI, login as admin user.
  2. Navigate to Admin Tools> Categorry Manager
  3. Hover on 'Category Root' and click on the + to add a new category item
  4. Add a category name and click on 'OK'.
  5. A "Successfully Added Category" message is displayed.
    • Actual: New category is not visible in the list immediately.
    • Expected: New category is visible in the list immediately.
  6. Workarounds: User need to manually refresh the browser and the new category now appears in the list. You can also click on another "Tool" and then go back to the "Category Manager" and the new category will also appear.

UPDATE on Jan 25, 2016:
Another customer reported incorrect message display when create/edit/delete category from Category Manager when Solr4 subsystem in used. This appears to be a bug that misleading the originally reported behavior as buggy when using Solr4 and create new category in 5.x*

  • Expected: For Solr4, message "New category successfully queued with SOLR4 for addition. Please note that it may take a few moments until it is added; you will need to refresh to see the change once it has been actioned" should display.
  • Actual: For Solr4, message "Successfully Added Category" is displayed, which is incorrect.

Current workaround:
manually updated the three Create/Edit/Delete category webscripts:

  • org/alfresco/repository/category/category.delete.js
  • org/alfresco/repository/category/category.post.json.js
  • org/alfresco/repository/category/category.put.json.js

And replace this piece of code:
// The message depends on the search service in use
var messageKey = "message.removeCategory.success";
if (search.searchSubsystem == "solr")

{ messageKey = "message.removeCategory.solr.success"; }

by :
if (search.searchSubsystem == "solr" || search.searchSubsystem == "solr4")

Generated at Wed Sep 30 10:54:01 BST 2020 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.