[ARVADOS] updated: 2.1.0-2170-gd1b1a36ca

Git user git at public.arvados.org
Fri Mar 25 18:54:28 UTC 2022


Summary of changes:
 services/api/app/controllers/arvados/v1/links_controller.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

       via  d1b1a36ca2c71c7bc60f603d43755ba828af3666 (commit)
      from  4b0200c3f6f70e90534a2f623cdf631b3a75ec6d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit d1b1a36ca2c71c7bc60f603d43755ba828af3666
Author: Tom Clegg <tom at curii.com>
Date:   Fri Mar 25 14:54:05 2022 -0400

    18865: Fix 422 on nonexistent link uuid.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>

diff --git a/services/api/app/controllers/arvados/v1/links_controller.rb b/services/api/app/controllers/arvados/v1/links_controller.rb
index 14e010640..64e070999 100644
--- a/services/api/app/controllers/arvados/v1/links_controller.rb
+++ b/services/api/app/controllers/arvados/v1/links_controller.rb
@@ -58,7 +58,9 @@ class Arvados::V1::LinksController < ApplicationController
       # user or (b) its head_uuid is an object the current_user
       # can_manage.
       @object = Link.unscoped.where(uuid: params[:uuid]).first
-      if @object.link_class != 'permission'
+      if @object && @object.link_class != 'permission'
+        # Throw this out and re-fetch using generic permission query
+        @object = nil
         super
       elsif @object &&
          current_user.uuid != @object.tail_uuid &&

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list