[dev] proposal for problematic UNC file url's

2007-01-18 Thread Allen Pulsifer
Entered as http://qa.openoffice.org/issues/show_bug.cgi?id=73625

-Background-

In Windows, a UNC path to a directory looks like this (see
http://support.microsoft.com/kb/311079):

\\server\share\path  

According to the file URI spec, Windows UNC paths should be accepted as file
urls if they are entered like this:

file:///server/share/path

See http://udk.openoffice.org/cpp/man/spec/uris.html, last section, Hosts;
Note however there is a typo in the spec--it says
file://somewhere/somedir/file.txt but should say
file:///somewhere/somedir/file.txt, with 3 slashes after the file:.

UNC's paths however have long been problematic in OOo.  See:

http://www.oooforum.org/forum/viewtopic.phtml?p=196522
http://qa.openoffice.org/issues/show_bug.cgi?id=9018
http://qa.openoffice.org/issues/show_bug.cgi?id=13148
http://qa.openoffice.org/issues/show_bug.cgi?id=51026
http://qa.openoffice.org/issues/show_bug.cgi?id=53184
http://qa.openoffice.org/issues/show_bug.cgi?id=56868
http://qa.openoffice.org/issues/show_bug.cgi?id=72031
http://qa.openoffice.org/issues/show_bug.cgi?id=72864
http://qa.openoffice.org/issues/show_bug.cgi?id=73620


Part of the problem would seem to be that in OOo's implementation of file
URL's, it cannot be unambiguously determined if the first component of the
URL refers to a server or to a directory.  For example, in

file:///part1/part2/part3

part1 could refer to the directory /part1 on the local files system, or it
could refer to the server part1 on the local network.

-The Proposal-

The submitter proposes that OOo's implementation of UNC file URL's be
modified so it can be unambiguously determined if the first part of the path
is a local directory or a network server.

There are a multitude of syntaxes that could be used.  For example:

file:///server:share/path
file:///server:/share/path
file:///server//share/path
file:///server/share:path
file:///server:share:path
file:///server:share:/path
file:///server/share:/path

What should not be used however, is the current ambiguous implementation
file:///server/share/path

The author of this proposal has no preference for syntax.  Note however that
Microsoft's document http://support.microsoft.com/kb/311079 discusses how
Netware shares are parsed, and this may enter into the decision.  Linux,
Solaris and Samba considerations may also enter into the decision.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] proposal for problematic UNC file url's

2007-01-18 Thread Stephan Bergmann

Allen Pulsifer wrote:

Entered as http://qa.openoffice.org/issues/show_bug.cgi?id=73625


Please see my response there.

-Stephan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [dev] proposal for problematic UNC file url's

2007-01-18 Thread Allen Pulsifer
Hello Stephan,

Thank you for your reply.  To answer your question, I thought it was a typo
for several reasons:

1. In researching http://qa.openoffice.org/issues/show_bug.cgi?id=73620, I
tried four possible syntaxes, file:/, file://, file:///, file:
and none of them worked.

2. I found other instances on the OOo website and documentation that list
the syntax as file:///.

3. Shoddy and incorrect documentation abound in the OOo project, so this was
a reasonable conclusion.

In summary, this was not an assumption, it was a conclusion reached based on
experience, research and a diligent effort to solve the problem before
putting in a bug report.

If you are saying that a UNC path is distinguished by having only two
slashes after the file:, rather than three slashes, then you are right, it
is not ambiguous.  I am still glad I raised the issue however, since (a)
this needs to be better documented; and (b) based on how well UNC paths do
not work in OOo, there seems to be just as much confusion among the
developers as the users.

Thank you again for your response.

Allen


 -Original Message-
 From: Stephan Bergmann [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, January 18, 2007 10:27 AM
 To: dev@openoffice.org
 Subject: Re: [dev] proposal for problematic UNC file url's
 
 
 Allen Pulsifer wrote:
  Entered as http://qa.openoffice.org/issues/show_bug.cgi?id=73625
 
 Please see my response there.
 
 -Stephan
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]