Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24072

Fix EmailHelper#newSession to return a distinct object at each call

    XMLWordPrintable

    Details

      Description

      Currently EmailHelper#newSession calls Session.getDefaultInstance which always return the same object after the initial instanciation

      Session.getDefaultInstance
          public static synchronized Session getDefaultInstance(Properties props,
      					Authenticator authenticator) {
      	if (defaultSession == null)
      	    defaultSession = new Session(props, authenticator);
      ...
      

      Not sure if Session#getDefaultInstance should be used and prefered to a direct call to new Session(props, authenticator)

      This change was introduced by NXP-9322 in Nuxeo 5.6

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h