Bug 437103 - BadRequest when exporting to Onedrive
Summary: BadRequest when exporting to Onedrive
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-OneDrive (other bugs)
Version First Reported In: 7.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-14 16:49 UTC by Fred
Modified: 2021-05-16 15:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 7.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fred 2021-05-14 16:49:20 UTC
SUMMARY
Exporting to onedrive used to work properly, but now I always get a BadRequest error.

STEPS TO REPRODUCE
1. Select some pictures
2. Click Export to onedrive
3. Connect to oneDrive (this is working properly)
4. Select the album
5. Send the files

OBSERVED RESULT
error message just saying Error transferring ... Server replied : Bad Request


EXPECTED RESULT
Files should be sent

SOFTWARE/OS VERSIONS
Windows: 10 20H2 19042.985
KDE Plasma Version:  ??
KDE Frameworks Version: ?? 
Qt Version:  ??

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2021-05-14 19:52:54 UTC
Is there a very large file? We use the simple API of OneDrive and it only supports files up to 4MB.

Maik
Comment 2 Fred 2021-05-15 17:15:10 UTC
Some original files are larger than 4MB, but :
- it's allways been the case
- I use the option to resize (1200px width) which should give files smaller than 4Mb
- I have also tried with only a file smaller than 4Mb and get the same result
What is suprising is than the error message is really immediate, like it would not even have time to resize.
Comment 3 Maik Qualmann 2021-05-16 15:16:24 UTC
Git commit ba867fe6eb116575538a655872a778f1671ec60d by Maik Qualmann.
Committed on 16/05/2021 at 15:15.
Pushed by mqualmann into branch 'master'.

various fixes in the OneDrive uploader tool
FIXED-IN: 7.3.0

M  +2    -1    NEWS
M  +7    -8    core/dplugins/generic/webservices/onedrive/odtalker.cpp
M  +1    -0    core/dplugins/generic/webservices/onedrive/odtalker.h
M  +22   -20   core/dplugins/generic/webservices/onedrive/odwindow.cpp

https://invent.kde.org/graphics/digikam/commit/ba867fe6eb116575538a655872a778f1671ec60d