Uploaded image for project: 'CMS CONTENIDO'
  1. CMS CONTENIDO
  2. CON-1569

Issue with used path in module import/export

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: CONTENIDO 4.9.2
    • Fix Version/s: CONTENIDO 4.9.3
    • Component/s: Core Code
    • Labels:

      Description

      If the server has restricted settings, then the current module import/export could fail because of access restrictions.

      Module export:
      Creates ZipArchive instance with the module alias. If there is no path provided, it will try to generate the archive in configured system temp path setting, see sys_get_temp_dir(). But using this may fail due to access restrictions.

      Module import:
      Tries to extract uploaded Zip archive into the folder "upload/temp" (see $cfg['path']['temp']) which is a relative path. This could also fail, since we can't ensure to be in current CONTENIDO installation folder.

      Better to use absolute path in configured CONTENIDO temp folder, the configuration $cfg['path']['contenido_temp'], for both cases.

      See related topic in forum:
      http://forum.contenido.org/viewtopic.php?f=92&t=34618

      See also provided fix which helped the user:
      http://forum.contenido.org/viewtopic.php?f=92&t=34618&start=15#p161640

        Attachments

          Activity

            People

            • Assignee:
              mischa.holz Mischa Holz
              Reporter:
              xmurrix Murat Purc
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: