md-systems / redirect

DEPRECATED: Redirect moved back to drupal.org, use the official repository.
https://www.drupal.org/project/redirect
21 stars 29 forks source link

Prevent changes to the request during onKernelRequestCheckRedirect #76

Closed ceesgeene closed 8 years ago

ceesgeene commented 8 years ago

The redirect module prevents the system.private_file_download route from working. This route is accompanied by a inbound processor "path_processor.files" that alters the path and the request, moving everything after /system/files to a query argument. The redirect module calls the inbound processes very early and allows the request object to be altered while changes to the path are not propagated. This results in the router.route_provider no longer finding the system.private_file_download route.

Berdir commented 8 years ago

Thanks. Simplifed the tests by using a real Request object, rebased and merged.