You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use juce::URL::downloadToFile to download a zip file on iOS.
wait for the DownloadTask isFinished() to return true
retreive the status code of the download using statusCode()
the status code is -1 even if the download succeeds
Cause:
The didCompleteWithError delegate seems to always be invoked, even if no error occurs. If no error occurs the NSError is null. The JUCE method checks whether error is null and the sets httpCode to -1, while it should either not set it at all or set it to 200.
Detailed steps on how to reproduce the bug
Reproduction steps:
juce::URL::downloadToFile
to download a zip file on iOS.isFinished()
to return truestatusCode()
-1
even if the download succeedsCause:
The
didCompleteWithError
delegate seems to always be invoked, even if no error occurs. If no error occurs the NSError isnull
. The JUCE method checks whether error is null and the sets httpCode to -1, while it should either not set it at all or set it to 200.See apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1411610-urlsession?language=objc
Relevant code line:
JUCE/modules/juce_core/native/juce_Network_mac.mm
Line 717 in 46c2a95
What is the expected behaviour?
I expect a status code of 200 if the download succeeds without errors
Operating systems
iOS
What versions of the operating systems?
Device: iPad Pro 11-inch M4 (Simulator)
OS: iPadOS 17.15 (21F79)
Architectures
Other
Stacktrace
No response
Plug-in formats (if applicable)
Standalone
Plug-in host applications (DAWs) (if applicable)
No response
Testing on the
develop
branchThe bug is present on the
develop
branchCode of Conduct
The text was updated successfully, but these errors were encountered: