[ https://issues.apache.org/jira/browse/OFBIZ-13015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux updated OFBIZ-13015: ------------------------------------ Description: Currently there is only a hard legible message for users without sufficient permissions (sorry in French): ERROR MESSAGE java.lang.IllegalArgumentException: Error running script at location [component://projectmgr/src/main/groovy/org/apache/ofbiz/projectmgr/EditWeekTimesheet.groovy]: org.apache.ofbiz.service.ExecutionServiceException: ERROR: Could not complete the Create Timesheet For This Week of no date provided, otherwise for a specific week [TimesheetServices.xml#createTimesheetForThisWeek] process [problem invoking the [createTimesheet] service with the map named [parameters] containing [{userLogin=[GenericEntity:UserLogin][createdStamp,2024-04-12 02:36:48.635(java.sql.Timestamp)][createdTxStamp,2024-04-12 02:36:48.551(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledBy,null()][disabledDateTime,null()][enabled,null()][externalAuthId,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2024-04-12 02:36:48.635(java.sql.Timestamp)][lastUpdatedTxStamp,2024-04-12 02:36:48.551(java.sql.Timestamp)][partyId,DemoAuditor(java.lang.String)][passwordHint,null()][requirePasswordChange,null()][successiveFailedLogins,null()][userLdapDn,null()][userLoginId,auditor(java.lang.String)], fromDate=2024-04-07 00:00:00.0, timeZone=sun.util.calendar.ZoneInfo[id="Etc/UTC",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null], partyId=DemoAuditor, locale=fr, thruDate=2024-04-13 23:59:59.0}]: Vous n'avez pas la permission sur le service createTimesheet, raison : Erreur de sécurité : pour exécuter createTimesheet vous devez avoir une des autorisations suivantes : ASSETMAINT_CREATE, ASSETMAINT_ADMIN] Even if I think users can understand the meaning, it's not very clean was: Currently there is only a hard legible message for users without sufficient permissions (sorry in French): {noformat} ERROR MESSAGE java.lang.IllegalArgumentException: Error running script at location [component://projectmgr/src/main/groovy/org/apache/ofbiz/projectmgr/EditWeekTimesheet.groovy]: org.apache.ofbiz.service.ExecutionServiceException: ERROR: Could not complete the Create Timesheet For This Week of no date provided, otherwise for a specific week [TimesheetServices.xml#createTimesheetForThisWeek] process [problem invoking the [createTimesheet] service with the map named [parameters] containing [{userLogin=[GenericEntity:UserLogin][createdStamp,2024-04-12 02:36:48.635(java.sql.Timestamp)][createdTxStamp,2024-04-12 02:36:48.551(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledBy,null()][disabledDateTime,null()][enabled,null()][externalAuthId,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2024-04-12 02:36:48.635(java.sql.Timestamp)][lastUpdatedTxStamp,2024-04-12 02:36:48.551(java.sql.Timestamp)][partyId,DemoAuditor(java.lang.String)][passwordHint,null()][requirePasswordChange,null()][successiveFailedLogins,null()][userLdapDn,null()][userLoginId,auditor(java.lang.String)], fromDate=2024-04-07 00:00:00.0, timeZone=sun.util.calendar.ZoneInfo[id="Etc/UTC",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null], partyId=DemoAuditor, locale=fr, thruDate=2024-04-13 23:59:59.0}]: Vous n'avez pas la permission sur le service createTimesheet, raison : Erreur de sécurité : pour exécuter createTimesheet vous devez avoir une des autorisations suivantes : ASSETMAINT_CREATE, ASSETMAINT_ADMIN] {noformat} Even if I think users can understand the meaning, it's not very clean > Miss UI user message for projectmgr/control/MyTimesheet > ------------------------------------------------------- > > Key: OFBIZ-13015 > URL: https://issues.apache.org/jira/browse/OFBIZ-13015 > Project: OFBiz > Issue Type: Improvement > Components: projectmgr > Affects Versions: Upcoming Branch > Reporter: Jacques Le Roux > Priority: Minor > Fix For: Upcoming Branch > > > Currently there is only a hard legible message for users without sufficient > permissions (sorry in French): > ERROR MESSAGE > java.lang.IllegalArgumentException: Error running script at location > [component://projectmgr/src/main/groovy/org/apache/ofbiz/projectmgr/EditWeekTimesheet.groovy]: > org.apache.ofbiz.service.ExecutionServiceException: ERROR: Could not > complete the Create Timesheet For This Week of no date provided, otherwise > for a specific week [TimesheetServices.xml#createTimesheetForThisWeek] > process [problem invoking the [createTimesheet] service with the map named > [parameters] containing > [{userLogin=[GenericEntity:UserLogin][createdStamp,2024-04-12 > 02:36:48.635(java.sql.Timestamp)][createdTxStamp,2024-04-12 > 02:36:48.551(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledBy,null()][disabledDateTime,null()][enabled,null()][externalAuthId,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2024-04-12 > 02:36:48.635(java.sql.Timestamp)][lastUpdatedTxStamp,2024-04-12 > 02:36:48.551(java.sql.Timestamp)][partyId,DemoAuditor(java.lang.String)][passwordHint,null()][requirePasswordChange,null()][successiveFailedLogins,null()][userLdapDn,null()][userLoginId,auditor(java.lang.String)], > fromDate=2024-04-07 00:00:00.0, > timeZone=sun.util.calendar.ZoneInfo[id="Etc/UTC",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null], > partyId=DemoAuditor, locale=fr, thruDate=2024-04-13 23:59:59.0}]: Vous > n'avez pas la permission sur le service createTimesheet, raison : Erreur de > sécurité : pour exécuter createTimesheet vous devez avoir une des > autorisations suivantes : ASSETMAINT_CREATE, ASSETMAINT_ADMIN] > Even if I think users can understand the meaning, it's not very clean -- This message was sent by Atlassian Jira (v8.20.10#820010)