Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: v2.4.2
    • Labels:
      None

      Description

      The code is looping and modifying the contents in loop. Attached input on which ProfileFetcherUtils.fetchFromJsonObject fails

      Caused by: java.util.ConcurrentModificationException
          at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) ~[?:1.8.0_131]
          at java.util.ArrayList$Itr.next(ArrayList.java:851) ~[?:1.8.0_131]
          at pl.edu.icm.unity.oauth.client.profile.ProfileFetcherUtils.resolveNestedJsonType(ProfileFetcherUtils.java:65) ~[classes/:?]
          at pl.edu.icm.unity.oauth.client.profile.ProfileFetcherUtils.resolveNestedJsonType(ProfileFetcherUtils.java:58) ~[classes/:?]
          at pl.edu.icm.unity.oauth.client.profile.ProfileFetcherUtils.resolveNestedJsonType(ProfileFetcherUtils.java:53) ~[classes/:?]
          at pl.edu.icm.unity.oauth.client.profile.ProfileFetcherUtils.resolveNestedJsonType(ProfileFetcherUtils.java:53) ~[classes/:?]
          at pl.edu.icm.unity.oauth.client.profile.ProfileFetcherUtils.resolveNestedJsonType(ProfileFetcherUtils.java:53) ~[classes/:?]
          at pl.edu.icm.unity.oauth.client.profile.ProfileFetcherUtils.convertToRawAttributes(ProfileFetcherUtils.java:37) ~[classes/:?]
          at pl.edu.icm.unity.oauth.client.profile.ProfileFetcherUtils.fetchFromJsonObject(ProfileFetcherUtils.java:31) ~[classes/:?]
          at pl.edu.icm.unity.oauth.client.profile.OrcidProfileFetcher.fetchProfile(OrcidProfileFetcher.java:67) ~[classes/:?]
          at pl.edu.icm.unity.oauth.client.OAuth2Verificator.getAccessTokenAndProfilePlain(OAuth2Verificator.java:461) ~[classes/:?]
          at pl.edu.icm.unity.oauth.client.OAuth2Verificator.getRemotelyAuthenticatedInput(OAuth2Verificator.java:263) ~[classes/:?]
          ... 96 more

        Attachments

          Activity

            People

            • Assignee:
              piotrpiernik Piotr Piernik
              Reporter:
              golbi Krzysztof Benedyczak
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: