From a66589484d09cca19606b69b7289078217bfa8be Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Thu, 25 Mar 2021 11:20:36 +0100 Subject: [PATCH] Fix Bug #21023 attached documents in Posts do not open in Chrome --- .settings/org.eclipse.wst.common.component | 23 +++- CHANGELOG.md | 111 ++++++++++++++++++ FUNDING.md | 26 ++++ pom.xml | 3 +- .../server/ShareUpdateServiceImpl.java | 3 +- 5 files changed, 157 insertions(+), 9 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 FUNDING.md diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component index 99f69f7..0bee885 100644 --- a/.settings/org.eclipse.wst.common.component +++ b/.settings/org.eclipse.wst.common.component @@ -1,11 +1,24 @@ - + + + - - + + + + + + - + + uses + + + + - + + + diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..968116d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,111 @@ + +# Changelog for Share-Updates Portlet + +All notable changes to this project will be documented in this file. +This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [v2.7.2-SNAPSHOT] -2021-03-25 + +- Ported to git + +- Fix Bug #21023 attached documents in Posts do not open in Chrome + +## [v2.7.1] -2020-04-28 + +- Feature #18992, Reconsider the alert message raised when writing a post containing more than one link + +## [v2.7.0] - 2019-03-29 + +- Revised social networking library mechanism for http links, mentions and hashtags recognition, Task #13207 + +## [v2.6.2] - 2019-01-04 + +- Incident #13096, mentioning in some VRE may not work + +## [v2.6.1] - 2018-04-12 + +- Removed previous jquery js load script + +## [v2.6.0] - 2018-02-07 + +- restyled checkbox for notifications< +- Removed deprecated TIBCO Pagebus library and replaces with Liferay's IPC Client Side +- Enhanced efficiency when retrieving mentioned users or groups in posts + +## [v2.5.0] - 2017-12-07 + +- drop down menu replaced with checkbox for notifications, see Task #9971 + +## [v2.3.1] - 2017-04-12 + +- Ported to Java 8 +- Fix for bug #7630 + +## [v2.3.0] - 2017-01-20 + +- Updated method for using ftp server +- Minor fix when VREs' teams are notified + +## [v2.1.0] - 2016-11-29 + +- updated opengraph checkURL for getting images in case of HTTP redirect permanently is encountered + +## [v2.0.0] - 2016-06-29 + +- Updated to Liferay 6.2.5 + +## [v1.9.0] - 2016-01-22 + +- Multi-attachment upload is now supported +- Drag and drop mechanism added for attachments +- Restyled to optimize vertical space + +## [v1.8.0] - 2015-07-06 + + - made notification to members option configurable as default, see Feature #121 + +## [v1.7.0] - 2015-05-27 + +- Integrated gwt-bootstrap and revised css +- ported to GWT 2.7.0 + +## [v1.6.0] - 2014-11-03 + +- Added Client scope handler, to set the scope from the client and help preventing the browser back button cache problem +- Added possibility to define topics in a post using hashtags +- Added save attachments in VRE Group folder + +## [v1.3.0] - 2014-05-09 + +- Added possibility to alert the users of a VRE when sharing an update +- Refined the way to guess content and images when parsing HTML +- Improved images recognition when parsing html pages having no image indication from openGraph +- Added user agent property to http requests to avoid web servers 'complaining' HTTP 403 errors +- Replaced all the line breaks and all the double spaces with the HTML version to preserve new lines in posts +- Fixed bug when changing user avatar and minor restyle +- Several improvements in url checkings +- resolved problem with AdBlock plugin +- Fixed mention user dialog y-position when textbox is higher than usual due to new lines +- Mention users list now returns only the list of the available users in the current organization +- Fixed posts when multiple tabs are open, now the status is kept on the client + +## [v1.1.3] - 2014-02-10 + +- added thumbnail generation and upload on FTP server +- added upload a copy on my workspace file when sharing a file +- implemented the file preview with icons or preview depending on the extension of the file +- integrated file uplod progress bar widget for sharing files +- fixed bug allowing users to post while generating file/url previews +- fixed bug allowing users to mention theirselves + +## [v1.1.0] - 2013-10-21 + +- Ported to GWT 251 +- Ported to Feather Weight Stack +- Removed GCF Dependency +- Logging with sl4j Enabled +- Fixed image previes retrieval when image is in the same folder of the linked page + +## [v1.0.0] - 2013-01-13 + +- First release diff --git a/FUNDING.md b/FUNDING.md new file mode 100644 index 0000000..6fa9eac --- /dev/null +++ b/FUNDING.md @@ -0,0 +1,26 @@ +# Acknowledgments + +The projects leading to this software have received funding from a series of European Union programmes including: + +- the Sixth Framework Programme for Research and Technological Development + - [DILIGENT](https://cordis.europa.eu/project/id/004260) (grant no. 004260). +- the Seventh Framework Programme for research, technological development and demonstration + - [D4Science](https://cordis.europa.eu/project/id/212488) (grant no. 212488); + - [D4Science-II](https://cordis.europa.eu/project/id/239019) (grant no.239019); + - [ENVRI](https://cordis.europa.eu/project/id/283465) (grant no. 283465); + - [iMarine](https://cordis.europa.eu/project/id/283644) (grant no. 283644); + - [EUBrazilOpenBio](https://cordis.europa.eu/project/id/288754) (grant no. 288754). +- the H2020 research and innovation programme + - [SoBigData](https://cordis.europa.eu/project/id/654024) (grant no. 654024); + - [PARTHENOS](https://cordis.europa.eu/project/id/654119) (grant no. 654119); + - [EGI-Engage](https://cordis.europa.eu/project/id/654142) (grant no. 654142); + - [ENVRI PLUS](https://cordis.europa.eu/project/id/654182) (grant no. 654182); + - [BlueBRIDGE](https://cordis.europa.eu/project/id/675680) (grant no. 675680); + - [PerformFISH](https://cordis.europa.eu/project/id/727610) (grant no. 727610); + - [AGINFRA PLUS](https://cordis.europa.eu/project/id/731001) (grant no. 731001); + - [DESIRA](https://cordis.europa.eu/project/id/818194) (grant no. 818194); + - [ARIADNEplus](https://cordis.europa.eu/project/id/823914) (grant no. 823914); + - [RISIS 2](https://cordis.europa.eu/project/id/824091) (grant no. 824091); + - [EOSC-Pillar](https://cordis.europa.eu/project/id/857650) (grant no. 857650); + - [Blue Cloud](https://cordis.europa.eu/project/id/862409) (grant no. 862409); + - [SoBigData-PlusPlus](https://cordis.europa.eu/project/id/871042) (grant no. 871042); \ No newline at end of file diff --git a/pom.xml b/pom.xml index 60b9847..39206d4 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ org.gcube.portlets.user share-updates war - 2.7.1 + 2.7.2-SNAPSHOT gCube Share Updates Portlet gCube Share Updates for exchanging updates with other users of VREs. @@ -78,7 +78,6 @@ org.gcube.portal social-networking-library - [1.16.0, 2.0.0-SNAPSHOT) provided diff --git a/src/main/java/org/gcube/portlets/user/shareupdates/server/ShareUpdateServiceImpl.java b/src/main/java/org/gcube/portlets/user/shareupdates/server/ShareUpdateServiceImpl.java index 66a6759..1a18751 100644 --- a/src/main/java/org/gcube/portlets/user/shareupdates/server/ShareUpdateServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/shareupdates/server/ShareUpdateServiceImpl.java @@ -660,8 +660,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar String mimeType = null; if (isWithinPortal()) { //get the url to show, before actually uploading it - //smpURI = storageClient.getUrl(true).RFile(remoteFilePath); //"http://ciccio.com"; - smpURI = storageClient.getHttpUrl(true).RFile(remoteFilePath); + smpURI = storageClient.getHttpsUrl(true).RFile(remoteFilePath); //The storage uploader Thread starts here asyncronously try {