Page MenuHomePhabricator

Local instance cannot access EventLogging schemas
Closed, ResolvedPublic

Description

Install EventLogging with a schema defined on meta.wikimedia.org and trigger an event and you'll see an error "Missing or empty schema"

The http request to meta gets redirected from http to https as it fires a request to:
http://meta.wikimedia.org/w/api.php?action=jsonschema&revid=10720373

The solution is to add redirects.

Event Timeline

Jdlrobson raised the priority of this task from to Needs Triage.
Jdlrobson updated the task description. (Show Details)
Jdlrobson moved this task to Backlog on the Analytics-EventLogging board.
Jdlrobson added subscribers: Jdlrobson, ori.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 18 2015, 5:06 PM

Change 232297 had a related patch set uploaded (by Jdlrobson):
Allow redirects for EventLogging schemas

https://gerrit.wikimedia.org/r/232297

What is $wgEventLoggingSchemaApiUri set to? Ca you just set HTTPS there?

$wgEventLoggingSchemaApiUri defaults to http. The default could of course be changed as an alternative solution but it should at least provide a better error message in this case (currently sends an empty schema).

		if ( !$content ) {
			wfDebugLog( 'EventLogging', "Request to $uri failed." );
		}

/Better message to frontend developer/. Sending an empty schema doesn't make it clear where the problem lies or that there is even a problem.

It sounds like we should at least change the default given that we know it will never work.

Change 232450 had a related patch set uploaded (by Legoktm):
Update a bunch of links to use HTTPS instead

https://gerrit.wikimedia.org/r/232450

Jdforrester-WMF closed this task as Resolved.Aug 22 2015, 10:26 PM
Jdforrester-WMF assigned this task to Legoktm.
Jdforrester-WMF set Security to None.

Change 232450 merged by jenkins-bot:
Update a bunch of links to use HTTPS instead

https://gerrit.wikimedia.org/r/232450

Change 232297 abandoned by Jdlrobson:
Allow redirects for EventLogging schemas

Reason:
Since the bug got closed I guess no one cares if we break things silently.

https://gerrit.wikimedia.org/r/232297