Skip to content

Commit d120e8f

Browse files
committed
return ID of resource set in Location URL by calling the right object
1 parent 1596b6b commit d120e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uma-server/src/main/java/org/mitre/uma/web/ResourceSetRegistrationEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public String createResourceSet(@RequestBody String jsonString, Model m, Authent
122122

123123
m.addAttribute(HttpCodeView.CODE, HttpStatus.CREATED);
124124
m.addAttribute(JsonEntityView.ENTITY, saved);
125-
m.addAttribute(ResourceSetEntityAbbreviatedView.LOCATION, config.getIssuer() + URL + "/" + rs.getId());
125+
m.addAttribute(ResourceSetEntityAbbreviatedView.LOCATION, config.getIssuer() + URL + "/" + saved.getId());
126126

127127
return ResourceSetEntityAbbreviatedView.VIEWNAME;
128128

0 commit comments

Comments
 (0)