<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Android Viewer: Cannot connect to ownCloud"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=129833">129833</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Android Viewer: Cannot connect to ownCloud
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>ARM
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Android
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Android Viewer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>boerner@t-online.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
When tapping on "ownCloud" in the file open dialog (upper left corner), a
message appears "Unspecified error connecting to ownCloud server".
It actually does connect to the server but then fails.
Connecting with the native ownCloud client for Android succeeds.
Perhaps this is because the ownCloud API has been changed (dav vs. webdav). The
native client connects successfully to /remote.php/dav/... while LibreOffice
Viewer tries to connect to /remote.php/webdav/. (The OC server version is
10.3.2)

Here are the server logs:
1. nginx/access.log:
xxx.xxx.213.153 - thomas [06/Jan/2020:09:45:50 +0100] "PROPFIND
/remote.php/webdav/ HTTP/1.1" 207 23291 "-" "Android-ownCloud"

1a. successful connection with the native ownCloud client:
xxx.xxx.213.153 - thomas [06/Jan/2020:13:08:59 +0100] "PROPFIND
/remote.php/dav/files/thomas/documents/example.odt HTTP/1.1" 207 892 "-"
"Mozilla/5.0 (Android) ownCloud-android/2.14.1"



2. owncloud.log (loglevel=0 (debug)):
Exception: HTTP/1.1 401 No public access to this resource., No 'Authorization:
Basic' header found. Either the client didn't send one, or the server is
misconfigured, No 'Authorization: Basic' header found. Either the client didn't
send one, or the server is misconfigured:
{"Exception":"Sabre\\DAV\\Exception\\NotAuthenticated","Message":"No public
access to this resource., No 'Authorization: Basic' header found. Either the
client didn't send one, or the server is misconfigured, No 'Authorization:
Basic' header found. Either the client didn't send one, or the server is
misconfigured","Code":0,"Trace":"#0
\/var\/www\/owncloud\/lib\/composer\/sabre\/event\/lib\/WildcardEmitterTrait.php(96):
Sabre\\DAV\\Auth\\Plugin->beforeMethod(Object(Sabre\\HTTP\\Request),
Object(Sabre\\HTTP\\Response))\n#1
\/var\/www\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(448):
Sabre\\DAV\\Server->emit('beforeMethod:PR...', Array)\n#2
\/var\/www\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(241):
Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request),
Object(Sabre\\HTTP\\Response))\n#3
\/var\/www\/owncloud\/apps\/dav\/lib\/Server.php(326):
Sabre\\DAV\\Server->start()\n#4
\/var\/www\/owncloud\/apps\/dav\/appinfo\/v2\/remote.php(31):
OCA\\DAV\\Server->exec()\n#5 \/var\/www\/owncloud\/remote.php(165):
require_once('\/var\/www\/ownclo...')\n#6
{main}","File":"\/var\/www\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Auth\/Plugin.php","Line":161}




Steps to Reproduce:
1.Open LibreOffice Viewer for Android
2.Tap on the menu icon in the upper left corner
3.chose ownCloud

Actual Results:
error message "Unspecified error connecting to ownCloud server"

Expected Results:
open remote folder list in ownCloud


Reproducible: Always


User Profile Reset: No



Additional Info:
App Version 5.2.3.1/01ec8f3</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>