gnosygnu / xowa

xowa offline wiki application
Other
375 stars 41 forks source link

file.missing.bin on redirected files #418

Open desb42 opened 5 years ago

desb42 commented 5 years ago

Looking at en.wikipedia.org/wiki/Adolf_Hitler#Dictatorship on xowa http server and mediawiki hitler

The image that is not working is characterised by the wikitext

[[File:Adolf Hitler-1933.jpg|thumb|left|upright|In 1934, Hitler became Germany's head of state with the title of ''[[Führer|Führer und Reichskanzler]]'' (leader and chancellor of the Reich).]]

the File:Adolf Hitler-1933.jpg leads to these lines in the session.txt

20190401_143532.242 page.async: url=en.wikipedia.org/wiki/Adolf_Hitler
20190401_143532.243 file.get: file=Adolf_Hitler-1933.jpg width=-1 page=Adolf_Hitler
20190401_143532.399 download fail: src='https://upload.wikimedia.org/wikipedia/commons/thumb/6/66/Adolf_Hitler-1933.jpg/170px-Adolf_Hitler-1933.jpg' trg='d:/des/xowa_x/file\commons.wikimedia.org\thumb\6\6\0\5\Adolf_Hitler-1933.jpg\170px.jpg' error='https://upload.wikimedia.org/wikipedia/commons/thumb/6/66/Adolf_Hitler-1933.jpg/170px-Adolf_Hitler-1933.jpg'
20190401_143532.449 download fail: src='https://upload.wikimedia.org/wikipedia/commons/6/66/Adolf_Hitler-1933.jpg' trg='d:/des/xowa_x/file\commons.wikimedia.org\orig\6\6\0\5\Adolf_Hitler-1933.jpg' error='https://upload.wikimedia.org/wikipedia/commons/6/66/Adolf_Hitler-1933.jpg'
20190401_143532.451 bin_mgr:thumb not found; wkr=xowa.http.wmf ttl=Adolf_Hitler-1933.jpg w=-1
20190401_143532.451 file.missing.bin: file=Adolf_Hitler-1933.jpg width=-1 page=Adolf_Hitler

Taking a look at en.wikipedia.org/wiki/File:Adolf_Hitler-1933.jpg imageredir It has been redirected

Somehow this redirection is not occurring

gnosygnu commented 5 years ago

Thanks for the clear example.

XOWA has redirection logic for the make process. I thought it also had the same logic for the dynamic page load, but it looks like it doesn't.

Let me do some more digging later. Thanks.