Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 588375
Summary: | CA Setup Wizard cannot create new Security Domain if locale not en_US | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Dogtag Certificate System | Reporter: | Rob Crittenden <rcritten> | ||||||||
Component: | Installation Wizard | Assignee: | John Dennis <jdennis> | ||||||||
Status: | CLOSED WORKSFORME | QA Contact: | Ben Levenson <benl> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | high | ||||||||||
Version: | 1.3 | CC: | dpal, jdennis, jgalipea, jmagne, mharmsen, o.burtchen | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | 441974 | Environment: | |||||||||
Last Closed: | 2015-09-28 17:29:27 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | 441974 | ||||||||||
Bug Blocks: | 541012 | ||||||||||
Attachments: |
|
Comment 2
John Dennis
2010-06-18 21:28:34 UTC
I have implemented and tested both solutions (either renaming the files in the source tree or renaming them via ant. If we want to rename in the source tree then: % svn move LogMessages_en.properties LogMessages.properties % svn move UserMessages_en.properties UserMessages.properties Index: base/common/build.xml =================================================================== --- base/common/build.xml (revision 1111) +++ base/common/build.xml (working copy) @@ -130,8 +130,8 @@ </jar> <jar jarfile="${build.jars}/cmsbundle.jar"> <fileset dir="${src.dir}"> - <include name="LogMessages_en.properties"/> - <include name="UserMessages_en.properties"/> + <include name="LogMessages.properties"/> + <include name="UserMessages.properties"/> </fileset> </jar> <echo message="${end.build.jars.log.message}"/> If we want to retain the existing file names but have ant install both the base family and the locale specfic files, then: Index: base/common/build.xml =================================================================== --- base/common/build.xml (revision 1111) +++ base/common/build.xml (working copy) @@ -128,9 +128,13 @@ <include name="com/netscape/cmscore/**"/> </fileset> </jar> + <copy file="${src.dir}/LogMessages.properties" tofile="${src.dir}/LogMessages_en.properties"/> + <copy file="${src.dir}/UserMessages.properties" tofile="${src.dir}/UserMessages_en.properties"/> <jar jarfile="${build.jars}/cmsbundle.jar"> <fileset dir="${src.dir}"> + <include name="LogMessages.properties"/> <include name="LogMessages_en.properties"/> + <include name="UserMessages.properties"/> <include name="UserMessages_en.properties"/> </fileset> </jar> Created attachment 425257 [details]
patch if rename in svn
Created attachment 425258 [details]
patch if ant installs copy
I agree with changing the filenames will solve the problem. But as I described in Bug 583177 there is one more to rename. Package: dogtag-pki-console-ui File: build.xml -pki-console-theme-${version}_en.jar +pki-console-theme-${version}.jar File: dogtag-pki-console-ui.spec -ln -s pki-console-theme-%{version}_en.jar pki-console-theme_en.jar +ln -s pki-console-theme-%{version}.jar pki-console-theme.jar -ln -s ../pki-console-theme_en.jar cms-theme_en.jar +ln -s ../pki-console-theme.jar cms-theme.jar Package: pki-console File: templates/pki_console_wrapper -pki-console-theme_en.jar +pki-console-theme.jar -cms-theme_en.jar +cms-theme.jar Best regards, Oli Hi Oli: Could you please describe why the jar files need to be renamed as well? Specifically what problems did you see because of the jar file names? I have not been able to reproduce any failures when the locale is not en_US related to the jar names. Created attachment 426908 [details]
rename LogMessages & UserMessages property files
This patch fixes the resource bundle names by renaming the files in SVN and updating the ant build.xml file to use the new names.
Oli has commented on the bug and asserted that is not sufficient and that some of the jar files also need to be renamed. I have not been able to find a logical reason for why a jar file with _en in it's base name would be a problem. Nor have I been able to reproduce any failures during installation, runtime, and with pkiconsole when both the system locale and user locale are de_DE (other than the problem with the resource bundle names).
My suggestion at the moment is to just fix the resource bundle names with this patch. Later if we identify and understand why the jar names would produce a failure when can produce a new patch to address that issue.
attachment (id=426908) +mharmsen Installation successful with IPA v2 HEAD against pki-common-1.3.8-1.fc12.noarch after using system-config-language to set the locale to fr_FR. |