Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1006917

Summary: Failed repository clone with user and password give plaintext view password in popup and logs
Product: [Retired] JBoss BPMS Platform 6 Reporter: Eric D. Schabell <eschabel>
Component: Business CentralAssignee: Alexandre Porcelli <porcelli>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Livora <tlivora>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: etirelli, porcelli, rrajasek
Target Milestone: ER4   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:13:33 UTC Type: Bug
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:    
Bug Blocks: 1006308    
Attachments:
Description Flags
error popup with plaintext password none

Description Eric D. Schabell 2013-09-11 13:48:11 UTC
Created attachment 796383 [details]
error popup with plaintext password

Description of problem:
When git repository is cloned incorrectly with a password specified, umasked password is shown in error message and logs

Version-Release number of selected component (if applicable):
ER2

How reproducible:
Clone a repo with a bad GIT URI and user and password.

Steps to Reproduce:
1. Clone repository
2. fill in invalid GIT URI
3. fill in user and password
4. submit

Actual results:
Pop up with plain text password and in logs, see below for log message.

Expected results:
No passwords plain text anywhere.

Additional info: (error in logs)
09:43:54,022 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) Message: CommandType=createRepository:java.lang.String:java.lang.String:java.util.Map:, ErrorTo=org.uberfire.backend.repositories.RepositoryService:RPC.createRepository:java.lang.String:java.lang.String:java.util.Map::Errors:16, ReplyTo=org.uberfire.backend.repositories.RepositoryService:RPC.createRepository:java.lang.String:java.lang.String:java.util.Map::RespondTo:16, ToSubject=org.uberfire.backend.repositories.RepositoryService:RPC, MethodParms=[git, testvalidateurl, {username=erics, origin=http://www.schabell.org/fun.git, crypt:password=damnitisplaintext}]

Comment 2 Alexandre Porcelli 2013-09-17 14:35:42 UTC
Fixed on UberFire  master and 0.3.x branches:

https://github.com/droolsjbpm/uberfire/commit/02f718600
https://github.com/droolsjbpm/uberfire/commit/f88cdcdb0

Comment 5 Tomas Livora 2013-10-18 08:58:40 UTC
Verified on BPMS 6.0.0.ER4