it worked! Great! Thank indeed! Please, read below... >________________________________________ >From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Marius >Dumitru Florea [mariusdumitru.flo...@xwiki.com] >Sent: 19 March 2013 08:23 >To: XWiki Users >Subject: Re: [xwiki-users] Rendering of a particular version of a document > >On Tue, Mar 19, 2013 at 1:20 AM, ><ricardo.julio.rodriguez.fernan...@sergas.es> wrote: >> Hi! Thanks! Please, see below... >> >>>________________________________________ >>>From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Marius >>>Dumitru Florea [mariusdumitru.flo...@xwiki.com] >>>Sent: 18 March 2013 09:40 >>>To: XWiki Users >>>Subject: Re: [xwiki-users] Rendering of a particular version of a document >>> >>>On Sat, Mar 16, 2013 at 4:58 PM, >>><ricardo.julio.rodriguez.fernan...@sergas.es> wrote: >>>> Thanks, Marius! Please, read below... >>>> >>>>> ________________________________________ >>>>> From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of >>>>> Marius Dumitru Florea [mariusdumitru.flo...@xwiki.com] >>>>> Sent: 15 March 2013 10:24 >>>>> To: XWiki Users >>>>> Subject: Re: [xwiki-users] Rendering of a particular version of a document >>>>> >>>>> Fixed in 2.5RC1 by >>>>> https://github.com/xwiki/xwiki-platform/commit/c08cca8cae375ea306b071fedbae3b1809261126 >>>>> . See http://jira.xwiki.org/browse/XWIKI-5575 . >>>>> >>>>> The viewattachrev action is needed for attachments of the context >>>>> document because attachments are also versioned and when you view a >>>>> revision of a document you want to view the version of the attached >>>>> images from that revision. >>>>> >>>> >>>> I get the point! Thank you very much for the explanation. >>>> >>> >>>> Please, Marius, could it be possible to substitute the old >>>> XWikiServletURLFactory.java class with the new one in xwiki-core-2.4.jar >>>> and keep running XWiki Enterprise 2.4.30451? >>> >>>You can try taking XWikiServletURLFactory.class from >>>xwiki-core-2.5.jar and put it in WEB-INF/classes where you have >>>deployed XWiki (under the same path as in the jar, i.e. the class >>>package) but it might not work properly because it may contain other >>>changes besides XWIKI-5575 which are not compatible with the >>>xwiki-core-2.4.jar. >>> >> >> Understood. >> >>>Your best option is to patch the xwiki-core.2.4.jar. It's quite easy >>>if you're not afraid of Git and Maven: >>> >> >> Well, I'm not afraid of these tools, but I'm not a maven myself! Some years >> ago I was much closer than now to understand how XWiki development does work >> :-) But I keep trying! Always with your help. Thanks! >> > >Use this to checkout the code. Note that will will take a while, >depending on your bandwidth. > >$ git clone git://github.com/xwiki/xwiki-platform.git >$ cd xwiki-platform >>>xwiki-platform$ git checkout xwiki-core-2.4 >>>xwiki-platform$ git cherry-pick c08cca8cae375ea306b071fedbae3b1809261126 >>>xwiki-platform$ cd xwiki-core >>>xwiki-platform/xwiki-core$ mvn clean install >>>xwiki-platform/xwiki-core$ mv target/xwiki-core-2.4.jar >>>target/xwiki-core-2.4-XWIKI-5575.jar >>>
Having known CVS and Subversion, GitHub seems as the great evolution that will ease democratic contributions to software development projects, big and small ones. It seems simply great even though I will need some some time to fully understand it! Thanks for your help! >>>Make sure you use the same Java version as the one running your >>>application server. >>> >>> >> Ummm... I'm afraid my application server is the only one running java >> version "1.5.0" over here! I'm looking for a suitable box. In the mean time, >> I'm trying to understand how the team Git/Maven works! > >Note that I tried to patch xwiki-core 2.4 myself, but I have Java 1.7, >and besides the version, it seems the build requires Sun/Oracle JDK >(there's a backward compatibility aspect that uses com.sun.* classes). >The build should pass on Sun/Oracle JDK 1.5 though. > I'm lost at this point. I've built xwiki-core-2.4.jar in a Mac OS X box running... java -version java version "1.6.0_43" Java(TM) SE Runtime Environment (build 1.6.0_43-b01-447-10M4203) Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-447, mixed mode) And moved it to a different box running Suse Linux and... peat:~ # java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pxi32devifx-20100511a (SR11 FP2 )) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223ifx-20100510 (JIT enabled) J9VM - 20100509_57823_lHdSMr JIT - 20091016_1845ifx7_r8 GC - 20091026_AA) JCL - 20100511a peat:~ # And it seems it is working fine. Please, when must I expect problems when compiling with a newer Java release and moving back to an older one? Is there some compatibility table anywhere? Thanks again for your great help! Ricardo >> >> I'm following http://dev.xwiki.org/xwiki/bin/view/Community/Building, but it >> is not clear to me how must I check out the code. I'm running Mac OS X >> 10.6.8, thus I've no option to run GitHub. So, please, where >could I learn >> how to use Git to checkout the code? > >See above. It's a matter of 1 command line. > >> >> I found this... >> >> http://dev.xwiki.org/xwiki/bin/view/Drafts/GitDevelopment > >> http://extensions.xwiki.org/xwiki/bin/view/Extension/Git+Module > >You don't need this one for now. > >Hope this helps, >Marius > >> >> Please, am I missing something? >> >> Thanks for your help! > >>Hope this helps, >>Marius >> >> >> Thanks! >> >>>> >>>> For good or for bad I need to keep alive this server and I've not time to >>>> make a full update to the current version! I do hope I'll find that time >>>> soon! >>>> >>>> Thanks for your help! >>>> >>>> >>>>> Hope this helps, >>>>> Marius >>>>> >>>>> On Fri, Mar 15, 2013 at 2:41 AM, >>>>> <ricardo.julio.rodriguez.fernan...@sergas.es> wrote: >>>>> Hi! >>>>> >>>>> In an old XWIKI ENTERPRISE 2.4.30451, I'm having problems when rendering >>>>> a particular version of a document, rev is not null and the asked >>>>> revision exists. I got this... >>>>> >>>>> <div id="companylogo"> >>>>> <a href="/bin/Main/" title="Home" rel="home"> >>>>> <img src="/bin/viewattachrev/XWiki/IDISSkin/glIdisMotto.png" alt="Wiki >>>>> Logo"/> >>>>> </a> >>>>> </div> >>>>> >>>>> Instead of the HTML code generated when rev is not used... >>>>> >>>>> <div id="companylogo"> >>>>> <a href="/bin/Main/" title="Home" rel="home"> >>>>> <img src="/bin/download/XWiki/IDISSkin/glIdisMotto.png" alt="Wiki Logo"/> >>>>> </a> >>>>> </div> >>>>> >>>>> It seems that the use of ?rev forces the viewattachrev action to be >>>>> included in the img URL. I don't understand why does this happen. Please, >>>>> could this be avoided? >>>>> >>>>> Please, check this behavior on line here... >>>>> >>>>> 1) No rev in the URL: IT WORKS FINE >>>>> http://www.idisantiago.es/bin/OpenInitiative/TranslationalOmics2013 >>>>> >>>>> 2) Rev is not null and revision exists: THE LOGO DOESN'T SHOW UP >>>>> http://www.idisantiago.es/bin/viewrev/OpenInitiative/TranslationalOmics2013?rev=27.1 >>>>> >>>>> 3) Rev is not null but it doesn't exist: IT WORKS FINE >>>> http://www.idisantiago.es/bin/viewrev/OpenInitiative/TranslationalOmics2013?rev=30.7 >>>> >>>> 4) Rev is used but null: IT THROUGHS AN EXCEPTION AND THE HEADER IS NOT >>>> RENDERED >>>>> http://www.idisantiago.es/bin/viewrev/OpenInitiative/TranslationalOmics2013?rev= >>>>> >>>>> Please, is it possible to find a solution at least for case 1)? >>>>> >>>>> Thank you so much for your help! >>>>> >>>>> Ricardo >>>>> >>>>> -- >>>>> Ricardo Rodríguez >>>>> Research Management and Promotion Technician >>>>> Technical Secretariat >>>>> Health Research Institute of Santiago de Compostela (IDIS) >>>>> http://www.idisantiago.es >>>>> >>>>> Nota: A información contida nesta mensaxe e os seus posibles documentos >>>>> adxuntos é privada e confidencial e está dirixida únicamente ó seu >>>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta >>>>> mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non >>>>> está autorizada. >>>>> >>>>> Nota: La información contenida en este mensaje y sus posibles documentos >>>>> adjuntos es privada y confidencial y está dirigida únicamente a su >>>>> destinatario/a. Si usted no es el/la destinatario/a original de este >>>>> mensaje, por favor elimínelo. La distribución o copia de este mensaje no >>>>> está autorizada. >>>>> >>>>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm >>>>> _______________________________________________ >>>>> users mailing list >>>>> users@xwiki.org >>>>> http://lists.xwiki.org/mailman/listinfo/users >>>>_______________________________________________ >>>>users mailing list >>>>users@xwiki.org >>>>http://lists.xwiki.org/mailman/listinfo/users >>> >>> Nota: A información contida nesta mensaxe e os seus posibles documentos >>> adxuntos é privada e confidencial e está dirixida únicamente ó seu >>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, >>> por favor elimínea. A distribución ou copia desta mensaxe non está >>> autorizada. >>> >>> Nota: La información contenida en este mensaje y sus posibles documentos >>> adjuntos es privada y confidencial y está dirigida únicamente a su >>> destinatario/a. Si usted no es el/la destinatario/a original de este >>> mensaje, por favor elimínelo. La distribución o copia de este mensaje no >>> está autorizada. >>> >>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm >>> _______________________________________________ >>> users mailing list >>> users@xwiki.org >>> http://lists.xwiki.org/mailman/listinfo/users >>_______________________________________________ >>users mailing list >>users@xwiki.org >>http://lists.xwiki.org/mailman/listinfo/users > > Nota: A información contida nesta mensaxe e os seus posibles documentos > adxuntos é privada e confidencial e está dirixida únicamente ó seu > destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, > por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. > > Nota: La información contenida en este mensaje y sus posibles documentos > adjuntos es privada y confidencial y está dirigida únicamente a su > destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, > por favor elimínelo. La distribución o copia de este mensaje no está > autorizada. > > See more languages: http://www.sergas.es/aviso_confidencialidad.htm > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more languages: http://www.sergas.es/aviso_confidencialidad.htm _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users