=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/system/SystemInfo.java' --- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/system/SystemInfo.java 2013-09-04 13:52:48 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/system/SystemInfo.java 2013-10-14 07:47:21 +0000 @@ -99,7 +99,7 @@ this.databaseInfo = null; this.memoryInfo = null; this.cpuCores = null; - this.systemId = systemId; + this.systemId = null; } // ------------------------------------------------------------------------- === modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/SystemController.java' --- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/SystemController.java 2013-10-10 17:17:33 +0000 +++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/SystemController.java 2013-10-14 07:47:21 +0000 @@ -161,6 +161,17 @@ JacksonUtils.toJson( response.getOutputStream(), info ); } + @RequestMapping( value = "/context", method = RequestMethod.GET, produces = { "*/*", "application/json" } ) + public void getContextInfo( HttpServletRequest request, HttpServletResponse response ) throws IOException + { + SystemInfo info = new SystemInfo(); + + info.setContextPath( ContextUtils.getContextPath( request ) ); + info.setUserAgent( request.getHeader( ContextUtils.HEADER_USER_AGENT ) ); + + JacksonUtils.toJson( response.getOutputStream(), info ); + } + @RequestMapping( value = "/ping", method = RequestMethod.GET, produces = "text/plain" ) public @ResponseBody String ping( Model model ) {