Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-11719

Do not do a redirect to resolve profile's image in Base64

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0
    • None
    • None
    • None
    • 4.8.0 M3

      Currently org.ametys.plugins.core.ui.user.ProfileImageResolverHelper.resolveAsBase64(String, String, int, String) try to resolve a URI to transform the inputstream to Base64.

      This is not good for performance reasons, but also because it can lead to authenticated urls.
      This is the case of CMS-11718 issue which requires us to force the request attribute
      REQUEST_ATTRIBUTE_INTERNAL_ALLOWED to be able to be call from the sheduled task.

      To avoid this, add a getProfileImage méthod to ProfileImageResolverHelper class which returns a InputStream and resolveAsBase64 should call this method instead of resolving the profile image uri

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: