Bug 193858 - RSE Temp files cache should not be shared between connections
Summary: RSE Temp files cache should not be shared between connections
Status: RESOLVED DUPLICATE of bug 245260
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: David McKnight CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-21 22:54 EDT by Loc Truong CLA
Modified: 2009-03-10 06:20 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Loc Truong CLA 2007-06-21 22:54:14 EDT
Build ID: M20070212-1330

Steps To Reproduce:
1- Create 3 connections to one IP for e.g 10.30.6.101. Each connection use a
different username and password, this will point to different folders in the
server.

2- I have 3 folders have files with the same name and folders structure. Let's
say in my case I have a file name account_block.php in folder:
/portal/includes/modules in connection #1. My connection #2 also has the name
like that in the same folder struture.

3- When I open account_block.php from Connection #1, there's nothing wrong. But
after that I try to edit account_block.php from Connection #2, it open the file
from Connection #1 which is now put in /workspace/RemoteSystemsTempFiles. This
happens because RSE creates a folder structure in local as:
/workspace/RemoteSystemsTempFiles/10.30.6.101/portal/includes/modules/. With
connections which connect to the same IP address and same folder structure and
file names, it bugs.

It should either: open the new file from connection #2 and replace the file in
connection #1 (I guess this is still a bug because you can't open 2 file in the
same time) or create each parent folder for each connection instead of each IP
address as of now.

More information:
reference: https://bugs.eclipse.org/bugs/show_bug.cgi?id=185894#c9
Comment 1 Martin Oberhuber CLA 2007-06-26 12:44:17 EDT
There have been requirements to share temp files between multiple connections to the same host so this request is not entirely easy to fix. Especially, using the connection name instead of the IP address per default is not possible.

We discussed this in http://wiki.eclipse.org/DSDP/TM/Committer_Phone_Meeting_26-Jun-2007 and we think that in the future, each subsystem could contribute different items for qualifying the path to the temp files; there will be a need to re-organize the temp files naming scheme anyways, because of bug #160100 and similar issues with files that have characters in their name which are not valid in the client file system.

For now, one workaround is to use different hostname specifiers for your different connections, e.g. the IP address and the DNS hostname, and perhaps DNS hostname with domain stripped: e.g.
   10.30.6.101
   yourserver.yourdomain.com
   yourserver.yourdomain
   yourserver

We know that this doesn't really scale but it might help for the moment. Another possibility might be to write an extension for the mountPathMappers extension point, see http://dsdp.eclipse.org/help/latest/topic/org.eclipse.rse.doc.isv/reference/extension-points/org_eclipse_rse_ui_mountPathMappers.html -- we are investigating this now.

Given these possibilities, would you be OK with dropping the severity to NORMAL, since it looks like we cannot address this real soon?

Comment 2 Loc Truong CLA 2007-06-26 21:52:30 EDT
thanks for the point out.

By using the DNS hostnames it helps but as you said it's just for the moment.
Comment 3 David McKnight CLA 2007-07-03 11:45:06 EDT
Looking at the mountPathMapper extension point it looked like this would solve the problem since it allows an extender to customize where temp files are stored.  However, I discovered that this, as currently used in RSE, will only help if the connection is for a local mount (i.e. a drive mount on windows).

I've opened an enhancement request for this: bug #195285
Comment 4 David McKnight CLA 2007-10-25 15:20:27 EDT
Resolving this as a duplicate of 195285.  To avoid temp files being shared between connections, the mount path mapper extension point can now be used, allowing custom locations within the temp file project.

*** This bug has been marked as a duplicate of bug 195285 ***
Comment 5 Martin Oberhuber CLA 2007-11-07 16:52:26 EST
Hm... so the question remains, what the default behavior should be?
Should the temp files cache be shared between connections by default?
Comment 6 Martin Oberhuber CLA 2009-03-10 06:20:26 EDT
This is actually better fixed with bug 245260.

*** This bug has been marked as a duplicate of bug 245260 ***