You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ProfileUploadRetrieval there is a @PostConstruct with a copy command.
for (int i = 1; i <= 10; i++) {
try {
copy(getFile(getClass().getResource("/images/cats/" + i + ".jpg")), new File(catPicturesDirectory, i + ".jpg"));
} catch (Exception e) {
log.error("Unable to copy pictures" + e.getMessage());
}
}
This seems to always fail, but it does not impact the lesson at all. So maybe remove this code? Now you will see error message during startup of WebGoat.
The text was updated successfully, but these errors were encountered:
Fix the copying (with the Spring Boot embedded jar it failed due to not using the classpath resource). The copying is necessary as the paths are returned. The UI reads them from using Thymeleaf.
In ProfileUploadRetrieval there is a @PostConstruct with a copy command.
for (int i = 1; i <= 10; i++) {
try {
copy(getFile(getClass().getResource("/images/cats/" + i + ".jpg")), new File(catPicturesDirectory, i + ".jpg"));
} catch (Exception e) {
log.error("Unable to copy pictures" + e.getMessage());
}
}
This seems to always fail, but it does not impact the lesson at all. So maybe remove this code? Now you will see error message during startup of WebGoat.
The text was updated successfully, but these errors were encountered: