Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350324

Summary: Maven discovery fails to find extensions if user has credentials in secure storage for directory site
Product: z_Archived Reporter: Rich Seddon <rseddon>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: minor    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Screenshot showing secure storage location of repository.sonatype.org credentials none

Description Rich Seddon CLA 2011-06-24 15:26:30 EDT
This is a bit of a corner case (at least for the moment), but I have credentials stored in Eclipse secure storage under "org.eclipse.equinox.p2.repository" for the host "repostiory.sonatype.org".

If I attempt to open the M2E directory catalog this fails, a dialog reports that no extensions were found. 


 
Error log shows: 


org.eclipse.equinox.p2.core.ProvisionException: Unable to read repository at https://repository.sonatype.org/content/repositories/forge-sites/m2e-discovery-catalog/org.eclipse.m2e.discovery.oss-1.0.0-SNAPSHOT.jar.
at org.eclipse.equinox.internal.p2.discovery.compatibility.util.CacheManager.createCache(CacheManager.java:110)
at org.eclipse.equinox.internal.p2.discovery.compatibility.util.TransportUtil.downloadResource(TransportUtil.java:56)
at org.eclipse.equinox.internal.p2.discovery.compatibility.RemoteBundleDiscoveryStrategy$DownloadBundleJob.call(RemoteBundleDiscoveryStrategy.java:203)
at org.eclipse.equinox.internal.p2.discovery.compatibility.RemoteBundleDiscoveryStrategy$DownloadBundleJob.call(RemoteBundleDiscoveryStrategy.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.eclipse.equinox.security.storage.StorageException: No password provided.
at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getModulePassword(SecurePreferencesRoot.java:304)
at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getPassword(SecurePreferencesRoot.java:224)
at org.eclipse.equinox.internal.security.storage.SecurePreferences.get(SecurePreferences.java:262)
at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.get(SecurePreferencesWrapper.java:106)
at org.eclipse.equinox.internal.p2.repository.Credentials.forLocation(Credentials.java:157)
at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.getLastModified(RepositoryTransport.java:199)
at org.eclipse.equinox.internal.p2.discovery.compatibility.util.CacheManager.createCache(CacheManager.java:102)
... 8 more
Comment 1 Rich Seddon CLA 2011-06-24 15:27:31 EDT
Created attachment 198567 [details]
Screenshot showing secure storage location of repository.sonatype.org credentials
Comment 2 Igor Fedorenko CLA 2013-09-28 23:42:44 EDT
closing old/stale bugreports
Comment 3 Denis Roy CLA 2021-04-19 13:26:48 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/