Skip to content

Commit

Permalink
super.post() replaced with super.put() in SignUp
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Oct 18, 2023
1 parent 141c98e commit e8b764d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public Response post(Model agentModel, @QueryParam("default") @DefaultValue("fal
certPublicKey);
new Skolemizer(publicKeyGraphUri.toString()).apply(publicKeyModel);

Response publicKeyResponse = super.post(publicKeyModel, false, publicKeyGraphUri);
Response publicKeyResponse = super.put(publicKeyModel, false, publicKeyGraphUri);
if (publicKeyResponse.getStatus() != Response.Status.CREATED.getStatusCode())
{
if (log.isErrorEnabled()) log.error("Cannot create PublicKey");
Expand All @@ -258,7 +258,7 @@ public Response post(Model agentModel, @QueryParam("default") @DefaultValue("fal
agent.addProperty(Cert.key, publicKey); // add public key
agentModel.add(agentModel.createResource(getSystem().getSecretaryWebIDURI().toString()), ACL.delegates, agent); // make secretary delegate whis agent

Response agentResponse = super.post(agentModel, false, agentGraphUri);
Response agentResponse = super.put(agentModel, false, agentGraphUri);
if (agentResponse.getStatus() != Response.Status.CREATED.getStatusCode())
{
if (log.isErrorEnabled()) log.error("Cannot create Agent");
Expand All @@ -275,7 +275,7 @@ public Response post(Model agentModel, @QueryParam("default") @DefaultValue("fal
publicKeyGraphUri);
new Skolemizer(authGraphUri.toString()).apply(authModel);

Response authResponse = super.post(authModel, false, authGraphUri);
Response authResponse = super.put(authModel, false, authGraphUri);
if (authResponse.getStatus() != Response.Status.CREATED.getStatusCode())
{
if (log.isErrorEnabled()) log.error("Cannot create Authorization");
Expand Down

0 comments on commit e8b764d

Please sign in to comment.