Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-40662

NPE in getFormattedProfile when Social Info privacy set to Only Me

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.3, 12.4, 12.7, 19.1, 20.0
    • Fix Version/s: 12.7, 19.1, 20.0
    • Component/s: Profile
    • Labels:
      None
    • 19 status:
      Verified
    • 12 status:
      Verified
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      getFormattedProfile in PortalEntityProvider.java fails to handle a null SocialNetworkingInfo which occurs when a user has set their Profile privacy settings to "Only Me".  For some reason, though, this does NOT affect admin users, so testing must be done with a regular user.

      To reproduce:

      1. Update a user's Profile privacy setting for Social Info to "Only me"
      2. Add that user to a site with the Roster tool turned on.
      3. Log in as a different user in that site (not an admin user), go to the Roster tool and click on the user's photo.  Instead of their profile popup, it will show "Error"

      Seems like it just needs to anticipate that getFacebookUrl, etc. may return Null.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  bergarvi Bernardo Garcia Vila
                  Reporter:
                  ansorgej John Ansorge
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration