Ticket #825 (closed enhancement: fixed)

Opened 22 months ago

Last modified 12 months ago

{{files}} action should emit a warning if PHP config file_uploads is Off

Reported by: glennj Owned by: NilsLindenberg
Priority: normal Milestone: 1.2
Component: actions Version: 1.1.6.5
Severity: normal Keywords: trunk-unported
Cc:

Description

I just spent a frustrating hour wondering why $_FILES was empty.

I've attached a diff file with my suggested enhancement for actions/files.php

Attachments

wikka.actions.files.diff Download (187 bytes) - added by glennj 22 months ago.
diff file for addition to actions/files.php

Change History

Changed 22 months ago by glennj

diff file for addition to actions/files.php

Changed 18 months ago by NilsLindenberg

  • owner changed from unassigned to NilsLindenberg
  • status changed from new to accepted

added in [1332]. Thanks to glennj.

Changed 18 months ago by NilsLindenberg

  • status changed from accepted to testing

Changed 18 months ago by NilsLindenberg

  • milestone changed from 3.0 to 1.2

Changed 14 months ago by BrianKoontz

The original default of the {{files}} action was to display a list of files for users who did not have upload permissions. Now, when file_uploads is Off, users do not see this table of available files. Was this intentional? It seems to me if file_uploads is Off, this should not preclude the listing of uploaded files.

Otherwise, I'm OK with changing the state of this ticket to closed.

Changed 14 months ago by NilsLindenberg

You are probably right. Will change this.

Changed 12 months ago by BrianKoontz

(In [1453]) List files even if file_uploads is disabled; provide more meaningful status messages; disable uploads via upload action if file_uploads is disabled. Refs #825.

Changed 12 months ago by BrianKoontz

(In [1457]) Fixed minor typo. Refs #825.

Changed 12 months ago by BrianKoontz

  • keywords trunk-unported added

Changed 12 months ago by DarTar

Several warnings are still displayed if the uploads folder is not writable

Warning: mkdir() [function.mkdir]: Permission denied in /Users/dartar/Documents/Test/wikka/1.2/actions/files.php on line 77

Warning: opendir(uploads/SandBox) [function.opendir]: failed to open dir: No such file or directory in /Users/dartar/Documents/Test/wikka/1.2/actions/files.php on line 205

Warning: readdir(): supplied argument is not a valid Directory resource in /Users/dartar/Documents/Test/wikka/1.2/actions/files.php on line 208

Warning: closedir(): supplied argument is not a valid Directory resource in /Users/dartar/Documents/Test/wikka/1.2/actions/files.php on line 216

Changed 12 months ago by BrianKoontz

Can we just disable warnings for the move_uploaded_file() method for now? Maybe change the error message to something more reflective of the problem?

Changed 12 months ago by DarTar

Or maybe just backport and merge from trunk (where this has already been fixed)?

Changed 12 months ago by BrianKoontz

(In [1465]) Backported permission checks and file dir checks from trunk; moved error messages into defines. Refs #825.

Changed 12 months ago by DarTar

  • status changed from testing to commit

tested permission checks, works as expected.

Changed 12 months ago by DarTar

  • status changed from commit to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.