Skip to content

Commit

Permalink
Merge branch 'master' into task/prepare_3_11_0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega authored Sep 19, 2024
2 parents da650a3 + 8f553a8 commit 217809e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ public List<Event> getEvents(javax.servlet.http.HttpServletRequest request) thro
LOGGER.warn("[NGSIRestHandler] Bad HTTP notification ('"
+ CommonConstants.HEADER_FIWARE_SERVICE
+ "' header length greater than "
+ NGSIConstants.SERVICE_HEADER_MAX_LEN + ")");
+ NGSIConstants.SERVICE_HEADER_MAX_LEN + ") for " + headerValue);
throw new HTTPBadRequestException(
"'" + CommonConstants.HEADER_FIWARE_SERVICE
+ "' header length greater than "
+ NGSIConstants.SERVICE_HEADER_MAX_LEN + ")");
+ NGSIConstants.SERVICE_HEADER_MAX_LEN + ") for " + headerValue);
} else {
service = headerValue;
} // if else
Expand All @@ -231,17 +231,17 @@ public List<Event> getEvents(javax.servlet.http.HttpServletRequest request) thro
LOGGER.warn("[NGSIRestHandler] Bad HTTP notification ('"
+ CommonConstants.HEADER_FIWARE_SERVICE_PATH
+ "' header value length greater than "
+ NGSIConstants.SERVICE_PATH_HEADER_MAX_LEN + ")");
+ NGSIConstants.SERVICE_PATH_HEADER_MAX_LEN + ") for " + headerValue);
throw new HTTPBadRequestException(
"'fiware-servicePath' header length greater than "
+ NGSIConstants.SERVICE_PATH_HEADER_MAX_LEN + ")");
+ NGSIConstants.SERVICE_PATH_HEADER_MAX_LEN + ") for " + headerValue);
} else if (wrongServicePathHeaderInitialCharacter(splitValue)) {
LOGGER.warn("[NGSIRestHandler] Bad HTTP notification ('"
+ CommonConstants.HEADER_FIWARE_SERVICE_PATH
+ "' header value must start with '/'");
+ "' header value " + headerValue + " must start with '/'");
throw new HTTPBadRequestException(
"'" + CommonConstants.HEADER_FIWARE_SERVICE_PATH
+ "' header value must start with '/'");
+ "' header value " + headerValue + " must start with '/'");
} // if else
} // for

Expand All @@ -252,7 +252,7 @@ public List<Event> getEvents(javax.servlet.http.HttpServletRequest request) thro
ngsiVersion = headerValue;
break;
default:
LOGGER.debug("[NGSIRestHandler] Unnecessary header");
LOGGER.debug("[NGSIRestHandler] Unnecessary header: " + headerName + " value " + headerValue);
} // switch
} // while

Expand Down

0 comments on commit 217809e

Please sign in to comment.