mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
05.41.2013 4354abe663ab1e0b6a56d3e0a8454b658f7caf0c
refs
author Matthew Swift <matthew.swift@forgerock.com>
Friday, July 5, 2013 23:41 +0200
committer Matthew Swift <matthew.swift@forgerock.com>
Friday, July 5, 2013 23:41 +0200
commit4354abe663ab1e0b6a56d3e0a8454b658f7caf0c
tree 4d0143c53203350bc164d098a346b4bb132a118c tree | zip | gz
parent ca7f18ef7cc6630c9dfb3e94a3a8d17fbae85d7f view | diff
Fix OPENDJ-1044: Doing a PUT with JSON data identical to what is on the server results in 400 status code

* avoid performing modify operations when a PUT or PATCH is determined to be a no-op
* add unit tests which check that no modify request is sent.
3 files modified
500 ■■■■■ changed files
opendj-sdk/opendj3/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/LDAPCollectionResourceProvider.java 199 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj3/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Utils.java 6 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj3/opendj-rest2ldap/src/test/java/org/forgerock/opendj/rest2ldap/BasicRequestsTest.java 295 ●●●●● diff | view | raw | blame | history