Skip to content

Commit

Permalink
SHIBUI-799: code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dima767 committed Dec 11, 2018
1 parent 8e21a09 commit 3ca883c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import com.fasterxml.jackson.databind.ObjectMapper
import edu.internet2.tier.shibboleth.admin.ui.jsonschema.JsonSchemaResourceLocation
import edu.internet2.tier.shibboleth.admin.ui.jsonschema.JsonSchemaResourceLocationRegistry
import edu.internet2.tier.shibboleth.admin.ui.service.JsonSchemaBuilderService
import groovy.util.logging.Slf4j
import lombok.extern.java.Log
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
Expand All @@ -23,6 +25,7 @@ import static org.springframework.http.HttpStatus.INTERNAL_SERVER_ERROR
*/
@RestController
@RequestMapping('/api/ui/NameIdFormatFilter')
@Slf4j
class NameIdFormatFilterUiDefinitionController {

@Autowired
Expand All @@ -44,7 +47,7 @@ class NameIdFormatFilterUiDefinitionController {
return ResponseEntity.ok(parsedJson)
}
catch (Exception e) {
e.printStackTrace()
log.error(e.getMessage(), e)
return ResponseEntity.status(INTERNAL_SERVER_ERROR)
.body([jsonParseError : e.getMessage(),
sourceUiSchemaDefinitionFile: this.jsonSchemaLocation.url])
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include 'backend', 'ui', 'pacj-module'
include 'backend', 'ui', 'pac4j-module'

0 comments on commit 3ca883c

Please sign in to comment.