Bug 1222019 - Missing text in context menu items
Summary: Missing text in context menu items
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: Directory Console
Version: 10.0
Hardware: All
OS: Linux
high
medium
Target Milestone: DS10.0
: ---
Assignee: Rich Megginson
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-15 13:47 UTC by Viktor Ashirov
Modified: 2015-06-12 01:04 UTC (History)
2 users (show)

Fixed In Version: redhat-ds-console-10.0.0-3.el7dsrv
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-12 01:04:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Context menu (47.35 KB, image/png)
2015-05-15 13:47 UTC, Viktor Ashirov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1094 0 normal SHIPPED_LIVE Red Hat Directory Server bug fix and enhancement update 2015-06-12 05:02:14 UTC

Description Viktor Ashirov 2015-05-15 13:47:51 UTC
Created attachment 1025883 [details]
Context menu

Description of problem:
Some menu entries in context menu are missing text. See attached screenshot.

In the debug log there are multiple messages "ResourceSet:getString():Unable to resolve":

ContentMenuController.populateMenuCategory() adding <top> to Framework
ContentMenuController.populateMenuCategory() adding FILE to Framework
ResourceSet:getString():Unable to resolve menu-EditMove
ResourceSet:getString():Unable to resolve menu-EditMove-description
ResourceSet:getString():Unable to resolve menu-EditMovePaste
ResourceSet:getString():Unable to resolve menu-EditMovePaste-description
ContentMenuController.populateMenuCategory() adding EDIT to Framework
ContentMenuController.populateMenuCategory() adding VIEW to Framework
ResourceSet:getString():Unable to resolve menu-EditFindUG-description
ResourceSet:getString():Unable to resolve menu-EditMove
ResourceSet:getString():Unable to resolve menu-EditMove
ResourceSet:getString():Unable to resolve menu-EditMovePaste
ResourceSet:getString():Unable to resolve menu-EditMovePaste-description
ContentMenuController.populateMenuCategory() adding CONTEXT to context menu
ResourceSet:getString():Unable to resolve menu-EditFindUG-description
ContentMenuController.populateMenuCategory() adding OBJECT to Framework
ContentMenuController.populateMenuCategory() adding CONTEXTNEW to some menu
ContentMenuController.createNewRootEntryMenuItems()
ContentMenuController.createNewRootEntryMenuItems() the list is []
ContentMenuController.populateMenuCategory() adding CONTEXTNEWROOTENTRY to some menu
ContentMenuController.populateMenuCategory() adding context_setPWP to some menu
ContentMenuController.populateMenuCategory() adding OBJECTNEW to Framework
ContentMenuController.populateMenuCategory() adding OBJECTNEWROOTENTRY to Framework
ContentMenuController.populateMenuCategory() adding object_setPWP to Framework
ContentMenuController.populateMenuCategory() adding DISPLAY to Framework
ResourceSet:getString():Unable to resolve menu-nodeleafview-description
ResourceSet:getString():Unable to resolve menu-onlytreeview-description
ResourceSet:getString():Unable to resolve menu-attributeview-description
ContentMenuController.populateMenuCategory() adding LAYOUT to Framework
ContentMenuController.createPartitionViewMenuItems()
ContentMenuController.populateMenuCategory() adding PARTITIONVIEW to Framework
CreateVLVIndex.indexStatus(): dc=example,dc=com

Version-Release number of selected component (if applicable):
389-admin-1.1.40-1.el7dsrv.x86_64
389-admin-console-1.1.10-1.el7dsrv.noarch
389-adminutil-1.1.22-1.el7dsrv.x86_64
389-console-1.1.8-1.el7dsrv.noarch
389-ds-base-1.3.3.1-13.el7.x86_64
389-ds-base-libs-1.3.3.1-13.el7.x86_64
389-ds-console-1.2.12-1.el7dsrv.noarch
idm-console-framework-1.1.13-1.el7dsrv.noarch
redhat-idm-console-10.0.0-1.el7dsrv.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Run redhat-idm-console
2. Open DS window
3. Click on Directory tab
4. Right click on an item.

Comment 1 Noriko Hosoi 2015-05-16 00:10:33 UTC
These should work...  These are introduced with "move" operation (modrdn with newsuperior).  My local build works fine.  Need to investigate... 

egrep menu-EditMove *properties
dirserv.properties:menu-EditMove=M&ove
dirserv.properties:menu-EditMove-description=Move it to the clipboard
dirserv.properties:menu-EditMovePaste=MovePas&te
dirserv.properties:menu-EditMovePaste-description=Move object from clipboard

Please note that the other "Unable to resolve" items are not regression (lower priority).

Comment 2 Viktor Ashirov 2015-05-20 16:47:51 UTC
After investigation it appears, that we need to rebuild redhat-ds-console package. 
redhat-ds-console-10.0.0-1.el7dsrv doesn't provide redhat-ds-10.0.0_en.jar with new dirserv.properties file, which was updated for 389-ds-console.

