Bug 13823

Summary: fetch2: PREMIRROR and SRC_URI with users on both url yields invalid username
Product: [Build System, Metadata & Runtime] BitBake Reporter: Riccardo Cusatelli <riccardocusatelli>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: akuster, poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 4.0 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Riccardo Cusatelli 2020-03-03 00:07:05 UTC
If both SRC_URI and PREMIRRORS have a username on path, with @, the resulting user is the append.

Ex:
SRC_URI = git://userA@ssh.mygitserver.com/repo 
PREMIRROR = ftp://userB:pass@ftp.myftpserver.com/

The resulting access to PREMIRROR ftp is:
ftp://userAuserB:pass@ftp.myftpserver.com