[prev in list] [next in list] [prev in thread] [next in thread]
List: forgerock-openidm
Subject: [OpenIDM] OpenIDM Beginner's Question
From: andi.egloff () forgerock ! com (Andreas Egloff)
Date: 2012-04-11 13:50:26
Message-ID: CALto_txtMbN4Oob6E+681kQe5yjmrJFMY=2T7Oqkdg9+oCzgQA () mail ! gmail ! com
[Download RAW message or body]
Thanks
2012/4/11 Frank Br?ckner <fbrueckn at googlemail.com>
> You should be able to, you may have found a bug with the orientdb
> repository (either the version we're using or our impl). Could you file a
> jira?
>
>
> Done: https://bugster.forgerock.org/jira/browse/OPENIDM-587
>
> (You probably know already, but to make sure: for production we currently
> support the JDBC repository)
>
>
> Yes, that is written in the docs.
>
> Thanks
> Andi
>
>
> Thanks + BR
> Frank
>
> 2012/4/10 Frank Br?ckner <fbrueckn at googlemail.com>
>
> > Hi
> >
> > That again helped to get further:
> >
> > H:\Tools\Curl\bin>curl --header "If-Match: \"0\"" --header
> > "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password:
> > openidm-admin" --data "{\"email\":\"fdoe at \
> > example.com\",\"familyName\":\"Doe\",\"userName\":\"fdoe\", \
> > \"givenName\":\"Felicitas\",\"displayName\":\"Felicitas Doe\"}" --request PUT \
> > "http://localhost:8080/openidm/managed/user/repoUser1"
> >
> > Loading new user "fdoe at example.com" and synchronizing her back to OpenDJ
> > worked.
> >
> > Similarly for the delete you would supply the If-Match: "0" header, but
> > use DELETE rather than PUT
> >
> >
> > That also worked. User "fdoe at example.com" resp. repoUser1 was deleted.
> >
> >
> > Then I thought one could use the initial command again ...
> >
> > H:\Tools\Curl\bin> curl --header "X-OpenIDM-Username: openidm-admin"
> > --header "X-OpenIDM-Password: openidm-admin" --data "\"email\":\"
> > fdoe at example.com\",\"familyName\":\"Doe\",\"userName\":\"fdoe\",
> > \"givenName\":\"Felicitas\",\"displayName\":\"Felicitas Doe\"}" --request
> > PUT "http://localhost:8080/
> > openidm/managed/user/repoUser1"
> >
> > ... but that returned:
> >
> > {"*error*":500,"reason":"Internal Server
> > Error","detail":"com.orientechnologies.orient.core.exception.OCommandExecutionException:
> > Error on execution of command: OSQLQuery [text=select * from managed_user
> > where _openidm_id = '*repoUser1*']"}
> >
> >
> > When I changed "repoUser1" to "repoUser2" the add/PUT worked again.
> > But deleting "repoUser2" and adding it via curl command again gave the
> > same error result as above:
> >
> > {"*error*":500,"reason":"Internal Server
> > Error","detail":"com.orientechnologies.orient.core.exception.
> > OCommandExecutionException:
> > Error on execution of command: OSQLQuery [text=select * from managed_user
> > where _openidm_id = '*repoUser2*']"}
> >
> > Isn't it possible to add the same user (_openidm_id) again after deletion
> > ?
> >
> > BR
> > Frank
> >
>
> _______________________________________________
> OpenIDM mailing list
> OpenIDM at forgerock.org
> https://lists.forgerock.org/mailman/listinfo/openidm
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.forgerock.org/pipermail/openidm/attachments/20120411/e144480d/attachment.html \
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic