[ARVADOS] created: 1.3.0-200-g1c0566366

Git user git at public.curoverse.com
Tue Jan 29 14:34:03 EST 2019


        at  1c05663663b1002dee41cebc7d766fd43345033e (commit)


commit 1c05663663b1002dee41cebc7d766fd43345033e
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date:   Tue Jan 29 16:25:02 2019 -0300

    14738: Fixes the double-slash usage on requests to prevent 301 from controller
    
    When a request is made to controller using double slashes, for example to
    http://apiserver//arvados/v1/collections, arvados controller returns a 301
    that breaks CORS.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>

diff --git a/apps/workbench/app/assets/javascripts/components/edit_tags.js b/apps/workbench/app/assets/javascripts/components/edit_tags.js
index ac4d2df7b..946344a2c 100644
--- a/apps/workbench/app/assets/javascripts/components/edit_tags.js
+++ b/apps/workbench/app/assets/javascripts/components/edit_tags.js
@@ -192,11 +192,11 @@ window.TagEditorApp = {
         vnode.state.tags = []
         vnode.state.dirty = m.stream(false)
         vnode.state.dirty.map(m.redraw)
-        vnode.state.objPath = '/arvados/v1/'+vnode.attrs.targetController+'/'+vnode.attrs.targetUuid
+        vnode.state.objPath = 'arvados/v1/'+vnode.attrs.targetController+'/'+vnode.attrs.targetUuid
         // Get tags
         vnode.state.sessionDB.request(
             vnode.state.sessionDB.loadLocal(),
-            '/arvados/v1/'+vnode.attrs.targetController,
+            'arvados/v1/'+vnode.attrs.targetController,
             {
                 data: {
                     filters: JSON.stringify([['uuid', '=', vnode.attrs.targetUuid]]),

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list