Bug 400766 - Export to Onedrive: not possible to export into subfolder
Summary: Export to Onedrive: not possible to export into subfolder
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-OneDrive (show other bugs)
Version: 6.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-06 22:17 UTC by Nicofo
Modified: 2018-11-24 20:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicofo 2018-11-06 22:17:53 UTC
STEPS TO REPRODUCE
1. Select files > Export to Onedrive
2. Connect to your account
3. In Albums drop list, select an album (not the Root): E.g. "Images"
4. Press "Create Album" and name it e.g. "Holidays"
5. As a result, the subfolder "Holidays" is well create in "Images" folder on Onedrive: OK
6. BUT it is not possible to select that folder in the Albums drop list (even after "Reload"): only "main" folders are listed, no subfolders

Note: in Export to Dropbox, the same workflow works: the subfolders are displayed in the Albums drop list (even if it is not nicely displayed: there are 2 options in the drop list: "Images" and "Holidays": should be better to have "Images" and "Images/Holidays" alphabetically sorted)

SOFTWARE VERSIONS
digikam-6.0.0-beta3-20181104T163349-x86-64.appimage
Comment 1 Maik Qualmann 2018-11-16 17:44:52 UTC
Git commit fdcb6e1734bf2e17c886bedefe51657561f101d8 by Maik Qualmann.
Committed on 16/11/2018 at 17:43.
Pushed by mqualmann into branch 'master'.

load OneDrive folders recursively
FIXED-IN: 6.0.0

M  +2    -1    NEWS
M  +61   -26   core/utilities/assistants/webservices/onedrive/odtalker.cpp
M  +1    -1    core/utilities/assistants/webservices/onedrive/odtalker.h

https://commits.kde.org/digikam/fdcb6e1734bf2e17c886bedefe51657561f101d8
Comment 2 Nicofo 2018-11-16 21:48:09 UTC
Thanks a lot !
I wanted to try with last version of appimage in files.kde.org (date=today so not sure it includes the fix, but I tried anyway).

Unfortunately when I click on Export > Onedrive, I get an Segmentation Fault. This is what appears in terminal after click on Export > Onedrive:

Digikam::AlbumFilterModel::setSearchTextSettings: new search text settings: "" : hasResult = true , validRows = 18
Digikam::ODTalker::readSettings: Linking...
Auto configuration failed
140522741307648:error:0E079065:configuration file routines:DEF_LOAD_BIO:missing equal sign:conf_def.c:362:line 40
unknown: QMutex: destroying locked mutex
/tmp/.mount_digikapFPrRy/AppRun: line 115:  7627 Segmentation fault      (core dumped) digikam $@

