Commit Graph

56 Commits (2.4)

Author SHA1 Message Date
Sami Mokaddem 51840a0697
chg: [events:export] Make setting `MISP.disable_cached_exports` enabled by default
Since the /events/export has been marked deprecated for a years started
the process to phase it out by first disabling the endpoint by default.
2024-01-31 14:26:22 +01:00
Sami Mokaddem 0ac2468c28
fix: [security] Enforce usage of POST to start an export generation process
As reported by Andrei Agape / Teliacompany
2024-01-31 14:24:17 +01:00
Jakub Onderka e86a02e7c6 chg: [UI] Fetch job progress in one query 2022-05-13 19:17:27 +02:00
Jakub Onderka 50d284b643
Merge pull request #7986 from JakubOnderka/better-security
chg: [internal] Do not modify session when not necessary
2021-12-30 14:40:01 +01:00
iglocska 3b31026d27
chg: [backwards] compatibility
- reverted a strict typed function parameter check to appease the legacy gods
2021-12-18 17:31:02 +01:00
Jakub Onderka b100377a73 chg: [internal] Do not modify session when not necessary 2021-11-25 11:58:32 +01:00
Luciano Righetti ba0399a6fb chg: remove MISP.use_simple_background_jobs setting in favor of SimpleBackgroundJobs.enabled 2021-11-10 16:44:02 +01:00
Luciano Righetti 766f559852 fix: do not fail on process_id=null 2021-11-10 14:54:21 +01:00
Luciano Righetti 01ef5eb186 fix: replace splat operator, follow cake 2.x private methods naming 2021-11-08 14:30:16 +01:00
Luciano Righetti f80fcec2db chg: rename settings 2021-11-05 15:46:42 +01:00
Luciano Righetti b6361c0f7c chg: rename conf name 2021-11-04 11:39:10 +01:00
Luciano Righetti 321acb629e chg: fix issues with servershell pull/push commands 2021-10-29 14:52:42 +02:00
Luciano Righetti a617c089c2 chg: refactor background jobs tool to receive jobId instead of entity. 2021-10-28 10:06:41 +02:00
Luciano Righetti 970583c4a3 chg: move contact reporter background job to new tool 2021-10-27 09:20:11 +02:00
Luciano Righetti ed869e5263 fix: handle job status not found. 2021-10-26 15:20:50 +02:00
Luciano Righetti 7a727c028b chg: fetch job status from redis in jobs view. 2021-10-26 15:02:35 +02:00
Jakub Onderka fa77fa4eb6 chg: [UI] Correctly handle progress for jobs 2021-03-14 22:47:55 +01:00
Jakub Onderka a09db135b7 new: [API] REST repose for jobs index 2021-03-14 22:25:19 +01:00
Jakub Onderka 7510a0fdbd chg: [UI] Make possible to filter jobs by prio queue 2021-03-14 20:28:43 +01:00
Jakub Onderka f518e720e1 fix: [UI] Failed jobs are not considered as Queued 2021-03-14 17:20:38 +01:00
mokaddem 6fd52393b7
chg: [update] Added new worker type `update` to perform updates 2019-10-01 13:36:37 +02:00
iglocska a81894f14c chg: [CS] Changed to PSR-2
- to make contributions easier, adopted PSR-2
- used php-cs-fixer to rework the style
- *sniff sniff* Goodbye tab indentation
2018-07-19 11:48:22 +02:00
iglocska 68b8266584 new: New flash message system, fixes #3252
- 3 types of flash messages (success, error, warning)
- uses bootstrap's own classes/structure
2018-05-16 19:32:38 +02:00
iglocska 1d5fdf0404 new: Purge all/completed jobs via the job index, fixes #3024 2018-03-14 02:28:49 +01:00
iglocska 0e7fc9848b new: Expose the caching jobs / getProgress to the API 2017-09-01 14:38:53 +02:00
iglocska 952fff6252 fix: Fixes to several cases of reflected XSS, fixes #2381
- as reported by @import-au

