https://bugs.documentfoundation.org/show_bug.cgi?id=159775

--- Comment #10 from [email protected] ---
Okay, I've made some progress on this issue.

The short version: It comes from Github.

The long version:

- If the extension's oxt file is placed on a [raw Github URL][1] then the
download will work.
- If the extension's oxt file comes from a [Github revision URL][2] then the
download won't work because Github requires a download with an HTTP session
with cookies.

In order to find out what is really going on with Github I wrote a [macro in
BASIC][3] with the help of the OAuth2OOo extension and realized that it was
necessary to proceed with the download in two HTTP requests in order to have
cookies and to be able to proceed with the download. The first request, to the
home on site, is only there to open the HTTP session and initialize cookies.

While searching through the LibreOffice codebase, two places caught my eye:
- The file [dp_gui_updateinstalldialog.cxx#L534][4]
- The file [dp_registry.cxx#L425][5]


I'm wondering if it would be possible to use an HTTP session to perform this
download and be able to do it when the files come from a Github revision URL?



[1]:
<https://github.com/prrvchr/jdbcDriverOOo/raw/refs/heads/master/source/jdbcDriverOOo/dist/jdbcDriverOOo.oxt>
[2]:
<https://github.com/prrvchr/jdbcDriverOOo/releases/latest/download/jdbcDriverOOo.oxt>
[3]:
<https://github.com/prrvchr/OAuth2OOo/blob/master/source/OAuth2OOo/OAuth2OOo/GithubDownloadRequest.xba>
[4]:
<https://github.com/LibreOffice/core/blob/32aa68a652007a718f9e3f41b49e191f0527d518/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx#L534>
[5]:
<https://github.com/LibreOffice/core/blob/32aa68a652007a718f9e3f41b49e191f0527d518/desktop/source/deployment/registry/dp_registry.cxx#L425>

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to