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. Hope this helps, Marius On Fri, Mar 15, 2013 at 2:41 AM, <[email protected]> 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 > [email protected] > http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
