Bug#969553: urlcheck.py script tries to parse compressed GIMP image files

Laura Arjona Reina <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <2489278d-d37d-1e67-2357-c64d7918e5d5__32137.8279755422$1599249085$gmane$org@debian.org>
Package: www.debian.org
User: [email protected]
Usertag: scripts
Severity: normal

Hi

the scripts "urlcheck" generate this log in the /logos folder:

Looking into http://www.debian.org/logos/openlogo.xcf.gz
  Error reading page: http://www.debian.org/logos/openlogo.xcf.gz
Looking into http://www.debian.org/logos/officiallogo.xcf.gz
  Error reading page: http://www.debian.org/logos/officiallogo.xcf.gz
Looking into http://www.debian.org/logos/officiallogo-nd.xcf.gz
  Error reading page: http://www.debian.org/logos/officiallogo-nd.xcf.gz

I guess this means it tries to parse the xcf.gz files and probably we
need to update the script to skip such files (compressed images).

Anybody familiarised with Python, who can help?

The code of the script is here:

https://salsa.debian.org/webmaster-team/cron/-/tree/master/urlcheck

(I guess the main script, urlcheck.py, is where maybe the fix should be
made).

The script is called by 3 cron jobs:

17  3 * * *     cd /srv/www.debian.org/cron/urlcheck && ./run.urlcheck
36 12 * * *     cd /srv/www.debian.org/cron/urlcheck &&
./make.bad_link.pages
5  13 * * *     cd /srv/www.debian.org/cron/urlcheck && ./cleanup.logs

and the daily logs are here:
https://www-master.debian.org/build-logs/urlcheck/
(check logos folder).

Kind regards
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.