Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster dev » Re: [buckminster-dev] CVS authentication issue...
Re: [buckminster-dev] CVS authentication issue... [message #15133] Tue, 08 April 2008 22:16
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
Hi Todd,
from the stacktrace and looking at the source of the Eclipse CVS client,
I can conclude that one unsuccessful authentication attempt has been
made prior to when the dialog pops up. In essence, this is the flow:

1. The cvs client creates a CVSRepositoryLocation instance with a fixed
user/password (from the information provided in your rmap)
2. The client makes an attempt to login and fails
3. The client now asks for "user info" using a dialog popup.
4. You enter some values but the client refuses them with an
UnsupportedOperationException since it was created with a fixed
user/password.

So there are two issues here really. The first is that, for some reason,
the first authentication fails using your credentials. The second is
that the CVSRepositoryLocation promts the user for a new
username/password although it already knows that it will reject it. I
entered that as a bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=226211 on the CVS client.

- thomas

Todd_Lee@amis.com wrote:
> So I'm back to our autobuild efforts after a brief hiatus and I've run up
> against the following...
>
> Before I shelved our project, I had our rmap set up with CVS providers
> where the URI is of the form - :pserver:user:password@host...
> The resolution worked, but now that I'm back at it I'm finding that with
> the latest buckminster update:
>
> Core 1.0.0.r09041
> CVS 1.0.0.r09008
>
> I'm getting a CVS authentication popup, and when I enter the password (same
> as is hardcoded in the RMAP) I get
> an 'UnsupportedOperationException' error. If I take the hardcoded password
> out, I get the popup again (as I would expect) but I also get the same
> exception. Here's the log:
>
>
> !ENTRY org.eclipse.buckminster.core 0 293 2008-04-08 17:11:32.680
> !MESSAGE nvmd:buckminster: Using resolver rmap
>
> !ENTRY org.eclipse.buckminster.core 0 293 2008-04-08 17:11:32.759
> !MESSAGE nvmd:buckminster: Using resource map
> http://host/ide/updates/dev/test.rmap
>
> !ENTRY org.eclipse.buckminster.core 0 293 2008-04-08 17:11:32.774
> !MESSAGE nvmd:buckminster: Using search path nvmd.root
>
> !ENTRY org.eclipse.buckminster.core 0 293 2008-04-08 17:11:32.805
> !MESSAGE nvmd:buckminster: Trying provider
> cvs(:pserver:user@host:/usr/local/share/projects/cvsrep,path/to/module/code/{2})
>
> !ENTRY org.eclipse.buckminster.core 0 293 2008-04-08 17:11:32.821
> !MESSAGE nvmd:buckminster: trunk/head will be searched
>
> !ENTRY org.eclipse.buckminster.core 2 293 2008-04-08 17:11:37.946
> !MESSAGE java.lang.UnsupportedOperationException
> !STACK 0
> java.lang.UnsupportedOperationException
> at
> org.eclipse.team.internal.ccvs.core.connection.CVSRepository Location.setPassword(CVSRepositoryLocation.java:922)
> at
> org.eclipse.team.internal.ccvs.ui.WorkbenchUserAuthenticator .promptForUserInfo(WorkbenchUserAuthenticator.java:92)
> at
> org.eclipse.team.internal.ccvs.core.connection.CVSRepository Location.promptForUserInfo(CVSRepositoryLocation.java:812)
> at
> org.eclipse.team.internal.ccvs.core.connection.CVSRepository Location.openConnection(CVSRepositoryLocation.java:763)
> at
> org.eclipse.team.internal.ccvs.core.client.Session.open(Sess ion.java:159)
> at
> org.eclipse.buckminster.cvspkg.internal.CVSSession.getReader Session(CVSSession.java:104)
> at
> org.eclipse.buckminster.cvspkg.internal.RepositoryMetaData.g etMetaData(RepositoryMetaData.java:142)
> at
> org.eclipse.buckminster.cvspkg.internal.VersionFinder.getMet aData(VersionFinder.java:50)
> at
> org.eclipse.buckminster.cvspkg.internal.VersionFinder.getTru nk(VersionFinder.java:83)
> at
> org.eclipse.buckminster.core.version.AbstractSCCSVersionFind er.getBestTrunkMatch(AbstractSCCSVersionFinder.java:333)
> at
> org.eclipse.buckminster.core.version.AbstractSCCSVersionFind er.getBestVersion(AbstractSCCSVersionFinder.java:155)
> at
> org.eclipse.buckminster.core.rmap.model.Provider.findMatch(P rovider.java:211)
> at
> org.eclipse.buckminster.core.rmap.model.SearchPath.getProvid er(SearchPath.java:104)
> at
> org.eclipse.buckminster.core.rmap.model.ResourceMap.resolve( ResourceMap.java:166)
> at
> org.eclipse.buckminster.core.resolver.ResourceMapResolver.in nerResolve(ResourceMapResolver.java:244)
> at
> org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.re solve(ResolverNodeWithJob.java:214)
> at
> org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.ru n(ResolverNodeWithJob.java:94)
> at
> org.eclipse.buckminster.core.resolver.ResolverNodeWithJob$No deResolutionJob.run(ResolverNodeWithJob.java:49)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> !ENTRY org.eclipse.buckminster.core 4 293 2008-04-08 17:11:37.977
> !MESSAGE ERROR [0001] : java.lang.UnsupportedOperationException
>
>
> NOTE: Here's the searchpath that it's hitting from my RMAP
>
> <searchPath name="nvmd.root">
> <provider readerType="cvs" componentTypes="buckminster"
> mutable="true" source="true">
> <uri
> format=":pserver:user@host:/usr/local/share/projects/cvsrep,path/to/module/code/{2}">
> <bc:propertyRef key="user.name" /><!-- unused -->
> <bc:propertyRef key="user.pass" /><!-- unused -->
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
> </searchPath>
>
>
> I've got a buckminster.cspec sitting in the CVS repository at:
> path/to/module/code/nvmd/buckminster.cspec
>
> So it should be finding it alright...
>
> Any suggestions?
> Thanks
>
>
> Todd Lee
> Software Tools
> ON Semiconductor
> Tel: +1.519.884.9696 ext 2242
> Fax: +1.519.884.0228
> E-mail: todd_lee@amis.com
>
> _______________________________________________
> buckminster-dev mailing list
> buckminster-dev@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/buckminster-dev
>
Previous Topic:[buckminster-dev] CVS authentication issue...
Next Topic:Re: [buckminster-dev] CVS authentication issue...
Goto Forum:
  


Current Time: Sat Oct 25 10:14:06 GMT 2014

Powered by FUDForum. Page generated in 0.01712 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software