Issue 16006

node/%/edit redirect of varnish

16006
Reporter: bko
Assignee: mdoering
Type: Bug
Summary: node/%/edit redirect of varnish
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2014-06-26 11:54:48.439
Updated: 2014-07-08 10:30:30.429
Resolved: 2014-07-08 10:29:51.596
        
Description: When logged in from www.gbif*.org, instead of drupaledit.gbif*.org, visiting urls like www.gbif-uat.org/node/%/edit will return a 404 error:

There is no Action mapped for namespace [/node] and action name [3091/edit] associated with context path [/b_portal].

But visiting drupal-edit.gbif-uat.org/node/%/edit is fine.

Is this something we can fix? If editors and admins can login from www.gbif*.org rather then needing to remember to visit drupal-edit.gbif*.org, that would contribute to the integrity of our Drupal-JavaWeb setup.]]>
    

Attachment action mapped.png



Author: bko@gbif.org
Comment: [~mdoering@gbif.org], do you have any insight for this issue, please?
Created: 2014-06-26 11:55:36.799
Updated: 2014-06-26 11:55:36.799


Author: mdoering@gbif.org
Created: 2014-06-26 12:22:04.205
Updated: 2014-06-26 12:22:04.205
        
it definitely needs a varnish change to pass on urls with /node to drupal.
Not sure what other resources these pages need taht we also do not pass thru? Is the goal to remove the druapledit cname entirely? If yes we need to make this work, otherwise using the edit cname feels safer.
    


Author: bko@gbif.org
Created: 2014-06-26 12:48:58.568
Updated: 2014-06-26 12:48:58.568
        
Yes I believe in the future we want only: cms.gbif.org, www.gbif.org, www.gbif-uat.org and www.gbif-dev.org for both Drupal and JavaWeb([~trobertson@gbif.org] please correct me if I miss anything), and at least for now we can do this to make the web layer feels more integrated. It's also less confusing to editors because I find it's hard for them to remember this extra drupal-edit domain name to work.

The node edit page is the only one I find so far that does't pass through. I guess the rest, if any, is to be found out.
    


Author: mdoering@gbif.org
Comment: Then lets give it a shot on UAT. Can we remove the drupal-edit cname on UAT if that is working then?
Created: 2014-06-26 13:00:05.813
Updated: 2014-06-26 13:00:05.813


Author: mdoering@gbif.org
Created: 2014-06-26 13:04:24.739
Updated: 2014-06-26 13:04:24.739
        
Ah, the trouble is that /node is taken by our portal for the GBIF node pages.
For example http://www.gbif-uat.org/node/b8a5be24-9225-4ba5-b664-159308a4b537

I can try to look for uuids and return /node/INTEGER to drupal but /node/UUID to java portal, but maybe we can use a different path name instead of /node for drupal?
    


Author: mdoering@gbif.org
Created: 2014-06-26 13:10:34.16
Updated: 2014-06-26 13:10:34.16
        
Seems to be working on UAT now:

http://www.gbif-uat.org/node/10/edit
http://www.gbif-uat.org/node/b8a5be24-9225-4ba5-b664-159308a4b537
    


Author: bko@gbif.org
Created: 2014-06-26 13:53:59.673
Updated: 2014-06-26 13:53:59.673
        
Great! It works nicely!

From outside Drupal will make url alias for node contents with "page", but internally the edit link will point to raw url like node/%/edit. This only happens  when the user is logged in and he/she has permission to visit the edit url.

It's possible that a module implements node/%/[string] but it's not a worry now.

Thanks Markus for this swift fix!
    


Author: bko@gbif.org
Created: 2014-06-26 13:57:18.404
Updated: 2014-06-26 13:57:18.404
        
When visit from www.gbif-uat.org logged in, the menu bar doesn't show and the browser returns 404 for this resource:
http://www.gbif-uat.org/js/admin_menu/cache/1b3ba2502f91a9ae30b3c0b44147de89

Guess this is another thing to add.
    


Author: bko@gbif.org
Comment: This is fixed by Markus after changing vcl rules. Both node/%/edit and js/admin_menu are working from www.gbif.org.
Created: 2014-07-02 17:31:14.786
Updated: 2014-07-02 17:31:14.786


Author: bko@gbif.org
Created: 2014-07-07 17:28:24.836
Updated: 2014-07-07 17:28:24.836
        
Hi Markus - I just see that www.gbif-uat.org doesn't show the admin menu and it's looking for the path:

http://www.gbif-uat.org/js/admin_menu/cache/0ab78485db82786d2ab5feb3df250178

Could you please fix it as you did for the live portal? Thanks!
    


Author: mdoering@gbif.org
Comment: should be done now, [~bko@gbif.org]please verify
Created: 2014-07-07 17:59:14.652
Updated: 2014-07-07 17:59:14.652


Author: mdoering@gbif.org
Comment: Ive also updated dev varnish just now
Created: 2014-07-07 17:59:39.834
Updated: 2014-07-07 18:00:50.639


Author: bko@gbif.org
Comment: Verified. Works on both UAT and DEV. It's already working on PROD.
Created: 2014-07-08 10:29:51.62
Updated: 2014-07-08 10:29:51.62


Author: bko@gbif.org
Comment: Thanks, [~mdoering@gbif.org]!
Created: 2014-07-08 10:30:30.429
Updated: 2014-07-08 10:30:30.429