Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation redirect to undefined; all_tests.php failing #851

Closed
robocoder opened this issue Jul 6, 2009 · 2 comments
Closed

Installation redirect to undefined; all_tests.php failing #851

robocoder opened this issue Jul 6, 2009 · 2 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone

Comments

@robocoder
Copy link
Contributor

Installation redirects to "undefined". Not sure if it's a regression from the Zend_Session patch, but saw this each time I chose to delete existing tables:

127.0.0.1 - - [05/Jul/2009:17:23:30 -0400] "GET /index.php?action=tablesCreation&module=Installation HTTP/1.1" 200 5955 "http://localhost/index.php?action=databaseSetup" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11 FirePHP/0.3"
127.0.0.1 - - [05/Jul/2009:17:23:35 -0400] "GET /undefined HTTP/1.1" 404 350 "http://localhost/index.php?action=tablesCreation&module=Installation" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11 FirePHP/0.3"
127.0.0.1 - - [05/Jul/2009:17:23:36 -0400] "GET /index.php?action=tablesCreation&module=Installation&deleteTables=1 HTTP/1.1" 200 4853 "http://localhost/index.php?action=tablesCreation&module=Installation" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11 FirePHP/0.3"

Unit Tests all_tests.php fails in tests/core/API/DocumentationGenerator.test.php, but succeeds when test is run by itself. Where is it getting website id 2?

Exception: ../tests/core/API/DocumentationGenerator.test.php -> Test_Piwik_API_DocumentationGenerator -> test_callableApiMethods_doNotFail -> Unexpected exception of type [Piwik_Access_NoAccessException] with message [You can't access this resource as it requires a 'view' access for the website id = 2.] in [/home/apang/work/piwik/trunk/core/Access.php line 340]
@robocoder
Copy link
Contributor Author

Re: Unit Tests. The problem is interdependencies and interactions between unit tests. The DocumentationGenerator.test.php cannot be run after SitesManager.test.php. Database.test.php must run before other table-based tests.

@robocoder
Copy link
Contributor Author

(In [1287]) fixes #845 - php 5.3 backward incompatibilities and deprecated functionality;
quick fixes #851 - unit tests; also fix redirect error in Installation when deleting existing tables

@robocoder robocoder added this to the Piwik 0.4.2 milestone Jul 8, 2014
@robocoder robocoder self-assigned this Jul 8, 2014
@sgiehl sgiehl closed this as completed Sep 18, 2023
@sgiehl sgiehl added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

No branches or pull requests

3 participants