Fixed Security Exception

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@97752 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-06-25 09:59:28 +00:00
parent 441762462a
commit 3bd4da5d31
1 changed files with 58 additions and 58 deletions

View File

@ -317,7 +317,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error("getCurrentTRID(): " + e.getLocalizedMessage(), e);
throw new TDGWTServiceException("Error retrieving TR id: "
@ -377,7 +377,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error(
"Error setting TabResource parameter: "
@ -435,7 +435,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error(
"Error setting TabResource parameter: "
@ -589,7 +589,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error(
"Error retrieving Columns: " + e.getLocalizedMessage(), e);
@ -706,7 +706,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error(
"Error retrieving Columns: " + e.getLocalizedMessage(), e);
@ -827,7 +827,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error("Error retrieving Column: " + e.getLocalizedMessage(),
e);
@ -948,7 +948,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error("Error retrieving Column: " + e.getLocalizedMessage(),
e);
@ -1059,7 +1059,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error(
"Error retrieving Validation Columns: "
@ -1232,7 +1232,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error("Error in getLastTable(): " + e.getLocalizedMessage(),
e);
@ -1404,7 +1404,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error("Error in getTable(): " + e.getLocalizedMessage(), e);
throw new TDGWTServiceException("Error in getTable(): "
@ -1652,7 +1652,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
logger.error("Error retrieving Codelist in setCodelistsPagingLoader(): "
@ -1735,7 +1735,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
logger.error("Error retrieving Codelist in getCodelistsPagingLoader(): "
@ -2025,7 +2025,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
logger.error("Error retrieving TabularResources: "
@ -2082,7 +2082,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
logger.error("Error retrieving TabularResources: "
@ -2130,7 +2130,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error(
"Error deleting the tabular resource: "
@ -2177,7 +2177,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error(
"Error creating new TabularResource: "
@ -2318,7 +2318,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in Client Library Request: "
@ -2383,7 +2383,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in Client Library Request: "
@ -3066,7 +3066,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error("Error checking if it is a valid tabular resource: "
+ e.getLocalizedMessage(), e);
@ -3104,7 +3104,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error(
"Error checking if it is a finalized tabular resource: "
@ -3184,7 +3184,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error(
"Error in getTRMetadata(): " + e.getLocalizedMessage(), e);
@ -3241,7 +3241,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error(
"Error in getTableValidationMetadata(): "
@ -3692,7 +3692,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
new TabularResourceId(Long.valueOf(trId.getId())));
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
@ -3908,7 +3908,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in ChangeColumnType: "
@ -4067,7 +4067,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in AddColumn: "
@ -4224,7 +4224,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in DeleteColumn: "
@ -4382,7 +4382,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error Changing The Column Label: "
@ -4538,7 +4538,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error Changing Table Type: "
@ -4764,7 +4764,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error(
"Error in getColumnsForDimension() retrieving Columns: "
@ -4812,7 +4812,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error Deleting Rows: "
@ -4994,7 +4994,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error Cloning: "
@ -5041,7 +5041,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
@ -5196,7 +5196,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in getShareInfo: "
@ -5234,7 +5234,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error on service");
@ -5262,7 +5262,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.debug("Error in checkTabularResourceNotFinal: "
+ e.getLocalizedMessage());
@ -5328,7 +5328,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.debug("Error in setTabResourceInformation: "
+ e.getLocalizedMessage());
@ -5368,7 +5368,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.debug("Error in GetOccurencesForBatchReplace: "
+ e.getLocalizedMessage());
@ -5430,7 +5430,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.debug("Error in GetTemplates: " + e.getLocalizedMessage());
e.printStackTrace();
@ -5470,7 +5470,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.debug("Error StartTemplateApply: " + e.getLocalizedMessage());
e.printStackTrace();
@ -5583,7 +5583,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
@ -5623,7 +5623,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
"Error StartTemplateDelete: No such Template");
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.debug("Error StartTemplateDelete: "
+ e.getLocalizedMessage());
@ -5673,7 +5673,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
@ -5840,7 +5840,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException(
@ -6050,7 +6050,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.debug("getLastOperationInfo(): " + e.getLocalizedMessage());
e.printStackTrace();
@ -6107,7 +6107,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.debug("getLastOperationInfo(): " + e.getLocalizedMessage());
e.printStackTrace();
@ -6170,7 +6170,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.debug("getHistory(): " + e.getLocalizedMessage());
e.printStackTrace();
@ -6227,7 +6227,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.debug("getHistory(): " + e.getLocalizedMessage());
e.printStackTrace();
@ -6292,7 +6292,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.debug("discard(): " + e.getLocalizedMessage());
e.printStackTrace();
@ -6337,7 +6337,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.debug("rollBack(): " + e.getLocalizedMessage());
e.printStackTrace();
@ -6444,7 +6444,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.debug("Error in RollBackSessionMonitor: "
+ e.getLocalizedMessage());
@ -6533,7 +6533,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
logger.error(
"Error in getValidationsTasksMetadata(): "
@ -6585,7 +6585,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in operation: "
@ -6776,7 +6776,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in resubmit task: "
@ -6924,7 +6924,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in resume task: "
@ -7079,7 +7079,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in extract codelist: "
@ -7231,7 +7231,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in split column: "
@ -7385,7 +7385,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in split column: "
@ -7848,7 +7848,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw e;
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
throw new TDGWTServiceException("Security exception, you haven't rights!");
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in start group by: "