In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Simple Details Jump to Notes ] Wiki ] View Advanced ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0001340 [In-Portal CMS] Data Management bug report always 2012-07-09 11:02 2012-07-25 05:29
Reporter alex View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Fixed in Version 5.2.0
Status closed Product Version 5.0.0 Target Version 5.2.0
Time EstimateNo estimate
Summary 0001340: Don't use session in scheduled tasks
Description Prevent scheduled tasks to work with session. By their nature scheduled tasks take data from external data source (database, disk) and operate on it. They can't store anything into session and expect that they will get that data back next time scheduled task is executed.

Maybe they don't use session right now, but session is saved (again) after scheduled task execution finishes.
Additional Information
Tags No tags attached.
Reference https://groups.google.com/d/topic/in-portal-dev/LKCfRhutepY/discussion
Change Log Message Fixes session usage from scheduled tasks
Estimate Points 1
Attached Files patch file icon prevent_scheduled_tasks_from_using_session.patch [^] (2,948 bytes) 2012-07-17 07:56 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to 0001339closed (5.2.0)alex Long running scheduled task delays page loading 
related to 0000981closed (5.2.0)Dmitry Rename Agents section to "Scheduled Tasks" 
related to 0001191closed (5.2.0)alex Remove RunMode from Scheduled Tasks 
related to 0001341closed (5.2.0)alex Create cron-like interface for scheduled tasks 
related to 0001375resolved (5.2.1)alex Session cookies are sent out from PHP CLI 

-  Notes
User avatar (0004791)
alex (manager)
2012-07-17 07:58

Done.

Additionally I've added protection for cases, when user have set scheduled tasks to executed after page load (not from cron), but still added /tools/cron.php script to Cron.
User avatar (0004792)
alex (manager)
2012-07-17 07:58

Will test all together later.
User avatar (0004793)
alex (manager)
2012-07-17 08:01

Fix committed to 5.2.x branch. Commit Message:

Fixes 0001340: Don't use session in scheduled tasks
User avatar (0004833)
alex (manager)
2012-07-25 05:29

Since 5.2.0 version was released.

- Related Changesets
In-Portal CMS: 5.2.x r15456
Timestamp: 2012-07-17 08:01:52
Author: alex
Details ] Diff ]
Fixes 0001340: Don't use session in scheduled tasks
mod - /in-portal/branches/5.2.x/core/kernel/application.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/kernel/managers/scheduled_task_manager.php Diff ] File ]
mod - /in-portal/branches/5.2.x/tools/cron.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2012-08-17 09:21 alex Relationship added related to 0001375
2012-07-25 05:29 alex Note Added: 0004833
2012-07-25 05:29 alex Status resolved => closed
2012-07-17 08:01 alex Changeset attached 5.2.x r15456
2012-07-17 08:01 alex Note Added: 0004793
2012-07-17 08:01 alex Status reviewed and tested => resolved
2012-07-17 08:01 alex Fixed in Version => 5.2.0
2012-07-17 08:01 alex Resolution open => fixed
2012-07-17 08:01 alex Assigned To !COMMUNITY => alex
2012-07-17 07:58 alex Note Added: 0004792
2012-07-17 07:58 alex Status needs testing => reviewed and tested
2012-07-17 07:58 alex Note Added: 0004791
2012-07-17 07:58 alex Assigned To => !COMMUNITY
2012-07-17 07:58 alex Developer => alex
2012-07-17 07:58 alex Status active => needs testing
2012-07-17 07:56 alex File Added: prevent_scheduled_tasks_from_using_session.patch
2012-07-09 11:09 alex Relationship added related to 0001341
2012-07-09 11:06 alex Relationship added related to 0001191
2012-07-09 11:03 alex Relationship added related to 0000981
2012-07-09 11:03 alex Relationship added related to 0001339
2012-07-09 11:02 alex New Issue
2012-07-09 11:02 alex Reference => https://groups.google.com/d/topic/in-portal-dev/LKCfRhutepY/discussion
2012-07-09 11:02 alex Change Log Message => Fixes session usage from scheduled tasks
2012-07-09 11:02 alex Estimate Points => 1



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker