The file key provider method does not correctly calculate the location of the file when retrieving the key from the file. It fails to include a slash between the directory and the file name, resulting in an error. The only way to make it work is to include a trailing slash when defining the directory, which results in a double slash (//) appearing when the location is calculated elsewhere, but does not otherwise appear to cause a problem.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rlhawk’s picture

Status: Active » Needs review
FileSize
2.21 KB

The attached patch fixes the way the file location is calculated when retrieving a key from a file, so that a trailing slash in the directory isn't necessary. It also adds an update hook that removes the trailing slash from any existing settings and removes any trailing slash when the directory is submitted on the configuration page.

rlhawk’s picture

Issue summary: View changes
Status: Needs review » Fixed

Due to other changes, this patch is no longer needed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.