PUBLIC - Liferay Mobile Apps
  1. PUBLIC - Liferay Mobile Apps
  2. MOBILE-81

Switching servers on iOS crashes application on data refresh

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS, Liferay Sync
    • Labels:
      None
    • Environment:
      iOS 5.1 (9B179) iPhone 4S
      iOS 5.1 (9B176) iPad
      XCode iOS 5.0
    • Similar Issues:
      Show 4 results 

      Description

      1. Connect to server1. Refresh documents.
      2. Connect to another server. Refresh documents. Liferay Sync crashes.
      3. Liferay Sync crashes at launch when establishing internet connection.
      4. Disable internet connection. Liferay Sync launches.
      5. If we revert the server config with internet disabled. And then re-enable internet, liferay Sync launches. Liferay Sync also pulls down the data from the first server just fine.
      6. Rebooting the device by holding the sleep switch and sliding to turn off doesn't resolve it.
      7. Reinstalling the application allows for you to join any server.

      I think it has to do with storing the server ID and it is looking for that at launch.
      Attached is the iPhone crash log.

        Activity

        Hide
        Randall Hidajat added a comment -

        This is resolved using 1.1 on iOS

        Show
        Randall Hidajat added a comment - This is resolved using 1.1 on iOS
        Hide
        Caleb Fong (Inactive) added a comment -

        Thanks Randall!

        I'll write up a doc for the customer portal.

        Show
        Caleb Fong (Inactive) added a comment - Thanks Randall! I'll write up a doc for the customer portal.
        Hide
        Bruno Farache added a comment -

        Hey guys, I was able to reproduce on 1.1. Just committed a fix.

        Show
        Bruno Farache added a comment - Hey guys, I was able to reproduce on 1.1. Just committed a fix.
        Hide
        Bruno Farache added a comment -

        Maybe for some reason you were lucky and got the same groupId for both servers, Randall.

        This issue happens because groupId is cached in the app and when you switch the server and there's no Group with the same groupId, it throws:

        Caused by: com.liferay.portal.kernel.repository.RepositoryException: No Repository exists with the primary key 19.

        You should test different servers with different dbs.

        Show
        Bruno Farache added a comment - Maybe for some reason you were lucky and got the same groupId for both servers, Randall. This issue happens because groupId is cached in the app and when you switch the server and there's no Group with the same groupId, it throws: Caused by: com.liferay.portal.kernel.repository.RepositoryException: No Repository exists with the primary key 19. You should test different servers with different dbs.
        Hide
        Caleb Fong (Inactive) added a comment -

        Hi Bruno,

        So the issue happens when the groupID for the servers are different?
        Should we reopen this ticket?

        Thanks,
        Caleb

        Show
        Caleb Fong (Inactive) added a comment - Hi Bruno, So the issue happens when the groupID for the servers are different? Should we reopen this ticket? Thanks, Caleb
        Hide
        Bruno Farache added a comment -

        That's right, you guys should check the console on the server side.

        No need to re-open the ticket, I just committed the fix.

        Thanks for all details Caleb, they were very helpful.

        Show
        Bruno Farache added a comment - That's right, you guys should check the console on the server side. No need to re-open the ticket, I just committed the fix. Thanks for all details Caleb, they were very helpful.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response:
              Days since last comment:
              3 years, 17 weeks ago

              Structure Helper Panel