Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2021-10-08scheduled tasks should not launch archiving when browser archiving is ↵Peter Zhang
disabled (#18101)
2021-10-07Merge 4.5.0 release (#18105)Justin Velluppillai
2021-10-04JavaScript tracker exclude query parameters (#18031)Ben Burgess
Adds a new option to the JavaScript tracker to exclude query parameters from the tracked URL. Co-authored-by: bx80 <bx80@users.noreply.github.com> Co-authored-by: sgiehl <stefan@matomo.org>
2021-10-01replace db error message (#18085)Peter Zhang
Make error messages not leak potentially sensitive information when connection failed
2021-09-28[Vue] Introduce Vue + Workflow commands (#17940)dizzy
* adding vue * adding webpack config + example vue library project * forgot to add base tsconfig.json * Add build command that allows building all plugins + watching for changes. * autodetect umd bundles * initial externals detection * integrate vue CLI * add externals config via vue config * explain regenerator issue * remove ie11 * Build polyfills in separate library. * add command to quickly compute total asset size (minified + gzipped) * output tweak for --exclude-angular * Explicitly disable support for ie11 since Vue 3 does not support it. * rebuild and add option to clear webpack cache to build commands * Add example vue component that compiles w/ vue 3. * get example vue component to display * include tslib via polyfills so it is not compiled in each library * get async component loading to work * some tweaks and tests * Add generate vue component command and run to generate activity indicator template. * switch to using composition api since that is apparently better supported, and get activity indicator adapter to bind data properly * remove vue-class-component npm package * eslint changes * rever tracking JS change * tweak * Remove CoreVue vue dir which was just there for testing. * Update vue.config.js * apply some review feedback * add plugin to compute js asset size command * use local script to build * update changelog and apply review feedback * fix bower component mapping * update expected screenshots * update screenshot * Update and rename 4.5.0-b2.php to 4.6.0-b1.php * Update Version.php * update expected screenshot * updates expected UI test files Co-authored-by: sgiehl <stefan@matomo.org>
2021-09-28A few more PHP8.1 fixes (#17989)Tim-Hinnerk Heuer
* add return type declartions #17686 should not break anything and gets rid of a warning * add return type to method signature #17686 * annotate return types to avoid warnings * add more return types * upgrade phpmailer/phpmailer to 6.5.1 * add return types, avoid deprecated null to string conversion * fix some deprecation warnings for php 8.1 #17686 * fix in DbHelper::getInstallVersion() instead #17686 * ensure empty(DbHelper::getInstallVersion()) succeed #17686 * force return "0" string and adjust test Co-authored-by: Justin Velluppillai <justin@innocraft.com>
2021-09-274.5.0-rc14.5.0-rc1Matthieu Aubry
2021-09-244.5.0-b34.5.0-b3Matthieu Aubry
2021-09-24add mysql row format dynamic option (#18002)Peter Zhang
2021-09-23Check config file was written correctly (#18024)Jason Morton
2021-09-22removed Mssql and pgsql (#18042)Peter Zhang
2021-09-21Optimise tables separately (#18032)Ben Burgess
2021-09-20Always use secure randomness (#18030)Lukas Winkler
2021-09-204.5.0-b24.5.0-b2Matthieu Aubry
2021-09-14#17812 Improve handling of NotSupportedBrowserException (#17915)mwithheld
* #17812 Improve handling of NotSupportedBrowserException * Fix HttpCodeException namespace Co-authored-by: Stefan Giehl <stefan@matomo.org> Co-authored-by: Stefan Giehl <stefan@matomo.org>
2021-09-13delete old log_* table data also without idvisit (#17964)Tim-Hinnerk Heuer
2021-09-07Fix notice Undefined index in DataCollection (#17967)Thomas Steur
2021-09-04show users more informative information on error (#17900)Tim-Hinnerk Heuer
* show users more informative information on error fixes #15135 * add rel="noreferrer noopener" #15135 * show faq section only outside of cloud #15036 * privatise variables contributing to View::showMoreFaqInfo #15135 Co-authored-by: Stefan Giehl <stefan@matomo.org>
2021-09-03Added config option for custom tracking image (#17879)Ben Burgess
* Added config option for custom tracking image * Update core/Tracker/Response.php Improved brevity Co-authored-by: Stefan Giehl <stefan@matomo.org> * Update core/Tracker/Response.php Improved brevity Co-authored-by: Stefan Giehl <stefan@matomo.org> * Update tests/PHPUnit/Unit/Tracker/ResponseTest.php Remove unnecessary debug comment Co-authored-by: Stefan Giehl <stefan@matomo.org> * Added restricted list of supported mime types, automatically determine mime type for image strings, switched to using file_get_contents, is_file and is_readable for image file loading * Removed image recreation due to performance limitations Co-authored-by: Stefan Giehl <stefan@matomo.org>
2021-09-03Simple fixes for PHP8.1 (#17929)Justin Velluppillai
2021-09-03Fix auto completion in controller was not working for plugin for security ↵Thomas Steur
policy (#17957)
2021-09-03Allow more img sources when embedding page in an iframe (#17958)Thomas Steur
2021-09-03try and reconnect database after running each scheduled task (at most once ↵dizzy
per two hours) during core:archive (#17949)
2021-09-03Provide SecurityPolicy method to allow embedded iframes to fetch their ↵Justin Velluppillai
resources (#17955)
2021-09-02Revert "Expose methods to disable CSP or loosen it for embedded iframes ↵Thomas Steur
(#17910)" (#17952) This reverts commit 33db50cccebf44823d2080d296d4ace848153d4f.
2021-09-02Expose methods to disable CSP or loosen it for embedded iframes (#17910)Justin Velluppillai
2021-09-02When processing a dependent archive for a range, then only process the ↵Thomas Steur
requested plugin, not all plugins (#17943) * try not report all plugin range * Update Rules.php
2021-09-01Prepares Weblate migration (#17927)Stefan Giehl
* Add translation stats to readme * improve generate-intl command * update readme * remove translation workflow * allow empty translation files * Adds internal parameter to ignore config in LanguageManager API * ignore missing translators * extend commands to ignore language info * Update lang/README.md Co-authored-by: Lukas Winkler <git@lw1.at> * Update commands to use Weblate instead of Transifex API * Replace remaining Transifex occurences * submodule updates * fix/update tests Co-authored-by: Lukas Winkler <git@lw1.at>
2021-08-31Load sparkline images only once they are near view port (#17937)Thomas Steur
fix https://github.com/matomo-org/matomo/issues/17774 Test locally and worked nicely. Had 11 goals and on my screen it loaded the first 9 goals right away and the other ones while scrolling. This way, if someone has say 25 goals, then we won't issue like 80 requests at the same time on goals overview or funnels overview page which can cause issues in the web server as well as database
2021-08-30If a usable archive exists and the invalidation is for a specific plugin, ↵Justin Velluppillai
delete the invalidation (#17918) * If a usable archive exists and the invalidation is for a specific plugin, delete the invalidation so it doesn't stay for ever * Improve logging text and add a simple test * Minor improvements from code review
2021-08-26Update intl cldr 39 (#17917)Lukas Winkler
* replace VEF currency with VES * use new CLDR repository * update CLDR to 39 * fix tests
2021-08-22Only set requests in tracking request set when correct value is given (#17877)Thomas Steur
refs https://github.com/matomo-org/plugin-QueuedTracking/issues/153#issuecomment-896856651 Possible warning: > /usr/share/piwik/core/Tracker/RequestSet.php(36): Warning - Invalid argument supplied for foreach() - Not sure how this would happen and it might hide an actual error maybe. I've been looking through code for a while and couldn't really see where this might happen. The only one I could find was bulk tracking a wrong JSON being set. Maybe we should throw an invalid tracking parameter exception when `requests` is not an array? https://github.com/matomo-org/matomo/blob/4.4.1/plugins/BulkTracking/Tracker/Requests.php#L78
2021-08-20Ignore overwrite subtable warning for summary rows for old data… (#17891)dizzy
* Ignore warning for summary rows for old data to avoid re-archiving for a single row most users do not look at. * make sure subtables have ts_archived metadata * use period start date instead of ts_archived * try to prevent random failure
2021-08-20When aggregating reports, inflate one expanded datatable at a time (#17817)dizzy
* datatable should always be a map here * rewrite datatable aggregation to inflate a single expanded table at a time, rather than all at once * when adding a new row, make sure we do not share row instances between datatables (as this will mean sharing subtable instances as well) * support deleting datatables between specific range of IDs * fix datatable aggregation code that expands one datatable at a time * fix parameter issue * fix one type of test failure * undo last change, variation in precision is expected in column values * remove plugin submodule update * debugging change * change * debug changes * undo some debug changes, metadata changes are expected * small refactor * decimal and actions metadata changes expected * lat long changes are for duplicates, expected * correctly set metadata on created table * fix test * update expected screenshots * revert debugging changes * change modifier back * update more tests * fix UI test
2021-08-17Run AllTests on PHP8 (#16897)Stefan Giehl
* Run AllTests on PHP8 * use newer phpunit for tests on PHP8 * fix notices/errors * handle trace of phpunit 9 * ensure to compare same types for range check * adjust expected result for php8 * try handling hasDependencies does not exist in PHPUnit 9 * fix: ArgumentCountError: mysqli_stmt::bind_param() does not accept unknown named parameters * Fix usercountry tests * remove incorrect date check * fix expected exception message * fix referrers api test for php8 * add test hint * try to fix session related tests * debug test failure * try to fix mail tests * fix filterUser method * exlucde phpunit from build size calculation * fix scheduled reports test * update release checklist test * unset climode * improves some tests
2021-08-16Fix possible notices (#17886)Stefan Giehl
* Fix possible notices * Ensure to query hash for deleted segments
2021-08-13add token_auth to overlay requests where necessary (#17851)Tim-Hinnerk Heuer
* add token_auth to overlay requests where necessary #17640 * ensure all links on overlay page work as expected both, with token_auth and when logged in #17640 * DRY force_api_session=1 and token_auth parameters in broadcast.js and correct in other code for convenience #17640 * polish logic for overlay with token_auth and change minimal logic in client side while validating token_auth in View::shouldPropagateTokenAuthInAjaxRequests() #17640 * use 'string' as string parameter #17640 * simplify token_auth check #17640 * revert git submodule to 4.x-dev version #17640 * return $tokenAuth string (truthy) only, simplify condition, ensure & is prepended to token_auth url param #17640 * revert submodule change * Update core/View.php Co-authored-by: Stefan Giehl <stefan@matomo.org> Co-authored-by: sgiehl <stefan@matomo.org>
2021-08-12before trying to invalidate parent period, make sure period is enabled in ↵dizzy
INI config (#17874) * before trying to invalidate parent period, make sure period is enabled in INI config * avoid error in queueconsumer as well * make sure we avoid disabled periods in CronArchive.php
2021-08-12Set CSP header to prevent XSS (#17798)Justin Velluppillai
* Set CSP header to prevent XSS * Add config setting to disable CSP or enable report-only mode * Modify settings and remove deprecated report-uri * Adding tests * Added tests for different settings * Prefer DI Co-authored-by: Stefan Giehl <stefan@matomo.org> * SecurityPolicy objects now constructed with Config parameter * Updates expected UI test file Co-authored-by: Stefan Giehl <stefan@matomo.org>
2021-08-12avoid large amounts of notifications being added to the session (#17736)dizzy
* impose limit on notification message size when logging to notifications * if in memory notification count exceeds max notification size in session, do not attempt to new ones it to the session * Detect when session was too large to read and provide warning to user. * add some tests for Notification\ManagerTest.php * add tests for relevant DbTable members * Change session data column type to allow larger session data values. * update to rc3 * trigger new build? * fix namespace * fix test namespaces * bump version correctly
2021-08-11Remove checking for /proc existence (#17846)avkarenow
2021-08-11Fix a couple a possible warning in PHP 8.1 (#17869)Stefan Giehl
2021-08-11Improve I/O performance by not writing placeholder files when they already ↵Justin Velluppillai
exist (#17873)
2021-08-10Fixing some test failures (#17852)dizzy
* fix controller test * debug travis failure * debug some more * more debugging * more debugging * another debug * another debug * more debug + fix test? * remove debug changes * remove forced failure * ui test change, check status in assert for more information in test output * check image magick status AFTER comparison threshold check * try to debug test performance on travis * try to speed up some tests * fix test change * fix test * update two screenshots * update UI test again and fix random failure hopefully * try to get rid of some more random failures * some more debugging * try fixing some more random failures * stop using screenshotSelector in some tests since it (inexplicably) cant find jquery on the test page + mysqli test * another ui test tweak * trigger new build * try fixing more random failures * updates expected test file Co-authored-by: sgiehl <stefan@matomo.org>
2021-08-10Do not log a failed login if a valid app token_auth is sent with the ↵Stefan Giehl
request, but force_api_session parameter is present as well (#17867)
2021-08-03get rid of stashed datatables before going into safe mode to free up memory ↵dizzy
(#17818)
2021-08-03Scheduled tasks: Always read timetable from the database and not from… ↵Thomas Steur
(#17849)
2021-08-02Release 4.4.1 :rocket:4.4.1Matthieu Aubry
2021-07-304.4.1-rc1Matthieu Aubry
2021-07-30Revert "use strict-origin-when-cross-origin Referrer-Policy (#17382)" (#17842)Thomas Steur
This reverts commit 6b091d2f117b14ecc08fcb05b39ed654df4042a8.