Crash when user sessions are revoked

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      How frequently does the bug occur?

      Always

      Description

      The issue occurs when the session is revoked for that user and next time you launch the app it will crash. Since the delegate invokes the didCompleteWithError, this time the NSError is nil: "attempt to insert nil object from objects[3]"

      Stacktrace & log output

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[3]'
      *** First throw call stack:
      (0x19881eb28 0x190692f78 0x198788898 0x1987881b4 0x10106c044 0x19987f98c 0x105c8cb98 0x105c8e7bc 0x105c9666c 0x105c9743c 0x105ca4404 0x105ca3a38 0x1f471cf20 0x1f471cfc0)
      libc++abi: terminating due to uncaught exception of type NSException
      

      Can you reproduce the bug?

      Always

      Reproduction Steps

      Login the user with anonymously and then revoke the sessions. Re-launch the app and it will crash

      Version

      10.48.0

      What Atlas Services are you using?

      Both Atlas Device Sync and Atlas App Services

      Are you using encryption?

      No

      Platform OS and version(s)

      iOS 17

      Build environment

      Xcode version: ...
      Dependency manager and version: ...

            Assignee:
            Nikola Irinchev
            Reporter:
            Unito Sync Bot
            Archiver:
            Marc Greenfield

              Created:
              Updated:
              Archived: