|
@@ -235,7 +235,7 @@ public class ApiGisSurveyController {
|
|
|
final String URI_PATH = request.getRequestURI();
|
|
|
final String strPlatform = CommTool.getPlatformByAgent(strClientType, strUserAgent);
|
|
|
final String strUserId = (String) request.getAttribute(TokenAuthenticationService.HEADER_USERID);
|
|
|
- if (StringUtils.isAnyBlank(operator, jobId, nature) || CollectionUtils.isEmpty(files)) {
|
|
|
+ if (StringUtils.isAnyBlank(operator, jobId, nature) || StringUtils.length(jobId) > 64 || CollectionUtils.isEmpty(files)) {
|
|
|
throw new SelfException(ResponseCode.STATUS_ERROR_PARAM_FORMAT.toStrCode()
|
|
|
, String.format(ApiURI.EXCEPTION_FORMAT
|
|
|
, strPlatform
|
|
@@ -309,7 +309,7 @@ public class ApiGisSurveyController {
|
|
|
final String URI_PATH = request.getRequestURI();
|
|
|
final String strPlatform = CommTool.getPlatformByAgent(strClientType, strUserAgent);
|
|
|
final String strUserId = (String) request.getAttribute(TokenAuthenticationService.HEADER_USERID);
|
|
|
- if (StringUtils.isBlank(jobId)) {
|
|
|
+ if (StringUtils.isBlank(jobId) || StringUtils.length(jobId) > 64) {
|
|
|
throw new SelfException(ResponseCode.STATUS_ERROR_PARAM_FORMAT.toStrCode()
|
|
|
, String.format(ApiURI.EXCEPTION_FORMAT
|
|
|
, strPlatform
|
|
@@ -373,7 +373,7 @@ public class ApiGisSurveyController {
|
|
|
final String URI_PATH = request.getRequestURI();
|
|
|
final String strPlatform = CommTool.getPlatformByAgent(strClientType, strUserAgent);
|
|
|
final String strUserId = (String) request.getAttribute(TokenAuthenticationService.HEADER_USERID);
|
|
|
- if (StringUtils.isBlank(jobId)) {
|
|
|
+ if (StringUtils.isBlank(jobId) || StringUtils.length(jobId) > 64) {
|
|
|
throw new SelfException(ResponseCode.STATUS_ERROR_PARAM_FORMAT.toStrCode()
|
|
|
, String.format(ApiURI.EXCEPTION_FORMAT
|
|
|
, strPlatform
|