Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1094163 - PortalSetupCommand does not ensure that initialpassword is written on a new line
PortalSetupCommand does not ensure that initialpassword is written on a new line
Status: VERIFIED
Product: JBoss Enterprise Portal Platform 6
Classification: JBoss
Component: Portal (Show other bugs)
6.2.0
Unspecified Unspecified
unspecified Severity unspecified
: ER02
: 6.2.0
Assigned To: Peter Palaga
Marek Baluch
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-05 04:09 EDT by Peter Palaga
Modified: 2015-08-03 03:52 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
A bug in the portal-setup.sh tool caused issues with setting the root password if configuration.properties was not terminated by a new line. The portal-setup.sh tool now ensures a new line is appended to the end of configuration.properties before adding the initial root password.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker GTNPORTAL-3469 Major Resolved PortalSetupCommand does not ensure that initialpassword is written on a new line 2015-07-31 05:31:07 EDT

  None (edit)
Description Peter Palaga 2014-05-05 04:09:57 EDT
The portal-setup.sh tool does not set the initial root password properly. 

Version-Release number of selected component (if applicable):
JBoss Portal 6.2.0.ER1

How reproducible:
Always


Steps to Reproduce:
Steps to reproduce:
(1) Ensure that $JBOSS_HOME/standalone/configuration/gatein/configuration.properties do not contain gatein.portal.setup.initialpassword.root in any form: commented or active.
(2) Ensure that the last key value pair is not terminated with a new line character
(3) run $JBOSS_HOME/bin/portal-setup.sh -p "secret" 
Not OK: The configuration.properties file ends with
Unable to find source-code formatter for language: plain. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
# Logged user keep alive
gatein.webui.keepalive.enabled=true
gatein.webui.keepalive.interval=60000gatein.portal.setup.initialpassword.root=6MSyXIj3kkQ= # Modified by portal-setup.sh
Expected:
Unable to find source-code formatter for language: plain. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
# Logged user keep alive
gatein.webui.keepalive.enabled=true
gatein.webui.keepalive.interval=60000
gatein.portal.setup.initialpassword.root=6MSyXIj3kkQ= # Modified by portal-setup.sh
Comment 1 Peter Palaga 2014-05-05 04:10:23 EDT
The fix was merged in inupstream https://github.com/gatein/gatein-portal/commit/1c722a1ee8c9bb8e12a62e9ca8fd434184a5bc57
Comment 3 Petr Mensik 2014-05-26 07:57:36 EDT
I verified it's ok now.

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