Fix for javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative;
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@181735 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f54ac953f6
commit
d62d919ddd
|
@ -1,39 +1,57 @@
|
||||||
<ReleaseNotes>
|
<ReleaseNotes>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.1-6-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.1-7-0"
|
||||||
|
date="2019-09-19">
|
||||||
|
<Change>Fix for javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative;</Change>
|
||||||
|
<Change>Removed Home Library dependency</Change>
|
||||||
|
</Changeset>
|
||||||
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.1-6-0"
|
||||||
date="2019-05-22">
|
date="2019-05-22">
|
||||||
<Change>Bug #16725, Social networking: emails notification</Change>
|
<Change>Bug #16725, Social networking: emails notification</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.1-5-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.1-5-0"
|
||||||
date="2018-10-08">
|
date="2018-10-08">
|
||||||
<Change>Feature #12613, Replace use of "$" character with "_" when sending notification emails about posts and messages</Change>
|
<Change>Feature #12613, Replace use of "$" character with "_" when
|
||||||
|
sending notification emails about posts and messages</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.1-4-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.1-4-0"
|
||||||
date="2018-06-19">
|
date="2018-06-19">
|
||||||
<Change>Added support for storage hub model in workspace related notifications</Change>
|
<Change>Added support for storage hub model in workspace related
|
||||||
<Change>Feature #11739, Revise posts and comments notification emails</Change>
|
notifications</Change>
|
||||||
|
<Change>Feature #11739, Revise posts and comments notification emails
|
||||||
|
</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.1-3-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.1-3-0"
|
||||||
date="2017-01-16">
|
date="2017-01-16">
|
||||||
<Change>partially removed portal context dependency (where possible)</Change>
|
<Change>partially removed portal context dependency (where possible)
|
||||||
|
</Change>
|
||||||
<Change>added support to job notifications</Change>
|
<Change>added support to job notifications</Change>
|
||||||
<Change>added support for ticket #6342</Change>
|
<Change>added support for ticket #6342</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.1-1-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.1-1-0"
|
||||||
date="2016-09-29">
|
date="2016-09-29">
|
||||||
<Change>Revised notification text</Change>
|
<Change>Revised notification text</Change>
|
||||||
<Change>Vre's name is now reported in email's subject</Change>
|
<Change>Vre's name is now reported in email's subject</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-16-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-16-0"
|
||||||
date="2016-02-29">
|
date="2016-02-29">
|
||||||
<Change>Added original discussion in email's body</Change>
|
<Change>Added original discussion in email's body</Change>
|
||||||
<Change>Vre's name is now reported in email's subject</Change>
|
<Change>Vre's name is now reported in email's subject</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-15-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-15-0"
|
||||||
date="2015-10-09">
|
date="2015-10-09">
|
||||||
<Change>Added message body in notifications for messages
|
<Change>Added message body in notifications for messages
|
||||||
</Change>
|
</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-14-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-14-0"
|
||||||
date="2015-07-15">
|
date="2015-07-15">
|
||||||
<Change>Added Support for user reply via mail to post and comment
|
<Change>Added Support for user reply via mail to post and comment
|
||||||
notifications
|
notifications
|
||||||
|
@ -53,55 +71,64 @@
|
||||||
page
|
page
|
||||||
</Change>
|
</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-13-1"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-13-1"
|
||||||
date="2015-05-05">
|
date="2015-05-05">
|
||||||
<Change>Fix for incident #1081 Notification html email formatting
|
<Change>Fix for incident #1081 Notification html email formatting
|
||||||
problems when post is favorited
|
problems when post is favorited
|
||||||
</Change>
|
</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-13-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-13-0"
|
||||||
date="2014-11-03">
|
date="2014-11-03">
|
||||||
<Change>Integrated notifications for set/unset shared folder
|
<Change>Integrated notifications for set/unset shared folder
|
||||||
administrator
|
administrator
|
||||||
</Change>
|
</Change>
|
||||||
<Change>Integrated support for hashtags </Change>
|
<Change>Integrated support for hashtags </Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-12-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-12-0"
|
||||||
date="2014-09-12">
|
date="2014-09-12">
|
||||||
<Change>Updated email format to actually send text plain emails
|
<Change>Updated email format to actually send text plain emails
|
||||||
without garbling html
|
without garbling html
|
||||||
</Change>
|
</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-11-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-11-0"
|
||||||
date="2014-07-01">
|
date="2014-07-01">
|
||||||
<Change>Implemented direct email sending through an external SMTP
|
<Change>Implemented direct email sending through an external SMTP
|
||||||
Server (if available in the infrastructure)
|
Server (if available in the infrastructure)
|
||||||
</Change>
|
</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-10-2"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-10-2"
|
||||||
date="2014-06-19">
|
date="2014-06-19">
|
||||||
<Change>Fixed bug when notifications involved error in the SMTP server
|
<Change>Fixed bug when notifications involved error in the SMTP server
|
||||||
</Change>
|
</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-10-1"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-10-1"
|
||||||
date="2014-06-13">
|
date="2014-06-13">
|
||||||
<Change>Fixed bug when notifications involved groups and email buffer
|
<Change>Fixed bug when notifications involved groups and email buffer
|
||||||
was not cleared
|
was not cleared
|
||||||
</Change>
|
</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-10-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-10-0"
|
||||||
date="2014-05-22">
|
date="2014-05-22">
|
||||||
<Change>Updated email format to both text plain and html</Change>
|
<Change>Updated email format to both text plain and html</Change>
|
||||||
<Change>Updated email sending with single smtp session</Change>
|
<Change>Updated email sending with single smtp session</Change>
|
||||||
<Change>Personalized notifications in email subjects</Change>
|
<Change>Personalized notifications in email subjects</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-9-1"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-9-1"
|
||||||
date="2014-04-02">
|
date="2014-04-02">
|
||||||
<Change>Updated email sender</Change>
|
<Change>Updated email sender</Change>
|
||||||
<Change>Added notification when a shared folder is a group</Change>
|
<Change>Added notification when a shared folder is a group</Change>
|
||||||
<Change>Removed "notification" suffix in email subjects</Change>
|
<Change>Removed "notification" suffix in email subjects</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-8-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-8-0"
|
||||||
date="2014-02-10">
|
date="2014-02-10">
|
||||||
<Change>Update email notifications, added (configurable) sender as
|
<Change>Update email notifications, added (configurable) sender as
|
||||||
normal text
|
normal text
|
||||||
|
@ -110,29 +137,34 @@
|
||||||
<Change>Added FTP Manager for uploading thumbnails when sharing files
|
<Change>Added FTP Manager for uploading thumbnails when sharing files
|
||||||
</Change>
|
</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-7-1"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-7-1"
|
||||||
date="2013-10-21">
|
date="2013-10-21">
|
||||||
<Change>Ported to Feather Weight Stack</Change>
|
<Change>Ported to Feather Weight Stack</Change>
|
||||||
<Change>Removed GCF Dependency</Change>
|
<Change>Removed GCF Dependency</Change>
|
||||||
<Change>Logging with sl4j Enabled</Change>
|
<Change>Logging with sl4j Enabled</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-6-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-6-0"
|
||||||
date="2013-09-13">
|
date="2013-09-13">
|
||||||
<Change>Fix for #1874 Request for enhancement on shared folder
|
<Change>Fix for #1874 Request for enhancement on shared folder
|
||||||
notifications
|
notifications
|
||||||
</Change>
|
</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-5-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-5-0"
|
||||||
date="2013-07-08">
|
date="2013-07-08">
|
||||||
<Change>Added support for Calendar Notifications</Change>
|
<Change>Added support for Calendar Notifications</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-4-1"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-4-1"
|
||||||
date="2013-06-14">
|
date="2013-06-14">
|
||||||
<Change>Modified delete item notifications. Distinguished the move
|
<Change>Modified delete item notifications. Distinguished the move
|
||||||
from the delete in a shared folder
|
from the delete in a shared folder
|
||||||
</Change>
|
</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-4-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-4-0"
|
||||||
date="2013-05-29">
|
date="2013-05-29">
|
||||||
<Change>Support new user notification preference retrieve method for
|
<Change>Support new user notification preference retrieve method for
|
||||||
fine grained notifications
|
fine grained notifications
|
||||||
|
@ -140,12 +172,14 @@
|
||||||
<Change>Support for workspace notification items direct opening
|
<Change>Support for workspace notification items direct opening
|
||||||
</Change>
|
</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-3-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-3-0"
|
||||||
date="2013-04-19">
|
date="2013-04-19">
|
||||||
<Change>Extended support for Notifications</Change>
|
<Change>Extended support for Notifications</Change>
|
||||||
<Change>Added New Notification Types</Change>
|
<Change>Added New Notification Types</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.0-1-0"
|
<Changeset
|
||||||
|
component="org.gcube.applicationsupportlayer.aslsocial.0-1-0"
|
||||||
date="2013-02-17">
|
date="2013-02-17">
|
||||||
<Change>First Release</Change>
|
<Change>First Release</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<groupId>org.gcube.applicationsupportlayer</groupId>
|
<groupId>org.gcube.applicationsupportlayer</groupId>
|
||||||
<artifactId>aslsocial</artifactId>
|
<artifactId>aslsocial</artifactId>
|
||||||
<version>1.7.0-SNAPSHOT</version>
|
<version>1.7.1-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>Social Portal ASL Extension</name>
|
<name>Social Portal ASL Extension</name>
|
||||||
<description>
|
<description>
|
||||||
|
|
|
@ -8,6 +8,8 @@ import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import javax.activation.CommandMap;
|
||||||
|
import javax.activation.MailcapCommandMap;
|
||||||
import javax.mail.Address;
|
import javax.mail.Address;
|
||||||
import javax.mail.Message;
|
import javax.mail.Message;
|
||||||
import javax.mail.MessagingException;
|
import javax.mail.MessagingException;
|
||||||
|
@ -16,7 +18,7 @@ import javax.mail.Session;
|
||||||
import javax.mail.Transport;
|
import javax.mail.Transport;
|
||||||
|
|
||||||
import org.gcube.applicationsupportlayer.social.ScopeBeanExt;
|
import org.gcube.applicationsupportlayer.social.ScopeBeanExt;
|
||||||
import org.gcube.common.encryption.StringEncrypter;
|
import org.gcube.common.encryption.encrypter.StringEncrypter;
|
||||||
import org.gcube.common.resources.gcore.ServiceEndpoint;
|
import org.gcube.common.resources.gcore.ServiceEndpoint;
|
||||||
import org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint;
|
import org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint;
|
||||||
import org.gcube.common.scope.api.ScopeProvider;
|
import org.gcube.common.scope.api.ScopeProvider;
|
||||||
|
@ -126,6 +128,8 @@ public class EmailNotificationsConsumer extends Thread {
|
||||||
if (EmailPlugin.BUFFER_EMAILS != null && EmailPlugin.BUFFER_EMAILS.size() > 0) {
|
if (EmailPlugin.BUFFER_EMAILS != null && EmailPlugin.BUFFER_EMAILS.size() > 0) {
|
||||||
_log.debug("Emails Buffer not empty, sending emails ");
|
_log.debug("Emails Buffer not empty, sending emails ");
|
||||||
Transport t = null;
|
Transport t = null;
|
||||||
|
//should fix javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative;
|
||||||
|
Thread.currentThread().setContextClassLoader( getClass().getClassLoader() );
|
||||||
try {
|
try {
|
||||||
t = session.getTransport("smtp");
|
t = session.getTransport("smtp");
|
||||||
t.connect();
|
t.connect();
|
||||||
|
|
Loading…
Reference in New Issue