This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Missing URL credentials from subrepository URL, Netbeans infinitely asks for user credentials | ||
---|---|---|---|
Product: | versioncontrol | Reporter: | styu_ <styu_> |
Component: | Mercurial | Assignee: | Ondrej Vrabec <ovrabec> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
styu_
2013-01-19 10:36:24 UTC
Mercurial asks for the credentials of the subrepository when using the command line tool as well (and the credentials are missing from the URL just as in the Netbeans output window), so maybe the infinite asking for the credentials is the only issue in Netbeans. Found a workaround. Add the following to mercurial.ini or to .hgrc (domaincom could be anything, it just groups the prefix with the username and password): [auth] domaincom.prefix = https://domain.com domaincom.username = user domaincom.password = password How does it work in commandline? When you run hg push --repository /var/webpages/project https://user:pwd@domain.com/project, what do you get as the output? Does it push without any questions? It rewrites the subrepository url, so the credentials are missing from it, and the command line tool asks for the credentials once, for the subrepository. The subrepository url is set in the ".hgsub" file in this format: private/subproject = https://user:password@domain.com/subproject Here is the output: pushing to https://user:***@domain.com/project pushing subrepo private/subproject to https://domain.com/subproject http authorization required realm: Mercurial Repositories user: user password: password searching for changes no changes found searching for changes no changes found If I trying to push within Netbeans, then Netbeans asks for the credentials once with empty user and password, then again and again with already filled username but empty password. The .hgrc [auth] workaround is working in Netbeans and in the command line as well (so there is no need for the credentials in the URL and mercurial and Netbeans doesn't asks for them). This way push and pull are working fine within Netbeans! Unfortunately i cannot fix it. mercurial push command does not accept credentials for subrepository and we have no way to pass the subrepo's credentials to it. So the only way seems to be modify .hgrc and set the credentials there manually by user. I could try to detect this scenario, display a warning mesage in that case and point to a proper www URL describing this workaround |