system/files/foo prints gibberish (double-gzencoded page cache) for anonymous users.

Comments

mfb’s picture

Version: 7.x-dev » 8.x-dev

patch also applies on 8.x branch

Status: Needs review » Needs work

The last submitted patch, file_download.patch, failed testing.

mfb’s picture

Title: system/files/foo gibberish if cache and page_compression are enabled » gibberish on certain paths if cache and page_compression are enabled
Component: file system » base system
Status: Needs work » Needs review
StatusFileSize
new1.82 KB

I found a few other places where this issue crops up, including image and comment modules. Let's see if the fix for image module also fixes the test failure.

mfb’s picture

StatusFileSize
new3.14 KB

Added a test for the system/files case of this bug that fails without the patch.

mfb’s picture

Issue tags: +Needs backport to D7
mfb’s picture

Also found that profile module suffers from this bug.

  drupal_not_found();
  return;

and

  drupal_access_denied();
  return; 

instead of

  return MENU_NOT_FOUND;

and

  return MENU_ACCESS_DENIED;
mfb’s picture

StatusFileSize
new3.2 KB

rerolled.

mfb’s picture

Version: 8.x-dev » 7.x-dev
StatusFileSize
new5.71 KB

I believe these issues have all been separately fixed in d8 so I am moving this back to d7.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.