This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 7dfc263d authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

Fixing ids

parent 9518bb15
1 merge request!55June Release
......@@ -54,7 +54,7 @@ public class ExerciseResource {
public ResponseEntity<Resource> getRepositoryFile(HttpServletRequest request, @RequestParam("filePath") String filePath) throws IOException {
String pattern = (String) request.getAttribute(HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE);
String exerciseId = new AntPathMatcher().extractPathWithinPattern(pattern, request.getPathInfo());
String exerciseId = new AntPathMatcher().extractPathWithinPattern(pattern, request.getRequestURI());
ExerciseId parsedId;
try {
......
......@@ -157,7 +157,7 @@ public class StatisticsResource {
String pattern = (String) request.getAttribute(HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE);
String exerciseId = new AntPathMatcher().extractPathWithinPattern(pattern, request.getPathInfo());
String exerciseId = new AntPathMatcher().extractPathWithinPattern(pattern, request.getRequestURI());
log.debug("REST request to get Statistics for ExerciseID : {}", exerciseId);
Optional<StatisticsDTO> statisticsDTO = statisticsService.findOneByExerciseID(exerciseId);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment