[ http://jira.codehaus.org/browse/CONTINUUM-651?page=all ] Emmanuel Venisse closed CONTINUUM-651: --------------------------------------
Resolution: Fixed Fix Version: 1.0.3 code in trunk isn't the latest. I must merge code from continuum-1.0.x branch. > DefaultContinuumScm.getScmRepository should not set project scm > username/password if they are the empty string > -------------------------------------------------------------------------------------------------------------- > > Key: CONTINUUM-651 > URL: http://jira.codehaus.org/browse/CONTINUUM-651 > Project: Continuum > Type: Bug > Components: Core system > Reporter: John Didion > Assignee: Emmanuel Venisse > Fix For: 1.0.3 > > > Should be using StringUtils.isEmpty instead of doing a null check. > {noformat} > if ( !StringUtils.isEmpty(project.getScmUsername()) ) > { > providerRepository.setUser( project.getScmUsername() ); > if ( project.getScmPassword() != null ) > { > providerRepository.setPassword( project.getScmPassword() ); > } > else > { > providerRepository.setPassword( "" ); > } > } > {noformat} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira