BrowserHtmlDebugTrait should set correct permissions on created files

Created on 26 December 2018, over 6 years ago
Updated 15 August 2025, 9 days ago

Currently it is not possible to remove browser output files without sudo.

🐛 Bug report
Status

Postponed: needs info

Version

11.0 🔥

Component

phpunit

Created by

🇷🇺Russia Chi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia acbramley

    I can't reproduce this, I think it would be dependent on file system permissions on the directory?

    I created a fresh browser_output directory locally and ran a test and permissions were fine. Was able to delete the html output without sudo

    adam@8fa2a3a71304:data $ ls -al app/sites/simpletest/browser_output/
    total 68
    drwxr-xr-x    2 adam     adam          4096 Aug 15 03:07 .
    drwxr-xr-x  152 adam     adam          4096 Aug 15 03:07 ..
    -rw-r--r--    1 adam     adam            55 Aug 15 03:07 .htaccess
    -rw-r--r--    1 adam     adam          3567 Aug 15 03:07 Drupal_Tests_node_Functional_NodeAccessCacheabilityTest-1-84119625.html
    
Production build 0.71.5 2024