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 17142 - Suggest Utilities.{,un}escapeForFilename
Summary: Suggest Utilities.{,un}escapeForFilename
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@platform
Keywords: API
Depends on: 8713 16479
Blocks: 27494
  Show dependency tree
Reported: 2001-10-30 20:53 UTC by Jesse Glick
Modified: 2010-04-01 14:43 UTC (History)
4 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2001-10-30 20:53:09 UTC
Which would basically be the same as the current InstanceDataObject.{,un}escape
but publically accessible. The code is already duped in core's WindowUtils and
people have asked for it in other places too. There is a test written already.
Comment 1 Jan Chalupa 2001-11-27 13:02:37 UTC
Target milestone -> 3.3.1.
Comment 2 Jaroslav Tulach 2002-03-21 11:43:51 UTC
The code in WindowsUtil can disappear now, because InstanceDataObject
has new method create (..., true) to ensure that new object will be
really created.

So the (un)escape might not be needed at all.
Comment 3 Torbjorn Norbye 2002-03-21 19:53:20 UTC
But it's needed in many other places too. Last time I looked I found
multiple places where code was trying to escape and unescape
And I need it for my own code (which writes XML and parses XML files).
Having this code in a single place makes it more likely that it will
since it's hard to know which meta characters need to be escaped
-all- OS's (I remember VMS had some surprising ones).  

Since the IDE has a heavy XML bent (with its layers etc.) I think it's
important to provide methods to write arbitrary data to XML and read
them back without worrying about errors.
Comment 4 rmatous 2002-04-04 11:33:16 UTC
There also exist another copy of this escape method in ExJarFileSystem.
Comment 5 Marek Grummich 2002-07-22 11:28:36 UTC
Set target milestone to TBD
Comment 6 Marek Grummich 2002-07-22 11:30:31 UTC
Set target milestone to TBD
Comment 7 David Simonek 2002-08-07 10:31:59 UTC
passing to Radek.
Comment 8 Jesse Glick 2002-11-08 19:00:59 UTC
Peter just added this same code to org.netbeans.core.naming.Utils.
Comment 9 Jesse Glick 2003-02-13 17:01:35 UTC
IDO.escapeAndCut is apparently also used from window system.
Comment 10 mslama 2003-12-11 16:22:23 UTC
Yes PersistenceManager uses InstanceDataObject.escapeAndCut and
unescape. Should be fixed as this issue is solved.
Comment 11 _ tboudreau 2006-01-30 06:52:17 UTC
Was just perusing the reflection code that does this (still) in the window 
system code.  Any chance of addressing it?
Comment 12 Antonin Nebuzelsky 2008-04-15 17:18:14 UTC
Reassigning to new module owner jskrivanek.