Bug 30995 - [resources] should investigate using \\?\ notation for longer path lengths
Summary: [resources] should investigate using \\?\ notation for longer path lengths
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.3 M4   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
: 153375 172355 186546 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-05 13:11 EST by Rafael Chaves CLA
Modified: 2008-09-22 19:34 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Chaves CLA 2003-02-05 13:11:40 EST
Now that the natives for Windows use Unicode calls for handling files (see bug 
29584), we should consider using the \\?\ notation to overcome the standard 
Windows path length limitation on Windows NT/2K/XP.

Q: Are there any limitations/extra performance costs when using that notation?
Comment 1 John Arthorne CLA 2005-01-06 12:25:19 EST
Marking old enhancement requests that we don't intend to fix in the near future
as RESOLVED LATER. This does not mean we will never do them, but it means we
have no specific plans to address them.
Comment 2 Rafael Chaves CLA 2005-07-18 17:00:17 EDT
This will be addressed in the next Java major release (mustang).

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4403166
Comment 3 John Arthorne CLA 2006-11-20 15:04:37 EST
*** Bug 153375 has been marked as a duplicate of this bug. ***
Comment 4 John Arthorne CLA 2006-11-20 15:06:00 EST
Reopening for consideration. Now that Java 1.5 supports this notation, it is important for our native calls to also use it.
Comment 5 Alex Blewitt CLA 2006-11-20 18:36:27 EST
When bugs get duped, the Cc: list members don't get copied over? Bummer.
Comment 6 John Arthorne CLA 2006-11-21 13:51:25 EST
Fix released.  You need to be using a 1.5 JRE to take full advantage of this, because anyone using java.io.File before 1.5 would not be able to interact with files whose paths are greater than 260 characters.
Comment 7 Tsvetan Stoyanov CLA 2006-11-24 04:46:04 EST
Great Work!
Would this be backported to 3.2.x.

This stops us from supporting a lot of important cases where resources with long paths are created.

Best Regards,
Tsvetan
Comment 8 John Arthorne CLA 2006-11-24 10:17:29 EST
There is a possibility of back-porting this to 3.2.x, but it needs further testing in the 3.3 stream first. Our most important consideration for 3.2.x is to avoid destabilizing the code, so we need to have confidence that there are no side-effects.
Comment 9 John Arthorne CLA 2007-01-31 15:10:38 EST
*** Bug 172355 has been marked as a duplicate of this bug. ***
Comment 10 John Arthorne CLA 2007-05-11 09:55:31 EDT
*** Bug 186546 has been marked as a duplicate of this bug. ***
Comment 11 Michael Dänzer CLA 2008-07-15 03:33:15 EDT
Hm, was this now backported on 3.2? 

We have severe problems with this in our eclipse-based product and are bound to 3.2 cause of plugins and features that are not provided by their vendors in 3.3+ versions. We would take over doing the work (if it is done in reasonable time), but we then would need some pointers which classes to update.
Comment 12 John Arthorne CLA 2008-07-15 15:22:52 EDT
The simplest solution might be to take the 3.3 version of the org.eclipse.core.filesystem plugin and use it in your 3.2-based product. The plugin made only compatible changes between 3.2 and 3.3. Failing that, the changes are in the classes LocalFileNatives and Convert in the org.eclipse.core.filesystem plugin. If you browse the CVS history you can see the changes that were made in November 2006.
Comment 13 Jamel Touati CLA 2008-09-22 16:30:56 EDT
It is still possible to reproduce the issue in IES 3.4. Could you please verify
this and triage this bugzilla, since we have a customer defect dependant on it
and we need to plan in which release the fix will go. Thanks
Comment 14 John Arthorne CLA 2008-09-22 19:34:14 EDT
Jamel, this enhancement is about introducing \\?\ Windows Unicode notation, which we continue to use in Eclipse 3.4.  Your best bet is probably to enter a new bug report with a description of the problem you are seeing. I am able to create resources in the workspace with file system paths of arbitrary length on Windows using Eclipse 3.4.