Problem/Motivation

At user/1/activitypub/settings I saw a warning message that:

> Warning: the private folder has not been configured.

but it still let me submit the form.

That then produced a ton of errors:

> Warning: is_dir(): Unable to find the wrapper "private" - did you forget to enable it when you configured PHP? in Drupal\Core\File\FileSystem->prepareDirectory() (line 502 of core/lib/Drupal/Core/File/FileSystem.php).

Steps to reproduce

Proposed resolution

Disable the form submit button if the private folder is not available.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#3 3507254-3.patch819 bytesswentel
#2 3507254-2.patch567 bytesswentel

Comments

joachim created an issue. See original summary.

swentel’s picture

Status: Active » Needs review
StatusFileSize
new567 bytes

I guess we can do this.

swentel’s picture

StatusFileSize
new819 bytes

Even better message indicating this needs to be configured in settings.php

  • swentel committed da2c37e2 on 1.0.x
    Issue #3507254: don't allow submitting user AP settings form if private...
swentel’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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