Comment 3 Viktor Ashirov 2015-05-20 17:00:01 UTC
I rebuild redhat-ds-console using rpmbuild and installed new rpm. Can confirm that after rebuild menu entries have text.

Comment 4 Noriko Hosoi 2015-05-27 22:03:10 UTC
I rebuilt redhat-ds-console-10.0.0-2.el7dsrv...

Comment 6 Viktor Ashirov 2015-05-29 15:28:12 UTC
Unfortunately, new build doesn't contain new strings:

$ rpm -qa | grep redhat-ds-console
redhat-ds-console-10.0.0-2.el7dsrv.noarch
redhat-ds-console-doc-10.0.0-2.el7dsrv.noarch

$ unzip /usr/share/dirsrv/html/java/redhat-ds-10.0_en.jar 
Archive:  /usr/share/dirsrv/html/java/redhat-ds-10.0_en.jar
  inflating: META-INF/MANIFEST.MF    
   creating: com/
   creating: com/netscape/
   creating: com/netscape/admin/
   creating: com/netscape/admin/dirserv/
  inflating: com/netscape/admin/dirserv/alias.properties  
  inflating: com/netscape/admin/dirserv/dirserv-help.properties  
  inflating: com/netscape/admin/dirserv/dirserv-skin.properties  
  inflating: com/netscape/admin/dirserv/dirserv.properties  
   creating: com/netscape/admin/dirserv/images/
  inflating: com/netscape/admin/dirserv/images/dsbanner.gif  
   creating: com/netscape/admin/dirserv/panel/
   creating: com/netscape/admin/dirserv/panel/replication/
  inflating: com/netscape/admin/dirserv/panel/replication/replication.properties  
   creating: com/netscape/admin/dirserv/propedit/
  inflating: com/netscape/admin/dirserv/propedit/propedit.properties  
   creating: com/netscape/admin/dirserv/wizard/
  inflating: com/netscape/admin/dirserv/wizard/wizard.properties  

$ grep -R -c EditMove .
./META-INF/MANIFEST.MF:0
./com/netscape/admin/dirserv/alias.properties:0
./com/netscape/admin/dirserv/dirserv-help.properties:0
./com/netscape/admin/dirserv/dirserv-skin.properties:0
./com/netscape/admin/dirserv/dirserv.properties:0
./com/netscape/admin/dirserv/images/dsbanner.gif:0
./com/netscape/admin/dirserv/panel/replication/replication.properties:0
./com/netscape/admin/dirserv/propedit/propedit.properties:0
./com/netscape/admin/dirserv/wizard/wizard.properties:0

Comment 7 Noriko Hosoi 2015-06-01 23:54:03 UTC
It turned out packaging redhat-ds-console is not picking up the latest 389-ds-console, which contains the right dirserv.properties.

I explicitely set the latest version 1.2.12 to the BuildRequires dependency:
@@ -22,7 +22,7 @@ Source: %{name}-%{version}.tar.bz2
 Requires: %{shortname}-admin
 Requires: 389-ds-console
 BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: 389-ds-console
+BuildRequires: 389-ds-console >= 1.2.12
 BuildRequires: 389-ds-console-doc

Then, the scratch build fails:
http://download.devel.redhat.com/brewroot/work/tasks/9521/9289521/mock_output.log
Getting requirements for redhat-ds-console-10.0.0-3.el7dsrv.src
 --> 1:java-1.7.0-openjdk-devel-1.7.0.75-2.5.4.2.el7_0.i686
Error: No Package found for 389-ds-console >= 1.2.12

Note that 389-ds-console-1.2.12-1.el7dsrv was built in brew:
https://brewweb.devel.redhat.com/buildinfo?buildID=429942

Asking the release engineering team for help...
[engineering.redhat.com #354730] AutoReply: Please help: redhat-ds-console
https://engineering.redhat.com/rt/Ticket/Display.html?id=354730

Comment 8 Noriko Hosoi 2015-06-02 21:50:25 UTC
The issue described in Comment 7 was fixed by kwright (Thanks, Kevin!)

Comment 10 Viktor Ashirov 2015-06-05 08:39:45 UTC
Build tested: redhat-ds-console-10.0.0-3.el7dsrv.noarch

Latest build contains new strings:

$ grep -R -c -o EditMove .
./META-INF/MANIFEST.MF:0
./com/netscape/admin/dirserv/alias.properties:0
./com/netscape/admin/dirserv/dirserv-help.properties:0
./com/netscape/admin/dirserv/dirserv-skin.properties:0
./com/netscape/admin/dirserv/dirserv.properties:4 <====
./com/netscape/admin/dirserv/images/dsbanner.gif:0
./com/netscape/admin/dirserv/panel/replication/replication.properties:0
./com/netscape/admin/dirserv/propedit/propedit.properties:0
./com/netscape/admin/dirserv/wizard/wizard.properties:0

And I can see them in the context menu. Marking as VERIFIED.

Comment 12 errata-xmlrpc 2015-06-12 01:04:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2015:1094


Note You need to log in before you can comment on or make changes to this bug.