Closed (fixed)
Project:
Path redirect
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2009 at 10:43 UTC
Updated:
13 Aug 2010 at 05:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
fuerst commentedThe attached patch simply is adapting the patch from #594326: Breaks Drush to this module.
Comment #2
dave reidWhy would a redirect be executed by Path redirect? I can understand Global redirect since it 'works' for basically all requests, but path redirect should only happen on specific paths. Did you actually test that this doesn't work with Drush? Can you give insight into the conditions leading to failure?
Comment #3
fuerst commentedWhen executing
drush updateat the command line the$robject inside_path_redirect_check()will be populated by this values:The
$_GETvariable has this content:At my site there exists a path redirect for home/home which is configured as front page in /admin/settings/site-information. If I delete that redirection or set the front page configuration to another non-redirected URL like node/5 the error does not occur.
Looks like drush always calls the front page of Drupal. If the front page is set to a path redirect a redirection will be triggered which in turn breaks Drush.
So the solution to not redirect when called by Drush looks good to me. What do you think?
Comment #4
dave reidIn this case, you should be using global redirect and not using path_redirect.
Comment #5
fuerst commentedPath Redirect will be used by the Pathauto module. So the redirect in question is not configured by me but setup automatically by Pathauto. Looks like a unfortunate condition which is surely not the fault of Path Redirect. May be it can be fixed in Drush itself. Will get back to the issue queue there.
Comment #6
dave reidMarking this issue as fixed due to lack of response.