The File Manager will not send images if the ListFiles request is rejected by the module due to encryption #1975
Labels
bug
A defect in the library
manager-encryption
Related to the encryption manager for RPC service encryption
manager-lifecycle
Relating to the manager layer - lifecycle manager
Bug Report
If the
SDLFileManager
sends aListFiles
request and the module rejects it because it needs to be encrypted, the file manager transitions to the error state and no artworks can be sent.Technically, the
SDLFileManager
should either 1) not send theListFiles
request until the encryption manager has been setup or 2) it should send theListFiles
request again when the encryption manager has been setup.A quick workaround would be to check in
didEnterStateFetchingInitialList
if[error.userInfo[@"resultCode"] isEqualToEnum:SDLResultEncryptionNeeded]
and just transition to theSDLFileManagerStateReady
if so. This means that the library will waste time re-uploading artworks that already exist on the module but it works as a temporary fix until theSDLFileManager
can be reworked to add a dependency on the encryption manager.Reproduction Steps
ListFiles
RPC.Expected Behavior
The artworks in the
Show
request should show up.Observed Behavior
The artworks for the
Show
request are never sent to the module due to theSDLFileManager
being in the error state.OS & Version Information
The text was updated successfully, but these errors were encountered: