Ask Your Question
1

Third party site for extensions downloading and authentication problems [closed]

asked 2013-11-06 15:48:15 +0100

gtrev gravatar image

updated 2015-11-13 08:41:32 +0100

Alex Kemp gravatar image

Hi to all,

I developed an extension and want to publish it on my site. I followed the instructions that I've found in https://wiki.openoffice.org/wiki/Documentation/DevGuide/Extensions/Examples

Everything seems to work fine until I put the file "extension.update.xml" in a site which requires http authentication. When I go to "Extension Manager" and check for updates, Libreoffice pops up an authentication form in which I have to enter the username and password for the http authentication. After that I obtain the following error:

Premature end of data in tag html line 2 Line: 16 Column: 1

This is the content of "extension.update.xml"

<?xml version="1.0" encoding="UTF-8"?>
<description xmlns="http://openoffice.org/extensions/update/2006" xmlns:xlink="http://www.w3.org/1999/xlink">
     <identifier value="it.example.example"/>
     <version value="1.0.0" /> 
     <update-download>
          <src xlink:href="http://www.example.it/updates/example.oxt" />
     </update-download>
</description>

The very same file deployed on a site which doesn't require authentication works correctly.

I've also tried a mixed situation which is also working: if I put 'extension.update.xml' on a site which doesn't require authentication, but the link to download the extensions points to a site in which authentication is required, by providing the correct login informations to libreoffice the extension is correctly downloaded.

I've tested it with Libreoffice 4.1.2.3 on a Windows 7 machine and with Libreoffice 4.0.3.3 on a Linux box

Do you have any suggestion on how to make autentication work also for the "extension.update.xml" file?

TIA, gtrev

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-11-13 08:41:57.911144

1 Answer

Sort by » oldest newest most voted
2

answered 2013-11-06 18:19:36 +0100

gtrev gravatar image

Sorry folks, I made a mistake in the "description.xml" file of my plugin: in the case of the server which requires authentication I wrote the wrong url:

http://www.example.com/updates

instead of

http://www.example.com/updates/extension.update.xml

Changing the url solved my problem

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-11-06 15:48:15 +0100

Seen: 156 times

Last updated: Nov 10 '13