Merge lp:~lukas-baubkus/owncloud-sync/feature-keep-serverUrl-port-for-webdav into lp:owncloud-sync/ubsync

Proposed by Luksus
Status: Merged
Approved by: slash
Approved revision: 4
Merged at revision: 4
Proposed branch: lp:~lukas-baubkus/owncloud-sync/feature-keep-serverUrl-port-for-webdav
Merge into: lp:owncloud-sync/ubsync
Diff against target: 23 lines (+5/-1)
1 file modified
OwncloudSync/webdavfolderlistmodel.cpp (+5/-1)
To merge this branch: bzr merge lp:~lukas-baubkus/owncloud-sync/feature-keep-serverUrl-port-for-webdav
Reviewer Review Type Date Requested Status
slash Approve
Review via email: mp+363044@code.launchpad.net

Commit message

fix removing of cloud-server-portnumber, while creating the webdav access-url-path.

Description of the change

Fixes: Bug #1815388, and perhaps Bug #1592782

Retrieves the portnumber if one exists and makes use of the port parameter in QWebdav::setConnectionSettings.

To post a comment you must log in.
Revision history for this message
slash (slash-tux) wrote :

Thanks, I'll try to create a test version, would you be able to test it ?

Revision history for this message
Luksus (lukas-baubkus) wrote :

> Thanks, I'll try to create a test version, would you be able to test it ?

Sure.

Revision history for this message
slash (slash-tux) wrote :

Hello Luksus,
Sorry for the delay.
I was able to manage to find back a virtual machine to compile ubsync, with some changes, yours included.
I've let the full debug for you to troubleshoot...
https://www.dropfile.nl/f/Jbt63

- Are you on Ubports telegram supergroup ?
- Are you good in compiling ? I would like to move ubsync out of QT creator ubuntu 16.04 to clickable. But so far all trial failed.

Revision history for this message
Luksus (lukas-baubkus) wrote :

Hi, sorry for the late response, I was on vacation the last days.
I am currently a little bit confused. Somehow, the UBsync version on my phone already has the fix and I don't know anymore, how it got there... ;-)

Ok, I will have a look into it.

Honestly I am not very familiar with compiling that qml/c++ stuff, but as I already was digging around with a lot of ubports apps and clickable, maybe I am able to solve that problem.

Yes I am in the telegram supergroup, just as "Lukas".

Revision history for this message
Luksus (lukas-baubkus) wrote :

The click-package installs and works flawless.

I managed to build the project with clickable.

Just changed the line in OwncloudSync.pro:
LIBS += -L$$OUT_PWD/../qwebdavlib/ -lqwebdav
to
LIBS += -L$$OUT_PWD/../qwebdavlib

I am not sure what this -lqwebdav string is supposed to do, perhaps it is a temporary library-title for the built qwebdavlib. It seems, that it is not needed. At least I could not find any references to "lqwebdav" in the code or other files.

with "clickable clean build click-build" a click-package gets created.

But the share-directory, with language files is missing. I am not sure how this gets created.

Revision history for this message
slash (slash-tux) wrote :

Thank you !

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'OwncloudSync/webdavfolderlistmodel.cpp'
--- OwncloudSync/webdavfolderlistmodel.cpp 2018-08-09 03:52:33 +0000
+++ OwncloudSync/webdavfolderlistmodel.cpp 2019-02-12 09:07:47 +0000
@@ -53,6 +53,10 @@
53 QString url = sUrl.host();53 QString url = sUrl.host();
54 qDebug() << "webdav::setConnectionSettings" << "url:" << url;54 qDebug() << "webdav::setConnectionSettings" << "url:" << url;
5555
56 int port = sUrl.port();
57 if(port == -1) port = 0;
58 qDebug() << "webdav::setConnectionSettings" << "port:" << port;
59
56 QString path = sUrl.path();60 QString path = sUrl.path();
57 path.append("/remote.php/webdav/");61 path.append("/remote.php/webdav/");
58 qDebug() << "webdav::setConnectionSettings" << "path:" << path;62 qDebug() << "webdav::setConnectionSettings" << "path:" << path;
@@ -66,7 +70,7 @@
66 connectionType = QWebdav::HTTP;70 connectionType = QWebdav::HTTP;
67 }71 }
6872
69 m_webdav.setConnectionSettings(connectionType, url, path, m_username, m_password);73 m_webdav.setConnectionSettings(connectionType, url, path, m_username, m_password, port);
7074
71 }75 }
72}76}

Subscribers

People subscribed via source and target branches