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

When tracker is in maintenande mode return HTTP status code 503 (instead of the current 200 and 400 http status cods) #11773

Merged
merged 3 commits into from Jul 22, 2017

Conversation

mattab
Copy link
Member

@mattab mattab commented Jun 7, 2017

This will make our return code consistent with the UI which also returns 503 while in maintenance mode

Learn more about starting a maintenance window: https://piwik.org/faq/how-to/faq_111/

…ead of the current status of 200 or 400

This will make our return code consistent with the UI which also returns 503 while in maintenance mode

 Learn more about starting a maintenance window: https://piwik.org/faq/how-to-update/faq_154/
@mattab mattab added the Needs Review PRs that need a code review label Jun 7, 2017
@mattab mattab added this to the 3.0.5 milestone Jun 7, 2017
@sgiehl
Copy link
Member

sgiehl commented Jun 7, 2017

I'm wondering if some older browsers might display an broken image if another code than 200 is returned for an image.

use Piwik\Tests\Framework\Fixture;
use Piwik\Tests\Framework\TestCase\SystemTestCase;
use Piwik\Tracker\TrackerConfig;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for adding the new use-Statements? Can't see that they are needed.

@sgiehl sgiehl merged commit 7214a9b into 3.x-dev Jul 22, 2017
@sgiehl sgiehl deleted the tracker_maintenance_503 branch July 22, 2017 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants