Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19875

SUSE LE 11 SP2 issue with file uploads under PHP

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Won't Fix
    • Affects Version/s: 5.0.0-dev
    • Component/s: Misc
    • Labels:
    • Environment:

      Description

      Note: The following is not an eZP issue, but an unreported (? at least not publicly) SuSE/php issue that will affect ezp installations under SuSE.

      Under php 5.3.8 in a SuSE Enterprise Linux 11 installation with SP2, PHP will not correctly handle file uploads - the file will not be retrieved successfully/will not be stored, and the $_FILES superglobal will be missing indexes expected by ezhttpfile (leading to undefined index errors when dealing with file uploads).

      Examples of other users with similar issues:
      https://forums.aws.amazon.com/thread.jspa?messageID=356385
      http://forums.opensuse.org/english/get-technical-help-here/applications/475499-file-upload-not-working-php.html
      https://forums.suse.com/archive/index.php/t-782.html

      Quick test script:
      https://gist.github.com/26a685ac56916a4c3b30

        Activity

        Hide
        Patrick Allaert (Inactive) added a comment -

        SLES 11 SP2 installed with php 5.3.8, all upload configuration settings verified as well as POST ones (post_max_size might restrict file upload as well)
        Everything is correct but upload does not work.
        All security related stuff (SELINUX, apparmor, firewall,...) have been removed/disabled
        On a correct box, uploading a file I get:
        Array
        (
        [test-file] => Array
        (
        [name] => Skype-Screenshot.png
        [type] => image/png
        [tmp_name] => /tmp/phpsb7vwF
        [error] => 0
        [size] => 589675
        )
        )
        on the SLES:
        Array
        (
        [test-file] => Array
        (
        [name] => Skype-Screenshot.png
        )
        )
        This is indeed a true PHP 5.3.8 issue on SLES with no possible workaround other than down- or up-grading PHP.

        Show
        Patrick Allaert (Inactive) added a comment - SLES 11 SP2 installed with php 5.3.8, all upload configuration settings verified as well as POST ones (post_max_size might restrict file upload as well) Everything is correct but upload does not work. All security related stuff (SELINUX, apparmor, firewall,...) have been removed/disabled On a correct box, uploading a file I get: Array ( [test-file] => Array ( [name] => Skype-Screenshot.png [type] => image/png [tmp_name] => /tmp/phpsb7vwF [error] => 0 [size] => 589675 ) ) on the SLES: Array ( [test-file] => Array ( [name] => Skype-Screenshot.png ) ) This is indeed a true PHP 5.3.8 issue on SLES with no possible workaround other than down- or up-grading PHP.
        Show
        Patrick Allaert (Inactive) added a comment - Additional resources mentioning the problem: http://stackoverflow.com/questions/10908936/php-upload-file-only-filesname-is-populating http://stackoverflow.com/questions/10700743/php-file-upload-issue-on-suse (with no possible workaround)
        Hide
        Filipe Dobreira (Inactive) added a comment -

        QA approved.

        Show
        Filipe Dobreira (Inactive) added a comment - QA approved.
        Hide
        Danny Royer added a comment -

        discussed with Novell support and upgraded all php components from 5.3.8-0.19.6 (default with SLES 11 SP2) to 5.3.8-0.33.2. Success!

        Show
        Danny Royer added a comment - discussed with Novell support and upgraded all php components from 5.3.8-0.19.6 (default with SLES 11 SP2) to 5.3.8-0.33.2. Success!

          People

          • Assignee:
            Unassigned
            Reporter:
            Filipe Dobreira (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 6 hours
              6h