Community
Participate
Working Groups
Build Identifier: 20100917-0705 the ant task mediawiki-to-eclipse-help exposed by mylyn wikitext module has the capability to fetch mediawiki pages from the internet by using an inputstream on the URL computed for the resource. (line 228, org.eclipse.mylyn.internal.wikitext.mediawiki.core.tasks.WikiToDocTask.class in org.eclipse.mylyn.wikitext.mediawiki.core_1.3.0.v20100608-0100-e3x.jar) the request would be to implement two more argument for the task so that we could pass in a name and a pass for authenticating our wikipage. OR one argument which would be an input text file that would contain cookie entries for the authentication of this task for the given URL. i manage to attain such cookie files by calling out for CURL or WGET from my ant file. Reproducible: Always Steps to Reproduce: 1. write ant script using mediawiki-to-eclipse-help 2. give a mediawiki page that requires authentication as value for the argument "wikiBaseUrl" 3. running the script cannot get the content of the wikipage because that needs authentication
Thanks for the feature request. Feel free to submit a patch.
Created attachment 191363 [details] proposed patch for mediawiki-wikitext authentication support Just created a small patch that did the auth. for me. also minor modification on imagefetching strategy. altogether seem to work well.
Endre, thanks for the patch. Can you please re-cut the patch against the latest (in the Git repository)? It seems that this patch was produced against an older version of WikiText.
Created attachment 211590 [details] patch recut against the head of wikitext git repo. re-cutting patch against org.eclipse.mylyn.docs/.git as requested.
Thanks Endre. I've pushed the patch out to Gerrit for review: http://review.mylyn.org/#change,336 The contribution looks good. I've added some comments to the review - please take a look when you get the chance.
Created attachment 211701 [details] mylyn/context/zip
David, can you move the change to git.eclipse.org/r?
created a new review: https://git.eclipse.org/r/#change,6021
Closed as part of backlog clean-up. Please re-open if you'd like to see this revisited, perhaps with a contribution.