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
AgeCommit message (Collapse)Author
2022-02-08Fix usage of translation key (#18747)Stefan Giehl
2021-08-11Fix a couple a possible warning in PHP 8.1 (#17869)Stefan Giehl
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-04-14Ensure correct no access message is shown (#17445)Stefan Giehl
* Ensure correct no access message is shown * Add tests for access error messages * fix ui tests
2020-10-29Add new INI config [General] enable_framed_allow_write_admin_token_auth… ↵diosmosis
(#16595) * Add new INI config [General] enable_framed_allow_write_admin_token_auth to allow framed matomo use case to still function in Matomo 4. * Link to faq in exception message. * apply pr feedback and write integration tests (not passing) * fix test * fix test * update screenshot * fix more ui tests * update exception message * update some expected screenshots * update screenshot Co-authored-by: Thomas Steur <tsteur@users.noreply.github.com>
2020-09-30Compare session token in any case (#16448)Thomas Steur
* Compare token if value is 0 * when session is used always verify token * also compare if a string is set * update travis Co-authored-by: sgiehl <stefan@matomo.org>
2020-08-04allow invalidating plugin archives only and archiving past data for plugins ↵diosmosis
(#15889) * Adding initial new code for cron archive rewrite. * first pass at removing unused CronArchive code. * unfinished commit * fill out archiveinvalidator code * getting some tests to pass * unfinished commit * fixing part of test * Another test fix. * another sql change * fix broken merge or something else that went wrong * Couple more fixes and extra logs. * Fixing enough issues to get core archive command to run completely. * Fix and log change. * Fixed more segment/test related issues for CronArchiveTest. Includes optimization for no visits for period + segment process from handling. * another optimization and possible build fix * no visit optimization * test fix * Implement archiving_custom_ranges logic w/ queue based implementation * fixes to get archivecrontest to work * add logic to invalidate today period * fix optimization and some tests * Fixing more tests. * Fixing more tests * debug travis failure * more test fixes * more test fixes, removing more unneeded code, handling some TODOs * Handle more TODOs including creating ArchiveFilter class for some cli options. * tests and todos * idarchives are specific to table + start on archivefilter tests * one test * more TODOs and tests * more tests and todo taken care of * handle more todos * fixing more tests * fix comment * make sure autoarchiving is enabled for segments when cron archive picks them up * Fixing test. * apply more pr feedback * order by date1 asc * quick refactor * use batch insert instead of createDummyArchives * apply rest of pr feedback * add removed events, add new test, fix an issue (when deleting idarchives older than do not lump all segments together). * re-add fixed/shared siteids * fix tests * incomplete commit * Insert archive entries into archive_invalidations table. * Use invalidations table in core:archive and get ArchiveCronTest to pass. * fixing some tests * debugging travis * fix more tests & remove DONE_IN_PROGRESS which is no longer used. * fix more tests * Allow forcing plugin specific archive in core:archive. * When querying from archive data use all available archives including "all" archives and plugin specific archives. * Adding some code for invalidating specific plugin archives. * Get archive invalidation test to pass. * add plugin capability to invalidate command * Handle plugin only archives in core:archive. * Add Archive test and get ArchiveCronTest to pass. * update some expected files * Fix some more tests. * incomplete commit * allow invalidating individual reports * adding more API for DONE_PARTIAL support * get archivecrontest to pass * add archive processor tests * fix some test randomnes * when purging keep latest partial archives if there is no newer whole archive * add rearchivereport method + some unfinished tests * Add archiveReports API method, fix race condition in test, when archiving single report, always ignore inserting other reports. * require archivers to handle partial archives themselves entirely instead of trying to do it automatically and allow requested report to be any string * couple fixes * Use core config option for last N montsh to invalidate. * Add test for ArchiveSelector method. * Ignore archives w/ deactivated plugins. * Refactor queue looping into new QueueConsumer class. * apply more review feedback + another fix * invalidate segments too in reArchiveReport w/ etsts * remove DONE_IN_PROGRESS, no longer used. use new status in query and add queue consumer test. * forgot to add file * delete old unneeded archives when finalizing a new one. * tweak invalidation archive description * add plugin archiving tests and get them to pass * fix test * many fixes * fix another test * update expected test files * fix more tests * last test fixes hopefully * tweak log * In case a column already exists, do not try to add it in an AddColumns migration or the entire migration will fail and no columns will be added. * try to fix tests again * fix again? * apply some review feedback + fix test * fix test * fix another test * couple fixes * Remove extra param. * apply pr feedback * check for usable archive before invalidating and before initiating archiving * fixing tests * fixing tests * fixing tests * fix another test issue * fix archiveinvalidator test * fix one test and debug another * more debugging * fix test * use twig * remove no longer needed change * add back previous logic * fix tracking is not working * apply pr feedback and add tests * fixing tests * update submodule * debugging random travis failure * update test * more debugging * more debugging * another attempt at debugging * Lets try this fix * trying to fix the build * debug * simpler test * fix test * fix test * fix test * fix test * fix test failure * update screenshots * update screenshots Co-authored-by: Thomas Steur <tsteur@users.noreply.github.com>
2020-06-19Makes report export overlay compatible with app specific tokens (#16066)Stefan Giehl
2020-04-24Update doc blocks with new name (#15857)Stefan Giehl
* update doc blocks with new name * submodule updates * updates expected UI files
2020-04-14split files containing multiple classes (#15810)Stefan Giehl
2020-03-18App specific token_auths (#15410)Thomas Steur
* some initial work * add security page * backing up some code * more functionality * adjust more UI parts * adjust more code * more tweaks * add todo note * few tweaks * make sure date is in right format * fix not existing column * few fixes * available hashes * use different hash algo so tests run on php 5 * fix name of aglorithm * trying to fix some tests * another try to fix some tests * more fixes * more fixes * few fixes * update template * fix some tests * fix test * fixing some tests * various test fixes * more fixes * few more tests * more tests * various tweaks * add translations * add some ui tests * fix selector * tweaks * trying to fix some ui tests * fallback to regular authentication if needed * fix call authenticate on null * fix user settings * fix some tests * few fixes * fix more ui tests * update schema * Update plugins/CoreHome/angularjs/widget-loader/widgetloader.directive.js Co-Authored-By: Stefan Giehl <stefan@matomo.org> * fix maps are not showing data * trying to fix some tests * set correct token * trying to fix tracking failure * minor tweaks and fixes * fix more tests * fix screenshot test * trigger event so brute force logic is executed * test no fallback to actual authentication * allow fallback * apply review feedback * fix some tests * fix tests * make sure location values from query params are limited properly before attempting a db insert * make sure plugin uninstall migration reloads plugins, make sure 4.0.0-b1 migration removes unique index that is no longer used, use defaults extra file in SqlDump to get test to run on travis * Fix UI tests. * update expected screenshot Co-authored-by: Stefan Giehl <stefan@matomo.org> Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
2020-02-26Do not initiate auth instance if a user is already logged in in ↵diosmosis
FrontController::init() (#15591)
2019-12-31If user is already super user, no need to set super user flag (#15329)Thomas Steur
It shouldn't change any logic. While debugging noticed some nested `doAsSuperUser` calls and was wondering if this could cause random issues... Also if actually logged in user is already super user, we don't need to fake anything...
2019-12-16Fix error message when not correct token is used in API (#15260)Thomas Steur
It should not say `you must be logged in` but eg `You can't access this resource as it requires 'view' access for the website id = 1.`
2019-11-11Fix "PHP Deprecated: strpos(): Non-string needles will be interpreted as ↵Thomas Steur
strings in the future." in Access class (#15142) refs https://github.com/matomo-org/wp-matomo/issues/72 [10-Nov-2019 16:43:37 UTC] PHP Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in htdocs/wp-content/plugins/matomo/app/core/Access.php on line 717
2019-10-02Change login page message when user has been redirected after auth failure ↵Kate Butler
(#14829)
2019-08-16Do not record the trace for user input errors (#14771)Thomas Steur
2019-07-05Update the link tag for all php files (#14635)Luca
I updated the link tag for all php files with the new matomo link. Not sure if it is realistic that this will get merged but I though that someday someone has to do this(?)
2018-12-03Implement Two Factor Authentication (#13670)Thomas Steur
2018-09-10New events + some other misc changes (#13388)diosmosis
* Add Access.modifyUserAccess event. * Add some template events & use request::process for LanguagesManager API. * Use the result of Sites.setSites in SitesManager API. * More comments for Site::setSitesFromArray(). * fixing plugin test.
2018-09-01Fix capabilities weren't detected correctly (#13368)Thomas Steur
* Fix capabilities weren't detected correctly * added test
2018-08-07Scalable UX for user management (#13158)diosmosis
* Create empty components. * Mock up users list pagination. * Finish initial version of mockup. * Tweak to UI * More UI changes to new users manager screen. * More UI changes * Mock up user permission edits. * More tweaks to user permission editing (on both edit form & in users table). * add options * Another iteration on the UsersManager UI. * Update UsersManager UI again. * Implementing parts of the UI, fixing issue w/ overlapping material selects, creating dropdown directives for dropdown w/ submenu using materializecss, change bulk actions to be dropdown button. * Merge menu/submenu directives. * More superuser UI only functionality. * Fill out more logic of users manager UI + merging extra unneeded components/directives. * More users manager UI only changes. * Incomplete API method for new users list page. * Fill in server side pagination logic w/ tests & generally get to work in UI. * Make sure selects w/ placeholders can be unset. * Add loading state to users list + fix pagination issues + resize pagination in case the numbers are large. * Add last seen time to getUsersPlusAccessLevel() so it displays in UI. * Add permission edit pagination AJAX query + server side code. * Add "add access" button to user permission component. * Change permissions column to role + remove superuser checkbox & merge w/ Role column. * Delete user + bulk delete functionality. * Get delete users to work when entire search is selected. * Ask for confirmation before setting access in users list & implement access change logic. * Get bulk access functionality on users list to work (w/ tests). * Fix a bug in user table filtering + get permissions edit search to work. * Complete logic for permissions edit. * Change add user workflow so we do not have to save each permission edit in memory before saving whole user. * Add/edit user functionality. * Toggle superuser access functionality + some modal fixes. * in users list display ajax loading notification so counter is not changed visibly before rows are loaded. * initial review changes, disable functionality when viewing user is not superuser and some UI tweaks. * Redo top controls for user permission edit and add slide up toast notification for when a site is added. * Display warning in user permission edit if user has no access at all. * Do not reload users after going back from user edit form. * Force giving a new user access to a site when creating a user and make sure user list reloads if a user is modified, but does not realod if no user is modified. * Add form help to the non-straightforward fields. * Remove old usersmanager code & fix pagination bug. * Add help icon explaining roles to users list + permission edit. * Allow admin users to create other users + fix some regressions when making page-users-list not reload every time. * Apply self review changes. * Do not allow editing user details when an admin user edits a user. * Starting on UI tests. * Limit users displayed in page list to those that already have access to sites the current user is an admin of. * Refactor bulk/single AJAX calls & redraw component boundaries (users manager component owns user search state, paged users list owns table/control state). * Get add existing user modal to work. * write most UI tests + modify fixture * Fill out rest of UI test suite & get the rest to pass. * fix couple regressions * Get UI tests to pass and start on translation. * adding translations * try to fix some tests * Fixing API tests. * Fixing UsersManager tests. * Fix UI tests. * Add capabilities to new API output. * remove non-existant file references. * Add Write role to dropdowns. * Select from proper join. * tweak test * Updating UI tests. * Change styling of user permissions edit. * Update screenshots * Apply some PR feedback. * apply some review feedback * more review changes * update file headers * remove some TODOs * fix some tests * some more review fixes * update test files * Fix failing tests.
2018-07-25No strict checking for idsite (#13205)Thomas Steur
While reviewing https://github.com/matomo-org/matomo/pull/13158 I noticed the third parameter for `in_array` to force string checking should not be set here I suppose as idSites might be either strings or integers.
2018-07-18Introducing a new role "write" and possibility to define capabilities (#13163)Thomas Steur
* started working on some ACL concept * acl implementation * add category * small tweaks * more tweaks * more api methods and fixes * cache capabilities * various enhancements, fixes, tweaks * more tweaks * added more tests and fixed some bugs * fix parameter * make sure to be BC * make sure to be BC * fix some tests * more apis, translations, changelog entry, ... * update db * correct error message * fix capabilities were not detected in tests * directly access provider * fix and add test * JS api to check capabilities, better structure for capabilities in tests * add ability to inject permissions * apply review changes * fix test
2017-01-07Use gender-neutral wording where possible (#10982)Lucas Jenß
* Change to gender neutral phrasing in user-facing text * Switch to gender neutral wording in docs/comments
2016-03-29fix #9896 Keep Page URL fragments when tracking Page URLs" not persistentThomas Steur
2015-12-21fixes #4314 Don't let "admin" users see all other users in PiwikThomas Steur
2015-06-24Make sure derived Access classes can override loadSitesIfNeeded method to ↵diosmosis
override access loading behavior. Needed by UserGroups plugin.
2015-06-03Move Access singleton to DI.diosmosis
2015-05-27fix core folder with php-cs-fixer for psr-2fabiocarneiro
2015-05-01Restore auth after API requestThomas Steur
2015-04-08load all site ids only if needed. Makes dashboard much faster if one is ↵Thomas Steur
superuser and has many sites
2014-10-23Fixes #6499 Thanks for the quick report!mattab
2014-10-22Fix tests after 9425c0f6d0134a65b0e22d9971923d03f83dcfa8mattab
2014-09-30Deprecating Piwik::setUserHasSuperUserAccess() and switching to ↵diosmosis
Access::doAsSuperUser().
2014-09-30coding style fixes, some PHPStorm inspection fixes, improved readability of ↵Thomas Steur
code, few refactorings, all as part of our code cleanup strategy
2014-07-23reduced multiple empty lines to exactly oneChristian Raue
2014-07-23removed lots of trailing whitespaceChristian Raue
2014-06-10Piwik is a free/libre analytics platform. Refs #4455 GNU Package requirement ↵mattab
to use free/libre instead of open source
2014-05-09Removed unused imports in core/ and plugins/mattab
using phpstorm optimize imports feature
2014-04-17Refs #5004 remove unused codemattab
2014-04-17Refs #5004 Remove the "login" override when setting a user as super user.mattab
Let's see if any test or screenshot test fails
2014-04-17Removing unused postTestEventmattab
2014-04-03Removed deprecated methods, renamed calls to the new methods. Refs #4942mattab
2014-03-17deprecated method was usedThomas Steur
2014-02-20Make sure login is set if setSuperUser is called.diosmosis
2014-02-18Refs #4702 Setup access statemattab
2014-02-05fix password reset did not workThomas Steur
2014-02-03Remove all occurences of @package / @subpackage / @category from core/ files.Fabian Becker
refs #4609
2014-01-29refs #4564 fix method namesThomas Steur