Note: same problem with previous Appimage (e.g. Beta1) while it was working before (under Fedora 28). The difference is that I just upgraded to Fedora 29 and appimage are not working well (I have to 'LD_PRELOAD=/lib64/libfreetype.so.6 ./digikam-xxx.appimage' otherwise appimage doesn't run): don't know if this could be related?

(if it is another issue, I can open another Bug if you want).
Comment 3 caulier.gilles 2018-11-16 21:50:07 UTC
Not yet. I will rebuild AppImage tomorrow morning (it's too late here actually)

GilleS Caulier
Comment 4 Nicofo 2018-11-17 10:38:17 UTC
Same Segmentation Fault with digikam-6.0.0-beta3-20181117T105907-x86-64.appimage
Note: I notice now that it happens also with Export > Dropbox
Comment 5 Maik Qualmann 2018-11-17 10:45:45 UTC
That will be a problem related to the AppImage. Can you start the AppImage with the debug option?

Maik
Comment 6 Nicofo 2018-11-17 10:57:44 UTC
With debug, this is what happens after clicking on Export > Onedrive:

Digikam::AlbumFilterModel::setSearchTextSettings: new search text settings: "" : hasResult = true , validRows = 18
Digikam::ODTalker::readSettings: Linking...
Auto configuration failed
140737221753088:error:0E079065:configuration file routines:DEF_LOAD_BIO:missing equal sign:conf_def.c:362:line 40
unknown: QMutex: destroying locked mutex
[Thread 0x7ffef87f8700 (LWP 22788) exited]
[Thread 0x7ffef7ff7700 (LWP 22789) exited]
[Thread 0x7ffef77f6700 (LWP 22790) exited]
[Thread 0x7ffef6ff5700 (LWP 22791) exited]
[Thread 0x7fff62158700 (LWP 22756) exited]
[Thread 0x7fffd3fff700 (LWP 22742) exited]
[Thread 0x7fff61957700 (LWP 22757) exited]
[Thread 0x7fff61156700 (LWP 22758) exited]
[Thread 0x7fff60955700 (LWP 22759) exited]
[Thread 0x7fff4bfff700 (LWP 22760) exited]
[Thread 0x7fff4b7fe700 (LWP 22761) exited]
[Thread 0x7fff4affd700 (LWP 22762) exited]
[Thread 0x7fff4a7fc700 (LWP 22763) exited]
[Thread 0x7fff49ffb700 (LWP 22764) exited]
[Thread 0x7fff497fa700 (LWP 22765) exited]
[Thread 0x7fff23fff700 (LWP 22767) exited]
[Thread 0x7fff237fe700 (LWP 22768) exited]
[Thread 0x7fff22ffd700 (LWP 22769) exited]
[Thread 0x7fff48ff9700 (LWP 22766) exited]
[Thread 0x7fff227fc700 (LWP 22770) exited]
[Thread 0x7fff217fa700 (LWP 22772) exited]
[Thread 0x7fff20ff9700 (LWP 22773) exited]
[Thread 0x7fff21ffb700 (LWP 22771) exited]
[Thread 0x7fff0bfff700 (LWP 22774) exited]
[Thread 0x7fff0affd700 (LWP 22776) exited]
[Thread 0x7fff0b7fe700 (LWP 22775) exited]
[Thread 0x7fff09ffb700 (LWP 22778) exited]
[Thread 0x7fff097fa700 (LWP 22779) exited]
[Thread 0x7fff0a7fc700 (LWP 22777) exited]
[Thread 0x7fff08ff9700 (LWP 22780) exited]
[Thread 0x7ffefb7fe700 (LWP 22782) exited]
[Thread 0x7ffefbfff700 (LWP 22781) exited]
[Thread 0x7ffefa7fc700 (LWP 22784) exited]
[Thread 0x7ffefaffd700 (LWP 22783) exited]
[Thread 0x7ffef97fa700 (LWP 22786) exited]
[Thread 0x7ffef9ffb700 (LWP 22785) exited]
[Thread 0x7ffef8ff9700 (LWP 22787) exited]

Thread 4 "Digikam::ScanCo" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe0fba700 (LWP 22734)]
0x00000030a10a7024 in QReadWriteLock::tryLockForWrite(int) ()
   from /tmp/.mount_digikaE5GnU5/usr/lib/libQt5Core.so.5
(gdb) 
(gdb) 


Is it useful for you ?
Comment 7 Maik Qualmann 2018-11-17 11:28:06 UTC
If I google for this problem, it seems to be a problem with SSH.

Auto configuration failed
140737221753088:error:0E079065:configuration file routines:DEF_LOAD_BIO:missing
equal sign:conf_def.c:362:line 40

Maik
Comment 8 Nicofo 2018-11-17 12:59:33 UTC
ok...
It seems however linked to Appimage: I made new tests:
- I tried with digikam 5.9 (RPM from Fedora 29): Export to dropbox is working
- I tried with digikam 5.9 (appimage version): Export to dropbox is crashing (same Seg Fault as with appimage 6.0 beta)
Comment 9 Nicofo 2018-11-24 20:53:23 UTC
Note: I have opened bug #401377 for this new problem as it is not related to the original one (Export to Onedrive: not possible to export into subfolder) which should be fixed.