[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

OpenDocumentText Compare Error

From: Steve Wardell <okapi_at_yahoo.com>
Date: 2006-11-17 17:35:26 CET

I'm using Tortoise 1.4.1 and trying to compare an ODT file in two different revisions. I'm using OpenOffice 2.0.4. When I select the compare, I get the following error:

Script: C:\Program Files\TortoiseSVN\Diff-Scripts\diff-odt.vbs
Line: 52
Char: 1
Error: com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one.
Code: 800A03E9
Source: [automation bridge]

The following URL seems to shed some more light on this. From http://mindmeld.cybersite.com.au/index.php?page=ask&submit_selected=1&thoughtId=920:

See http://api.openoffice.org/docs/common/ref/com/sun/star/uri/ExternalUriReferenceTranslator.html and http://api.openoffice.org/docs/common/ref/com/sun/star/uri/XExternalUriReferenceTranslator.html#translateToInternal. ;
In short, OpenOffice.org distinguishes between "internal" and
"external" URIs, where Java's URIs are all external, so code like

  String path2 = com.sun.star.uri.ExternalUriReferenceTranslator.create(context).translateToInternal(path);
  if (path2.length() == 0 && path.length() != 0) {
      throw new RuntimeException();
  }

is needed to translate path into path2 before using it. (And that it worked in OOo 1.3 was by chance, not by design.)

Thanks,
Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Nov 17 17:42:30 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.