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.
When you select http or https in the Clone Other wizard you see a Username and Password field. Entering information into them has no effect. The UI is there but the information is not being passed onto the hg commands. This needs to be implemented. Release note.
Further investigation: HTTPS authorisation is only supported in Mercurial from the console. It is not supported in non interactive mode, so there is no way for us to pass a username and password from within the plug-in: /usr/lib/python2.4/vendor-packages/mercurial/httprepo.py : if not self.ui.interactive: raise util.Abort(_('http authorization required')) So we will disable https support from the Clone Other and Push/Pull commands. Users then have the choice of accessing a repository via http or ssh. With ssh you need to connect to the repository from the command line or other ssh utility to cache the server certificate on the client, once this has been done the plug-in can connect to the ssh repository without requiring any further user interaction.
Created attachment 53234 [details] propsoed patch
The attached patch removes refreence to https and iusername and password fields.
Created attachment 53245 [details] Updated patch
There was an error in the original patch in that it still displayed the username label. This is corrected in the updated patch.
bash-3.2$ cat ~/output IDE:------------------------------------------------- IDE: [11/20/07 2:44 PM] Committing Files started Checking in Repository.java; /shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/ui/repository/Repository.java,v <-- Repository.java new revision: 1.12; previous revision: 1.11 done Checking in Bundle.properties; /shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/ui/repository/Bundle.properties,v <-- Bundle.properties new revision: 1.6; previous revision: 1.5 done IDE: [11/20/07 2:44 PM] Committing Files finished
Reopening this as it is possible to send username password as part of the URL for HTTP and Hg will accept it. http://[user[:password]@]host[:port]/[path] Currently entering this into the clone wizard you get: "Cannot access the repository" for this pattern. This is due to a validation failure in the RepositoryStepProgress.perform() code, which is returning -1 for the HttpURLConnection con.getResponseCode()
Created attachment 54208 [details] Proposed patch
Committed to Head.
Removing release601_fixes_candidate1 status-whiteboard since this fix was included as part of Hg respin (which was released together with patch1).