- Additionally enforce content-type on all async APIs called by the UI using CakeResponse
2017-08-08 21:37:03 +02:00
iglocska 62cb2b66b6 new: Added a way to disable cached exports server wide for low disk space instnaces
- But please consider just adding some more space instead..
2017-03-02 10:49:18 +01:00
Iglocska 9d4403ff3e fix: Resolved several issues with error handling in the new feed system 2016-10-07 20:08:57 +02:00
Andreas Ziegler 11537b8a73 chg: remove redundant call to beforeFilter, just calling its parent 2016-09-16 03:40:52 +02:00
iglocska 822b0bf8fa chg: Cleanup of the controllers and models
- removed incorrect, useless boiler plate comments
- kept useful comments intact
- added some missing line breaks to make the codebase a bit more uniform
- removed some obviously obsolete TODO comments
2016-08-25 11:38:37 +02:00
Andreas Ziegler 30fb4e2b2e chg: remove whitespace at end of line 2016-08-22 02:54:51 +02:00
Andreas Ziegler cffcfa81d7 chg: remove whitespace (space/tab) from empty lines 2016-08-22 02:52:51 +02:00
iglocska fe0e4f5bb4 new: Improved jobs overview
- Correctly interpreting job states
- Show errored background jobs
- Show jobs that cannot proceed because no active worker is monitoring the queue
- Allow site admins to view the reason of the failure (up to 24h after the fact) including a stack trace
2016-08-15 21:23:26 +02:00
iglocska bdb61b9800 fix: small change, removal of unnecesary parameter 2016-08-10 16:31:53 +02:00
ppanero c692db6f2e Jobs creation for admin done under org_id = 0, before was taking the id of the group 2016-08-10 14:49:31 +02:00
ppanero 4cce700b8d Shibboleth authentication refined (Organization creation if the given one in the configuration does not exists). export process displaying as queued issue solved. Code changed in JobsController 2016-08-10 13:54:14 +02:00
Richard van den Berg 117d001b2f Create new prio queue for publishing events 2016-06-24 11:03:47 +02:00
Andreas Ziegler 985451642e add space after keywords if/for/foreach/while/switch/catch 2016-06-04 15:45:39 +02:00
Andreas Ziegler 0fe692c56a remove whitespace at end of line 2016-06-04 01:10:45 +02:00
Andreas Ziegler 898ea1d97c remove whitespace (space/tab) from empty lines 2016-06-04 01:08:16 +02:00
Iglocska e9e949cc8e Added quick filter tabs to the jobs index 2016-02-24 10:43:42 +01:00
Iglocska 176ad85b88 Rework of the scheduled caching jobs
- fixed a series of issues with the exports
2016-01-10 19:45:33 +01:00
Fafner [_KeyZee_] ead30f6846 Solving #786 2015-12-28 16:17:11 +01:00
iglocska 51ea9c090d Further progress 2015-04-18 07:53:18 +02:00
iglocska f7f200deb8 Further progress 2015-03-21 14:27:53 +01:00
iglocska 71d36b9c64 Several issues fixed
- MYSQL.sql file now correctly includes the task entries
- GenerateCorrelation admin task is now a background job
- Organisation of events pulled now get the org in the server object as the owner instead of the one who initiates the pull
- Small fix to wrapping text in the pivot graph
2014-11-27 14:47:13 +01:00
iglocska feff355144 incorrect argument passed to cache generation 2014-01-24 13:20:00 +01:00
iglocska 54b1b44080 More work on the background jobs
- added scheduler to the export caching
- site admins can set up the intervals of the automated caches, and the exact times at which they should be executed.
2014-01-03 15:26:35 +01:00
iglocska ae23b288e5 Further work on the background jobs
- started work on scheduling
- view to add scheduled tasks (still needs work)
- moved cache job bulk-code to the job model from the controller
- bootstrap timepicker
2014-01-02 15:51:41 +01:00
iglocska 0e744871bd Further work on the scheduled tasks
- Also some changes left off from the previous commit
2013-12-17 11:38:06 +01:00