Bug 1094163 - PortalSetupCommand does not ensure that initialpassword is written on a new line
Summary: PortalSetupCommand does not ensure that initialpassword is written on a new line
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise Portal Platform 6
Classification: JBoss
Component: Portal
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER02
: 6.2.0
Assignee: Peter Palaga
QA Contact: Marek Baluch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-05 08:09 UTC by Peter Palaga
Modified: 2015-08-03 07:52 UTC (History)
1 user (show)

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.
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GTNPORTAL-3469 0 Major Resolved PortalSetupCommand does not ensure that initialpassword is written on a new line 2015-07-31 09:31:07 UTC

Description Peter Palaga 2014-05-05 08:09:57 UTC
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 08:10:23 UTC
The fix was merged in inupstream https://github.com/gatein/gatein-portal/commit/1c722a1ee8c9bb8e12a62e9ca8fd434184a5bc57

Comment 3 Petr Mensik 2014-05-26 11:57:36 UTC
I verified it's ok now.


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