Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350324 - Maven discovery fails to find extensions if user has credentials in secure storage for directory site
Summary: Maven discovery fails to find extensions if user has credentials in secure st...
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 15:26 EDT by Rich Seddon CLA
Modified: 2021-04-19 13:26 EDT (History)
1 user (show)

See Also:


Attachments
Screenshot showing secure storage location of repository.sonatype.org credentials (48.64 KB, image/png)
2011-06-24 15:27 EDT, Rich Seddon CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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/