Bug 235718 - [nls] Missing PII Strings in dstore.security / UniversalSecurityProperties
Summary: [nls] Missing PII Strings in dstore.security / UniversalSecurityProperties
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P1 normal (vote)
Target Milestone: 3.0 RC4   Edit
Assignee: David McKnight CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: PII
Depends on: 235626
Blocks:
  Show dependency tree
 
Reported: 2008-06-04 17:31 EDT by Martin Oberhuber CLA
Modified: 2008-06-09 13:31 EDT (History)
2 users (show)

See Also:
mober.at+eclipse: pmc_approved+
ddykstal.eclipse: review+
mober.at+eclipse: review+


Attachments
patch to bring back original property values (2.15 KB, patch)
2008-06-06 10:46 EDT, David McKnight CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2008-06-04 17:31:31 EDT
Found while working on bug 235626:

In org.eclipse.rse.dstore.security plugin, UniversalSecurityProperties, externalized Strings are missing. This had not been discovered before, because all of the Strings had been addressed incorrectly; this is now being fixed with bug 235626.

I dreamed up some default messages for the missing PII Keys, but I think that these should really be replaced with the proper messages from existing IBM product(s). The missing keys are in UniversalSecurityProperties.properties:

# FIXME MISSING STRINGS START	
RESID_SECURITY_ALGORITHM_ERROR_     = Algorithm error in Keystore %1
RESID_SECURITY_LOAD_KEYSTORE_ERROR_ = An error occurred when processing Keystore.
RESID_SECURITY_KEY_LOAD_ERROR_      = Error loading key from %1
RESID_SECURITY_INITIALIZE_ERROR_    = Error initializing keystore at %1
RESID_SECURITY_SECURITY_PROVIDER_ERROR_ = Missing Security Provider
# FIXME MISSING STRINGS END	

Note again, that the messages here were just dreamed up by me and are likely NOT correct. All messages can only occur in error messages; I did not check, though, under what circumstances the corresponding exceptions are thrown and/or if they even can ever get thrown.

Note that before the fix from bug 235626, existing behavior would have replaced the NLS MEssage with its key, so instead of a proper error message users would have read RESID_SECURITY_KEY_LOAD_ERROR without a message substitution.

-----------Enter bugs above this line-----------
TM 3.0RC2 testing
------------------------------------------------
Comment 1 David Dykstal CLA 2008-06-04 18:40:26 EDT
Dave M --

I'm assigning to you. Please fix these ASAP after the patch containing them is committed. There is one last PII translation and these can make that shipment. I can review. Since this is a properties file there is not much risk in putting these in RC4, but I want them in the nightly build by Thursday evening.
Comment 2 David McKnight CLA 2008-06-05 16:29:40 EDT
(In reply to comment #1)
> Dave M --
> I'm assigning to you. Please fix these ASAP after the patch containing them is
> committed. There is one last PII translation and these can make that shipment.
> I can review. Since this is a properties file there is not much risk in putting
> these in RC4, but I want them in the nightly build by Thursday evening.

What exactly needs to be done here?  I see that we do have these strings in the HEAD version:

# FIXME MISSING STRINGS START	
	RESID_SECURITY_ALGORITHM_ERROR_                  = Algorithm error in Keystore %1
	RESID_SECURITY_LOAD_KEYSTORE_ERROR_              = An error occurred when processing Keystore.
	RESID_SECURITY_KEY_LOAD_ERROR_                   = Error loading key from %1
	RESID_SECURITY_INITIALIZE_ERROR_                 = Error initializing keystore at %1
	RESID_SECURITY_SECURITY_PROVIDER_ERROR_          = Missing Security Provider
# FIXME MISSING STRINGS END	
Comment 3 Martin Oberhuber CLA 2008-06-05 16:45:39 EDT
Read the bug please: The Strings were invented by me and I have no idea whatsoever if they are correct. You'll need to check earlier versions of IBM products.
Comment 4 David McKnight CLA 2008-06-06 10:46:10 EDT
Created attachment 103963 [details]
patch to bring back original property values

Here is a patch with the original values.
Comment 5 Martin Oberhuber CLA 2008-06-06 10:52:43 EDT
Well, my Strings were not that bad after all :-)

That's a trivial fix affecting non-code only, so feel free to commit even without DaveD's review.

After committing, please perform Right-click > Source > Find Broken Externalized Strings... just to make sure. It somehow failed in my workspace, perhaps it works ok in yours.
Comment 6 David McKnight CLA 2008-06-06 11:07:34 EDT
I've committed the change to cvs.  Using Find Broken Externalized Strings, I get the following message:

Undefined keys in: UniversalSecurityProperties.java - org.eclipse.rse.internal.dstore.security

However, the message is on UniversalSecurityProperties with the following line (and that doesn't make much sense):		

 initializeMessages(BUNDLE_NAME, UniversalSecurityProperties.class);
Comment 7 Martin Oberhuber CLA 2008-06-06 11:14:35 EDT
Yes, that's what I've seen too. I tried to review and check a lot of things but couldn't find any real problem.