Bug 418964 - Missing images converting from wiki to eclipse doc
Summary: Missing images converting from wiki to eclipse doc
Status: RESOLVED DUPLICATE of bug 383400
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: 2.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 383400
  Show dependency tree
 
Reported: 2013-10-08 16:05 EDT by John Arthorne CLA
Modified: 2013-10-25 19:40 EDT (History)
2 users (show)

See Also:


Attachments
Console output from running conversion (5.08 KB, text/plain)
2013-10-08 16:06 EDT, John Arthorne CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2013-10-08 16:05:16 EDT
I am generating Eclipse doc from the following wiki page:

http://wiki.eclipse.org/Orion/Documentation/User_Guide/Getting_started

This has worked in the past, but inexplicably mediawiki-to-eclipse-help is now missing some of the images during the conversion. There are about 36 images on the page, and the conversion tool is only finding about 10 of them. The resulting HTML has broken links for the remaining images. I can find no pattern between the images that work and the images that don't work. The ant task is not giving any visible errors or warnings. I will attach the console output from running the tool. To give an example, here is an image reference that is not being found:

[[Image:Orion-topbanner.png|Common Banner]]

And here is an image that works fine:

[[Image:Orion-banner-expanded.png|Common banner with menus expanded]]


I have tried with both Mylyn WikiText 1.8.0, and the latest 1.9 snapshot from your download page.
Comment 1 John Arthorne CLA 2013-10-08 16:06:13 EDT
Created attachment 236242 [details]
Console output from running conversion
Comment 2 John Arthorne CLA 2013-10-18 10:36:39 EDT
After trying many things I am still not able to get a clean conversion to happen. When I delete half the wiki page the rest of the page converts cleanly, including images that are missing when the whole page is converted. So it seems not a problem with the images themselves, but perhaps related to the *number* of images on the page. My workaround for now will be deleting images from our doc until this is figured out.
Comment 3 Carsten Hammer CLA 2013-10-22 15:58:00 EDT
This is a duplicate of this bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=383400

you find the code to fix this problem here:

https://git.eclipse.org/r/#/c/6710/

It is broken because newer versions of mediawiki only allow to fetch (default) at a maximum 10 images at once. If you want to make a test with a version that is fixed in this regard you can try out a complete sample using a compiled version of wikitext from here:

https://github.com/carstenartur/wikitext/tree/master/wikitext-sample/wikitext-sample
Comment 4 Steffen Pingel CLA 2013-10-22 16:55:54 EDT
Thanks for pointing that out Carsten. It looks like the bug and fix slipped through the cracks. I'll reopen it and schedule it for the next release so we can take another look at it.
Comment 5 John Arthorne CLA 2013-10-23 08:42:10 EDT
Thank Carsten, that at least saves me from thinking it was a problem in our doc somewhere. I am happy to help verify a fix when it appears in a nightly/snapshot build.
Comment 6 David Green CLA 2013-10-25 19:40:50 EDT
closing as a duplicate of 383400, please reopen if you notice it happening again.

*** This bug has been marked as a duplicate of bug 383400 ***