Merge branch '16665-keepproxy-spurious-413-status' into main. Closes #16665
[arvados.git] / services / api / app / controllers / application_controller.rb
index 1800e125d27d8e0b89795ed836924762b75ec5d1..fc33dde4477b45d059db2cbd7a63f919eb67e167 100644 (file)
@@ -397,7 +397,7 @@ class ApplicationController < ActionController::Base
     if not current_user
       respond_to do |format|
         format.json { send_error("Not logged in", status: 401) }
-        format.html { redirect_to '/auth/joshid' }
+        format.html { redirect_to '/login' }
       end
       false
     end
@@ -578,7 +578,7 @@ class ApplicationController < ActionController::Base
       if @objects.respond_to? :except
         list[:items_available] = @objects.
           except(:limit).except(:offset).
-          distinct.count(:id)
+          count(@distinct ? :id : '*')
       end
     when 'none'
     else