Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#4019 closed defect (fixed)

PostGIS trac badges are not rendering

Reported by: robe Owned by: robe
Priority: medium Milestone: Website Management, Bots
Component: postgis Version: master
Keywords: Cc:

Description (last modified by robe)

I just noticed today that many of the trac bot badges are not showing.

https://trac.osgeo.org/postgis

What is weird is when I looked earlier today I only saw winnie's badges. Now I'm only seeing dronie badges.

I suspect it has something to do with the tracvm upgrade Martin Spott did last night. But before I report to OSGeo trac want to confirm that.

pramsey mentioned in IRC he's seeing the same behavior. So must be some weird caching in trac.

IRC log notes

21:33:08	robe2:	pramsey, bj0rn[m], dbaston -- check out trac and see if you run into any issues -- trac is now running on PostgreSQL 10.2
21:33:40	robe2:	https://trac.osgeo.org/osgeo/ticket/2109
21:33:41	sigq:	Title: #2109 (trac postgresql needs to be upgraded) – OSGeo (at trac.osgeo.org)
21:35:25	robe2:	is it just me or all our badges missing - https://trac.osgeo.org/postgis/ I never know cause I'm always vpned into so many networks
21:35:27	sigq:	Title: PostGIS (at trac.osgeo.org)
22:37:19	pramsey:	It’s not you, all the badges are missing.
22:38:15	pramsey:	although, following the image urls, returns a valid image https://debbie.postgis.net/buildStatus/icon?job=PostGIS_trunk
22:38:30	pramsey:	so… I wonder why they aren’t rendering in the wiki page

I cleared by cache and same issue on both on chrome and firefox. When I look at the net calls I see that the image calls were canceled and this shows:

Request URL:https://debbie.postgis.net/buildStatus/icon?job=PostGIS_trunk
Referrer Policy:no-referrer-when-downgrade
Provisional headers are shown
Origin:https://trac.osgeo.org
Referer:https://trac.osgeo.org/postgis
User-Agent:Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Mobile Safari/537.36
job:PostGIS_trunk

badge Images show fine on gitea and github.

Change History (7)

comment:1 by robe, 7 years ago

Owner: changed from pramsey to robe

comment:2 by robe, 7 years ago

Description: modified (diff)

comment:4 by komzpa, 7 years ago

Chrome's console prints CORS warnings:

(index):1 Access to Image at 'https://winnie.postgis.net:444/buildStatus/icon?job=PostGIS_trunk' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Access to Image at 'https://winnie.postgis.net:444/buildStatus/icon?job=PostGIS_2.3' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Access to Image at 'https://winnie.postgis.net:444/buildStatus/icon?job=PostGIS_2.4' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Access to Image at 'https://winnie.postgis.net:444/buildStatus/icon?job=PostGIS_2.2' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Access to Image at 'https://debbie.postgis.net/buildStatus/icon?job=PostGIS_2.3' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Access to Image at 'https://debbie.postgis.net/buildStatus/icon?job=PostGIS_2.2' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Access to Image at 'https://debbie.postgis.net/buildStatus/icon?job=PostGIS_trunk' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Access to Image at 'https://debbie.postgis.net/buildStatus/icon?job=PostGIS_Worker_Run/label=bessie&BRANCH=trunk' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Access to Image at 'https://debbie.postgis.net/buildStatus/icon?job=PostGIS_Worker_Run/label=bessie32&BRANCH=trunk' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Access to Image at 'https://gitlab.com/postgis/postgis/badges/svn-2.4/build.svg' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Access to Image at 'https://debbie.postgis.net/buildStatus/icon?job=PostGIS_2.4' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Access to Image at 'https://gitlab.com/postgis/postgis/badges/svn-2.3/build.svg' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Access to Image at 'https://gitlab.com/postgis/postgis/badges/svn-2.2/build.svg' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Redirect from 'https://secure.travis-ci.org/postgis/postgis.svg?branch=svn-2.2' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Redirect from 'https://secure.travis-ci.org/postgis/postgis.svg?branch=svn-2.3' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Redirect from 'https://secure.travis-ci.org/postgis/postgis.svg?branch=svn-trunk' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Redirect from 'https://secure.travis-ci.org/postgis/postgis.svg?branch=svn-2.4' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.
(index):1 Access to Image at 'https://gitlab.com/postgis/postgis/badges/svn-trunk/build.svg' from origin 'https://trac.osgeo.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://trac.osgeo.org' is therefore not allowed access.

comment:5 by strk, 7 years ago

Filed to SAC: https://trac.osgeo.org/osgeo/ticket/2122 And I found the culprit

comment:6 by strk, 7 years ago

Resolution: fixed
Status: newclosed

Fixed by trac config (see upstream ticket)

comment:7 by robe, 4 years ago

Milestone: Management 2.0Website Management, Bots

Milestone renamed

Note: See TracTickets for help on using tickets.