Skip to content
Snippets Groups Projects
Commit 7285f311 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

fixed version fetching

parent 6b322699
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!589Feature error reporting
......@@ -16,6 +16,7 @@ import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.ServletContext;
import java.io.IOException;
@RestController
......@@ -24,16 +25,18 @@ public class MinervaNetController {
private Logger logger = Logger.getLogger(MinervaNetController.class);
private ServletContext context;
private IConfigurationService configurationService;
@Autowired
public MinervaNetController(IConfigurationService configurationService) {
public MinervaNetController(ServletContext context, IConfigurationService configurationService) {
this.context = context;
this.configurationService = configurationService;
}
@PostMapping(value = "/submitError")
public void submitError(@RequestBody ErrorReport report) throws IOException {
String version = Configuration.getSystemVersion(null);
String version = configurationService.getSystemSvnVersion(context.getRealPath("/"));
report.setVersion(version);
ObjectMapper mapper = new ObjectMapper();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment