diff --git a/hapi-fhir-testpage-overlay/src/main/java/ca/uhn/fhir/to/Controller.java b/hapi-fhir-testpage-overlay/src/main/java/ca/uhn/fhir/to/Controller.java
index 5736ea121b8..0c1405400ce 100644
--- a/hapi-fhir-testpage-overlay/src/main/java/ca/uhn/fhir/to/Controller.java
+++ b/hapi-fhir-testpage-overlay/src/main/java/ca/uhn/fhir/to/Controller.java
@@ -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);
}
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index cfbf9ecfb58..324cdfd3aab 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -174,6 +174,10 @@
Prevent an unneeded warning when parsing a resource containing
a declared extension. Thanks to Matt Blanchette for reporting!
+
+ Web Tester UI did not invoke VRead even if a version ID was specified. Thanks
+ to Poseidon for reporting!
+