Provide Drupal root path on file system admin form

Created on 12 April 2016, over 8 years ago
Updated 7 November 2023, about 1 year ago

Problem/Motivation

The page File system /admin/config/media/file-system contains the info about the file system but has missing information regarding the application root folder.

Steps to reproduce

Install the Drupal project on the shared hosting.

Proposed resolution

Introduce a description of the application root and add the info for relative paths with resolved absolute paths.

Remaining tasks

Add an item at File system page which describes the application root.
Decide how to provide additional info for the absolute paths and implement it.

User interface changes

The content of the page File system will be updated.

API changes

-

Data model changes

-

Release notes snippet

Initial summary

It is not always obvious what directory should be used for the private file system path, especially for sites on shared hosting.

It would be helpful to show the full path to the Drupal root directory on the file system admin form (/admin/config/media/file-system)

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component
SystemΒ  β†’

Last updated 2 days ago

No maintainer
Created by

πŸ‡¬πŸ‡§United Kingdom malcomio

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Needs usability review

    Used to alert the usability topic maintainer(s) that an issue significantly affects (or has the potential to affect) the usability of Drupal, and their signoff is needed. When adding this tag, make it easy to review the issue. Make sure the issue summary describes the problem and the proposed solution. Screenshots usually help a lot! To get sign-off on issues with the "Needs usability review" tag, post about them in the #ux channel on Drupal Slack, and/or attend a UX meeting to demo the patch and get direct feedback from designers/UX folks/product management on next steps. If an issue represents a significant new feature, UI change, or change to the general "user experience" of Drupal, use Needs product manager review instead. See the scope of responsibilities for product managers.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

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

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request β†’ as a guide.

    This could use an issue summary update for the proposed solution. Seems there is still discussion going on so when the path forward is decided it should be added to the IS. Will help the committer.

  • Status changed to Needs review almost 2 years ago
  • πŸ‡ΊπŸ‡¦Ukraine voleger Ukraine, Rivne

    Rerolled #21 in a MR. Added descriptions for items regarding absolute values if applicable.

  • Status changed to Needs work almost 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thanks!

    Code wise I think it looks fine. Not sure if we will need a trigger_error for the new parameter or not.

    This could use a simple change record though to announce the new parameter option.

  • Status changed to Needs review almost 2 years ago
  • πŸ‡ΊπŸ‡¦Ukraine voleger Ukraine, Rivne

    Added CR https://www.drupal.org/node/3341696 β†’
    Updated constructor to handle new parameter addition.

  • Status changed to RTBC almost 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thanks think this good for committer review now.

  • Status changed to Needs work almost 2 years ago
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    This is changing the user interface, adding tag. As such this should have before and after screenshot available from the issue summary. This is also adding text to the public and private file descriptions, so I think this should have a usability review.

    I read the change record, well several times, and I am still not sure what 'related' means in "public, private, and temporary paths are related". Tagging for a change record update. This is not a complicated change but a screenshot could be useful in the change record.

    I skimmed the patch and made some comments. I also note this was set to RTBC with an unresolved comment.

  • Status changed to Needs review almost 2 years ago
  • πŸ‡ΊπŸ‡¦Ukraine voleger Ukraine, Rivne

    Changed the relative paths with absolute as this will show the actual location of specific stream wrappers.
    Added check for path accessibility. The realpath() file_system method fails absolute path resolving if the directory not exists.
    I have added screenshots before β†’ , after β†’ , and after with warning messages β†’ .

  • Status changed to Needs work over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Brought this up in #ux channel and it was briefly looked at but was mentioned

    taken a look but it would be helpful if the issue summary would have been updated illustrating the changes that will be made. at the moment the ui changes section only states The content of the page File system will be updated. . even if i apply a patch i consider it helpful to get an overview which changes were made.

  • πŸ‡ΊπŸ‡¦Ukraine voleger Ukraine, Rivne

    I agree that IS needs to be updated, but please check the screenshots from #35.
    The latest changes in MR convert paths to absolute if they are relative. And if the destination does not exist, the path value is printed as is (relative or absolute) with an appropriate warning message that reuses existing sentences and translations.
    In case such behavior is acceptable I'll update IS as I can.

  • Pipeline finished with Failed
    about 1 year ago
    Total: 862s
    #45610
  • Pipeline finished with Failed
    about 1 year ago
    Total: 1133s
    #45611
  • πŸ‡ΊπŸ‡¦Ukraine voleger Ukraine, Rivne

    rerolled
    assets filesystem wrapper added since then
    if #35 comparison approach is good to go with, I'm ready to create updated screenshots and attach them to the IS.

  • Pipeline finished with Success
    8 months ago
    #118687
Production build 0.71.5 2024