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

            Bug ID: 105706
           Summary: Update service does not show updates when detailed OS
                    versions are sent.
           Product: LibreOffice
           Version: 5.2.3.3 release
          Hardware: All
                OS: Mac OS X (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Installation
          Assignee: [email protected]
          Reporter: [email protected]

Description:
For at least a couple of LibreOffice versions checking for updates shows no
updates even though it should. Consider this:

Request A:

    curl -A "LibreOffice 5.3.0.3 (7074905676c47b82bbcfbea1aeefc84afe1c50e1;
MacOSX; X86_64; )" "http://update.libreoffice.org/check.php?pkgfmt=dmg";

Response A:

    HTTP OK / 200
    <p>No update for your LibreOffice version.</p>

Request B:

    curl -A "LibreOffice 5.3.0.3 (7074905676c47b82bbcfbea1aeefc84afe1c50e1;
MacOSX; X86_64; CPU Threads: 4; OS Version: Mac OS X 10.12.3; UI Render:
default; Layout Engine: new; )"
"http://update.libreoffice.org/check.php?pkgfmt=dmg";

Response B:

    HTTP OK / 200
    <p><b>Error:</b> Only LibreOffice can access the update service.</p>

This leads to some installations not showing any updates.

----

The root cause seems to be that an unknown response is considered equal to "no
update". This should rather generate an error such that a user can check on the
website manually.

I haven't found the code repository for update.libreoffice.org so I'm not able
to write a patch myself. If someone points me there, I'd be happy to have a
look.

Steps to Reproduce:
1. Go to the settings.
2. Go to "LibreOffice" -> "Online Update"
3. Check "Send OS version and basic hardware information"
4. Click on the "Check Now" button.

Actual Results:  
"No Updates available" is shown, even if there should be some.

If you capture the traffic, you'll see that an error "Only LibreOffice can
access the update service." is shown.

Expected Results:
"Update available" or "Problem contacting the server" should be shown.


Reproducible: Always

User Profile Reset: Yes

Additional Info:
It would be nice if http://update.libreoffice.org/check.php would respond with
a 403 forbidden code upon navigating there with a browser. 

Why not use JSON instead of parsing a HTML page?


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0)
Gecko/20100101 Firefox/52.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to