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

Re: OpenDocumentText Compare Error

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-11-20 09:45:05 CET

Steve Wardell wrote:
> 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.)

Can you provide a patch for this please?

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Nov 20 09:45:21 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.