SecureStorage: Can not get the password after system user password has been changed
file.delete();
Hello,I'm using secure storage to store my password. I changed my system password by the prompt that I'm getting from the windows logon screen as a reminder that my password expired. After that, the password can not be read and it can not be stored again. It only occurs on some of my Winodws machines.I'm thinking about solve the problem by removing the secore_storage file in C:\Documents and Settings\Administrator\.eclipse\org.eclipse.equinox.security when get exception when reading the password. However, there's only one internal method "InternalExchangeUtils.defaultStorageDelete()". I'm not supposed to use that internal method although it did solve the problem.I also tried to use my own secure_storage file. The code I used to open and delete my secure preference is:root = SecurePreferencesFactory.open(storeUrl, null);passwordNode = ibgRoot.node(PASSWORD_NODE);public static void clearStore() {{....passwordNode.clear();passwordNode = null;....File file = new File(storeUrl.getPath());
file.delete();}But still I can't store the password. There'll be a StorageException when:passwordNode.put(PASSWORD_KEY, password, true);I think something should have been missed in clearStore(). (maybe close() ?)Is there any one in the list can help me? Thank you!
| From: | 魏昕路 <appleren214 <at> gmail.com> |
| To: | equinox-dev <at> eclipse.org |
| Date: | 02/01/2010 07:19 AM |
| Subject: | [equinox-dev] Re: SecureStorage: Can not get the password after system user password has been changed |
| Sent by: | equinox-dev-bounces <at> eclipse.org |
The map file has been updated for the following Bug changes:
+ Bug 279215. Equinox Aspects does not work with Servlet Bridge (FIXED)
+ Bug 299657. Ranking property for Servlet Filter (FIXED)
+ Bug 299921. DefaultClassLoader.getResources() can erroneously return null (FIXED)
+ Bug 299922. Equinox should not use new ClassLoader(null) (FIXED)
+ Bug 301319. Compiler warnings in I20100129-1300 (FIXED)
+ Bug 301440. Race condition between refreshPackages and ServiceTracker.open() (FIXED)
The following projects have changed:
org.eclipse.equinox.http.servlet
org.eclipse.equinox.supplement
org.eclipse.equinox.servletbridge
org.eclipse.osgi.tests
org.eclipse.osgi
Tom
Users of org.eclipse.equinox.events.MemoryEventContants please read on; otherwise you can ignore this message.
In bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=284061 we added a new constants class org.eclipse.equinox.events.MemoryEventContants. Notice the misspelling of "Constants". Next week's Eclipse project integration build will have a correctly spelled constants class org.eclipse.equinox.events.MemoryEventConstants. Please change your code to start using the correctly spelled constants class. I plan to delete the misspelled constants class after next weeks integration build to allow folks to change to the correct one.
Sorry for the inconvenience and let me know if you have any issues with this. Thanks.
Tom
The map file has been updated for the following Bug changes:
+ Bug 178927. [launcher] [plan] way to pass arguments from launcher to a running application instance (ASSIGNED)
+ Bug 276763. [launcher] launcher fails to use OpenJDK-based VM when -vm is specified (FIXED)
+ Bug 292273. [launcher] new launcher needed for linux gtk ppc 64 (FIXED)
+ Bug 295957. Exception handling for org.eclipse.core.runtime.preferences initializers (FIXED)
+ Bug 298416. BundleContext.installBundle is not atomic (ASSIGNED)
+ Bug 300775. FileNotFoundException on each shutdown (FIXED)
+ Bug 300911. Disabling tracing does not notify listeners (FIXED)
+ Bug 300912. Launcher fails on Solaris Sparc and Solaris x86 (CLOSED)
+ Bug 301033. [launcher] --launcher.openFile does not work with "Open With..." on Windows (FIXED)
+ Bug 301257. MemoryEventConstants is misspelled (ASSIGNED)
+ Bug 301262. [publisher] NPE running headless app on non-main thread (FIXED)
+ Bug 301502. Tracing: no version number in files that were rotated (FIXED)
+ Bug 301735. Tracing: pipes in messages result in corrupt trace file (FIXED)
+ Bug 301783. Tracing: session and file header timestamps seem to be out-of-sync sometimes (FIXED)
+ Bug 301974. Race with unregister and ungetService can cause NullPointerException (FIXED)
+ Bug 302011. Should provide causing exception where possible (FIXED)
+ Bug 302097. org.eclipse.equinox.executable does not respect user CC, CFLAGS and LDFLAGS (NEW)
The following projects have changed:
org.eclipse.equinox.launcher.releng
org.eclipse.equinox.launcher.win32.win32.ia64
org.eclipse.equinox.launcher.carbon.macosx
org.eclipse.equinox.app
org.eclipse.osgi.tests
org.eclipse.equinox.launcher.gtk.linux.ppc64
org.eclipse.osgi
org.eclipse.equinox.launcher.cocoa.macosx.x86_64
org.eclipse.equinox.ds
org.eclipse.equinox.launcher.motif.hpux.ia64_32
org.eclipse.equinox.launcher
org.eclipse.equinox.launcher.cocoa.macosx
org.eclipse.equinox.launcher.gtk.solaris.sparc
org.eclipse.equinox.launcher.gtk.solaris.x86
org.eclipse.equinox.launcher.motif.aix.ppc
org.eclipse.equinox.launcher.win32.win32.x86_64
org.eclipse.equinox.launcher.gtk.linux.ppc
org.eclipse.equinox.launcher.motif.solaris.sparc
org.eclipse.equinox.launcher.motif.linux.x86
org.eclipse.equinox.launcher.gtk.linux.x86_64
org.eclipse.equinox.launcher.wpf.win32.x86
org.eclipse.equinox.executable
org.eclipse.equinox.launcher.win32.win32.x86
org.eclipse.equinox.preferences
org.eclipse.equinox.supplement
org.eclipse.equinox.common
org.eclipse.equinox.launcher.gtk.linux.x86
Tom
Hi all,
1. OSGi setting equivalent to java runtime option -Djava.ext.dirs=c:/jars
My plugin need few 3rd party jars in classpath.
In my MANIFEST.MF I have following entry
Bundle-ClassPath: .,
jars/a1.jar,
jars/b1.jar,
jars/c1.jar,
...
Is there a way I can define like jars/*.jar .
Actually I am looking for OSGi setting equivalent to java runtime option -Djava.ext.dirs=c:/jars
2. Controlling OSGi log file.
Is there any way of controlling logs generated in workspace directory of OSGi container.
Over the time log file is consuming considerable amount of hard drive space. Is there any way of control this log file. Typically I would like to created multiple log files of predefined size and then over-writing oldest file log file. ... similar to setting provided by Log4j library
Sorry if this is not the right forum to ask these kind of questions,
I will appreciate if somebody can point my to right mailing list.
_______________________________________________ equinox-dev mailing list equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org https://dev.eclipse.org/mailman/listinfo/equinox-dev
Hi all,
1. OSGi setting equivalent to java runtime option -Djava.ext.dirs=c:/jars
My plugin need few 3rd party jars in classpath.
In my MANIFEST.MF I have following entry
Bundle-ClassPath: .,
jars/a1.jar,
jars/b1.jar,
jars/c1.jar,
...
Is there a way I can define like jars/*.jar .
Actually I am looking for OSGi setting equivalent to java runtime option -Djava.ext.dirs=c:/jars
2. Controlling OSGi log file.
Is there any way of controlling logs generated in workspace directory of OSGi container.
Over the time log file is consuming considerable amount of hard drive space. Is there any way of control this log file. Typically I would like to created multiple log files of predefined size and then over-writing oldest file log file. ... similar to setting provided by Log4j library
Sorry if this is not the right forum to ask these kind of questions,
I will appreciate if somebody can point my to right mailing list.
--
Thanks & Regards
Swapnil Patil.
I am out of the office until 02/21/2010.
Note: This is an automated response to your message "[equinox-dev] How to add whole directory in classpath and how to controll osgi console log" sent on 2/15/10 21:27:08.
This is the only notification you will receive while this person is away.
RSS Feed9 | |
|---|---|
14 | |
19 | |
3 | |
27 | |
24 | |
49 | |
24 | |
49 | |
49 | |
59 | |
57 | |
46 | |
28 | |
47 | |
50 | |
30 | |
51 | |
21 | |
16 | |
70 | |
20 | |
80 | |
57 | |
37 | |
54 | |
62 | |
34 | |
50 | |
76 | |
71 | |
52 | |
107 | |
94 | |
121 | |
71 | |
77 | |
97 | |
35 | |
58 | |
116 | |
126 | |
57 | |
134 | |
193 | |
190 | |
207 | |
201 | |
215 | |
151 | |
96 | |
118 | |
203 | |
164 | |
173 | |
128 | |
156 | |
152 | |
93 | |
121 | |
180 | |
74 | |
48 | |
139 | |
110 | |
63 | |
37 | |
89 | |
143 | |
71 | |
51 | |
103 | |
114 | |
64 | |
42 | |
82 |