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.

Bug 159163 - properties editor has problem with symlinks
Summary: properties editor has problem with symlinks
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: I18N (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alexey Butenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-25 18:43 UTC by kamilparal
Modified: 2009-03-20 13:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
bug demonstration (924.30 KB, video/ogg)
2009-03-20 13:32 UTC, kamilparal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kamilparal 2009-02-25 18:43:39 UTC
I have a l10n.properties file. It fact it is several l10n_XX.properties files for several locales. I have a symlink from
l10n_iw.properties to l10n_he.properties (he is a new code for Hebrew, iw is an old one, for several reasons I need
available both). If I click right mouse button on l10n.properties and choose Open, I see all locales (Hebrew twice under
different locale codes). So far so good.

When I add a new property and want to save it, NetBeans complains - "File l10n_iw.properties was modified externally.
Overwrite it?". Second complaint - "File l10n_iw.properties was modified externally. Reload it?" Sometimes when I hit
"Save all" third complaint - "Cannot save l10n".

The editor should be aware of symlinks and should not try to open the same file twice (or don't try to save it twice and
complain).
Comment 1 kamilparal 2009-02-25 21:08:25 UTC
Well, it's not only the properties editor. In GUI builder when I rename JLabel for example, again all the messages
"Cannot save l10n" appear. That's a problem.
Comment 2 Alexey Butenko 2009-03-20 12:25:06 UTC
Not reproducible any more.
Probably disappeared after recent changes in properties module.
Comment 3 kamilparal 2009-03-20 13:31:35 UTC
It is reproducible, see attached bug demonstration. l10n_nl.properties is a symlink. Fully updated NB 6.5.
Comment 4 kamilparal 2009-03-20 13:32:17 UTC
Created attachment 78518 [details]
bug demonstration
Comment 5 Alexey Butenko 2009-03-20 13:47:03 UTC
Not reproducible in 6.7, probably disappeared after recent changes in properties module