Subject: Re: Bug#491456: unoconv: UnoException during conversion: URL seems to be an unsupported one.

From: [email-masked]
Date: Mon, 21 Jul 2008 20:11:12 +0200

hello,

Quoting Vincent Bernat <[email-masked]>:

> tag 491456 + unreproducible moreinfo
> thanks
>
> OoO Lors de  la soirée naissante du samedi 19  juillet 2008, vers 17:32,
> System Administrator <[email-masked]> disait :
>
> > $ LANG=en_us.UTF-8 unoconv -v -f odt philippe_bourcier.rtf
> > Input file: philippe_bourcier.rtf
> > unoconv: UnoException during conversion: URL seems to be an unsupported
> > one.
> > The provided document cannot be converted to the desired format.
>
> Hi!
>
> Does this bug happens on any document or just on some of them?

  see below

> Could you please add "raise"  on line 486 of /usr/bin/unoconv and "print
> inputurl" between lines 449 and 450 to get more information? I have also
> attached a patch that does the same thing.

  sure:

$ unoconv -v -f odt philippe_bourcier.rtf
Input file: philippe_bourcier.rtf
file:///home/philippe/data/cv/philippe_bourcier.rtf
unoconv: UnoException during conversion: URL seems to be an unsupported one.
The provided document cannot be converted to the desired format.
Traceback (most recent call last):
  File "/usr/bin/unoconv", line 566, in <module>
    main()
  File "/usr/bin/unoconv", line 545, in main
    convertor.convert(inputfn)
  File "/usr/bin/unoconv", line 451, in convert
    doc = self.desktop.loadComponentFromURL( inputurl , "_blank", 0, inputprops
)
__main__.IllegalArgumentException: URL seems to be an unsupported one.

  now, with another file:

$ wget http://dag.wieers.com/cv/curriculum-vitae-dag-wieers.pdf
--2008-07-21 20:03:07-- 
http://dag.wieers.com/cv/curriculum-vitae-dag-wieers.pdf
Résolution de dag.wieers.com... 62.213.193.164
Connexion vers dag.wieers.com|62.213.193.164|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 378569 (370K) [application/pdf]
Saving to: `curriculum-vitae-dag-wieers.pdf'

100%[======================================>] 378 569     42,7K/s   in 7,4s

2008-07-21 20:03:26 (50,1 KB/s) - « curriculum-vitae-dag-wieers.pdf » sauvegardé
[378569/378569]

$ unoconv -v -f odt curriculum-vitae-dag-wieers.pdf
Input file: curriculum-vitae-dag-wieers.pdf
file:///home/philippe/tmp/curriculum-vitae-dag-wieers.pdf
unoconv: UnoException during conversion: URL seems to be an unsupported one.
The provided document cannot be converted to the desired format.
Traceback (most recent call last):
  File "/usr/bin/unoconv", line 566, in <module>
    main()
  File "/usr/bin/unoconv", line 545, in main
    convertor.convert(inputfn)
  File "/usr/bin/unoconv", line 451, in convert
    doc = self.desktop.loadComponentFromURL( inputurl , "_blank", 0, inputprops
)
__main__.IllegalArgumentException: URL seems to be an unsupported one.

    thanks,
-- 
Philippe Bourcier      http://bourcier.philippe.online.fr/