Bug 1037861 - rhevm-dwh-setup doesn't check for valid read-only username
Summary: rhevm-dwh-setup doesn't check for valid read-only username
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-dwh
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.3.0
Assignee: Itamar Heim
QA Contact: Barak Dagan
URL:
Whiteboard: integration
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-03 23:46 UTC by John Call
Modified: 2014-01-21 15:03 UTC (History)
6 users (show)

Fixed In Version: rhevm-dwh-3.3.0-25.el6ev.noarch.rpm
Doc Type: Bug Fix
Doc Text:
rhevm-dwh-setup now checks for valid names when creating a read-only user. The user name can only include alphanumeric characters, otherwise an error message appears.
Clone Of:
Environment:
Last Closed: 2014-01-21 15:03:51 UTC
oVirt Team: ---
Target Upstream Version:


Attachments (Terms of Use)
error log from rhevm-dwh-setup (22.04 KB, text/plain)
2013-12-03 23:46 UTC, John Call
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0036 0 normal SHIPPED_LIVE rhevm-dwh 3.3 bug fix and enhancement update 2014-01-21 19:53:35 UTC

Description John Call 2013-12-03 23:46:24 UTC
Created attachment 832329 [details]
error log from rhevm-dwh-setup

Description of problem:
  The 'rhevm-dwh-setup' utility prompts for a read-only username, but doesn't verify that the username will be accepted by the database.  Specifically, usernames with an hyphen "-" are accepted, but cause the utility to fail (e.g. username="rhevm-ro".

Version-Release number of selected component (if applicable):
  3.3 -- rhevm-dwh-3.3.0-21.el6ev.noarch

How reproducible:
  Run the rhevm-dwh-setup utility, answer yes to creating a read-only user, and supply the username "rhevm-ro"

Actual results:
  Creating read-only user = ERROR  

Expected results:
  rhevm-dwh-setup should verify that the provided data is valid.  If the data is invalid, such as containing a hyphen which will cause postgresql to fail, a message should be written to the screen, and the user should be prompted for new data.

Additional info:
  Please see attached file, error message is located at the end of the file.

Comment 2 Barak Dagan 2013-12-18 10:54:39 UTC
verified in is27, rhevm-dwh-3.3.0-25.el6ev.noarch

Provide a username for read-only user : rhev-ro
Error: user name can only include alphanumeric characters

Comment 5 errata-xmlrpc 2014-01-21 15:03:51 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.

http://rhn.redhat.com/errata/RHBA-2014-0036.html


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