 .../src/Plugin/rest/resource/EntityResource.php    | 52 +++++++++++++---------
 .../EntityResource/EntityResourceTestBase.php      |  7 +--
 2 files changed, 34 insertions(+), 25 deletions(-)

diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
index 3e35f83..d241fef 100644
--- a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
+++ b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
@@ -223,30 +223,38 @@ public function patch(EntityInterface $original_entity, EntityInterface $entity
 
     // Overwrite the received properties.
     $entity_keys = $entity->getEntityType()->getKeys();
+
+
+
+
+    var_dump('--- CURRENT ---');
+    $fields = [];
     foreach ($entity->_restSubmittedFields as $field_name) {
-      $field = $entity->get($field_name);
-
-      // Entity key fields need special treatment: together they uniquely
-      // identify the entity. Therefore it does not make sense to modify any of
-      // them. However, rather than throwing an error, we just ignore them as
-      // long as their specified values match their current values.
-      if (in_array($field_name, $entity_keys, TRUE)) {
-        // @todo Work around the wrong assumption that entity keys need special
-        // treatment, when only read-only fields need it.
-        // This will be fixed in https://www.drupal.org/node/2824851.
-        if ($entity->getEntityTypeId() == 'comment' && $field_name == 'status' && !$original_entity->get($field_name)->access('edit')) {
-          throw new AccessDeniedHttpException("Access denied on updating field '$field_name'.");
-        }
+      $fields[] = $field_name;
+    }
+    var_dump(implode(',', $fields));
+    var_dump('---------------');
+
+    var_dump('--- NEW ---');
+    $fields = [];
+    foreach ($entity as $name => $field) {
+      if ($entity->get($name)->isEmpty() || $entity->get($name)->equals($original_entity->get($name))) {
+        continue;
+      }
+      else {
+        var_dump($name);
+        var_dump($entity->get($name)->value);
+        var_dump($original_entity->get($name)->value);
+      }
+      $fields[] = $name;
+    }
+    var_dump(implode(',', $fields));
+    var_dump('---------------');
 
-        // Unchanged values for entity keys don't need access checking.
-        if ($original_entity->get($field_name)->getValue() === $entity->get($field_name)->getValue()) {
-          continue;
-        }
-        // It is not possible to set the language to NULL as it is automatically
-        // re-initialized. As it must not be empty, skip it if it is.
-        elseif (isset($entity_keys['langcode']) && $field_name === $entity_keys['langcode'] && $field->isEmpty()) {
-          continue;
-        }
+
+    foreach ($entity as $field_name => $field) {
+      if ($entity->get($field_name)->isEmpty() || $entity->get($field_name)->equals($original_entity->get($field_name))) {
+        continue;
       }
 
       if (!$original_entity->get($field_name)->access('edit')) {
diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
index 73dfc62..a0a8997 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
@@ -318,7 +318,7 @@ protected function getExpectedCacheContexts() {
   /**
    * Test a GET request for an entity, plus edge cases to ensure good DX.
    */
-  public function testGet() {
+  public function atestGet() {
     $this->initAuthentication();
     $has_canonical_url = $this->entity->hasLinkTemplate('canonical');
 
@@ -529,7 +529,7 @@ public function testGet() {
   /**
    * Tests a POST request for an entity, plus edge cases to ensure good DX.
    */
-  public function testPost() {
+  public function atestPost() {
     // @todo Remove this in https://www.drupal.org/node/2300677.
     if ($this->entity instanceof ConfigEntityInterface) {
       $this->assertTrue(TRUE, 'POSTing config entities is not yet supported.');
@@ -830,6 +830,7 @@ public function testPatch() {
 
     // DX: 422 when invalid entity: multiple values sent for single-value field.
     $response = $this->request('PATCH', $url, $request_options);
+    var_dump((string)$response->getBody());
     $label_field = $this->entity->getEntityType()->hasKey('label') ? $this->entity->getEntityType()->getKey('label') : static::$labelFieldName;
     $label_field_capitalized = ucfirst($label_field);
     $this->assertResourceErrorResponse(422, "Unprocessable Entity: validation failed.\n$label_field: $label_field_capitalized: this field cannot hold more than 1 values.\n", $response);
@@ -918,7 +919,7 @@ public function testPatch() {
   /**
    * Tests a DELETE request for an entity, plus edge cases to ensure good DX.
    */
-  public function testDelete() {
+  public function atestDelete() {
     // @todo Remove this in https://www.drupal.org/node/2300677.
     if ($this->entity instanceof ConfigEntityInterface) {
       $this->assertTrue(TRUE, 'DELETEing config entities is not yet supported.');
