Fix VRead in web testing UI

This commit is contained in:
jamesagnew 2016-03-02 22:35:17 -05:00
parent b147083f5a
commit 0ea8457a00
2 changed files with 9 additions and 1 deletions

View File

@ -285,7 +285,11 @@ public class Controller extends BaseController {
try {
IdDt resid = new IdDt(def.getName(), id, versionId);
ourLog.info(logPrefix(theModel) + "Reading resource: {}", resid);
client.read(def.getImplementingClass(), resid);
if (resid.hasVersionIdPart()) {
client.vread(def.getImplementingClass(), resid);
} else {
client.read(def.getImplementingClass(), resid);
}
} catch (Exception e) {
returnsResource = handleClientException(client, e, theModel);
}

View File

@ -174,6 +174,10 @@
Prevent an unneeded warning when parsing a resource containing
a declared extension. Thanks to Matt Blanchette for reporting!
</action>
<action type="fix">
Web Tester UI did not invoke VRead even if a version ID was specified. Thanks
to Poseidon for reporting!
</action>
</release>
<release version="1.4" date="2016-02-04">
<action type="add">