developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Closed 12 years ago

#633 closed bug (fixed)

CLI script and applications shouldn't share the same temp directory

Reported by: laurentj Owned by:
Priority: high Milestone: jelix 1.1
Component: jelix-scripts Version: 1.0.4
Severity: major Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

When using some commands of jelix-scripts like createdao which uses a jelix environnement, the temp directory of the application is used. However, it may have already some cache files created by the web server, and in this case, there are some permission issue when using jelix-script (because this scripts are launched by a different user as the apache user)

Change History (3)

comment:1 Changed 12 years ago by laurentj

  • Milestone changed from Jelix 1.0.5 to Jelix 1.1 beta 1

Impossible to resolve this issue without changing the API. So changed the milestone.

JELIX_APP_* defines will be replaced by static properties in a new class Jelix.

comment:2 Changed 12 years ago by laurentj

  • Milestone changed from Jelix 1.1 beta 1 to Jelix 1.2

comment:3 Changed 12 years ago by laurentj

  • Milestone changed from Jelix 1.2 to jelix 1.1
  • Resolution set to fixed
  • Status changed from new to closed

Found an other solution. Now createapp create some files, application-cli.php and jelix-scripts.init.php, similar to application.init.php, but with a different value for JELIX_APP_TEMP_PATH.

jelix.php now load jelix-scripts.init.php instead of application.init.php, so now applications and jelix-scripts don't share the same temp.

Same thing with cli script of the application, which load application-cli.php and so which don't share anymore the same temp directory of the www application.

Fixed in the trunk + 1.1.x branch. svn 1264.

Note: See TracTickets for help on using tickets.