IRC Archive for channel #xwiki on 28 July 2016

Last modified by Vincent Massol on 2016/07/28 23:31

<mbuschman> has joined #xwiki
01:29 <Slashman> has quit
01:31 <Slashman> has joined #xwiki
01:36 <lkrejci> has quit
02:18 <mbuschman> Hey, I've got a strange issue regarding Short URLs on 8.2/Tomcat 8.0.32. I'm getting a 500 on /, but other pages work fine.
02:19 <mbuschman> I get "500 - Failed to extract the Entity Action from URL [http://127.0.0.1:8180/]"
02:19 <mbuschman> Which tells me that it's not adding the implied view action
02:19 <mbuschman> I made sure xwiki.showviewaction=0 is defined.
02:19 <mbuschman> Does anyone have any suggestions?
03:04 <jonesmeier> has quit
03:06 <jonesmeier> has joined #xwiki
03:18 <mbuschman> I switched to UrlRewriteFilter, and that works nicely now that I'm on a good version of Tomcat.
03:18 <mbuschman> Thanks to whoever added that tip in the red box on the Tomcat page.
05:12 <Slashman> has quit
05:43 <mbuschman> has quit
06:10 <sdumitriu> has quit
06:24 <sdumitriu> has joined #xwiki
06:40 <mflorea> has joined #xwiki
07:36 <msmeria> has joined #xwiki
07:47 <lkrejci> has joined #xwiki
07:49 <lkrejci> has quit
07:49 <lkrejci> has joined #xwiki
08:19 <Aranjedeath> has quit
08:33 <vmassol> has joined #xwiki
09:24 <acotiuga> has joined #xwiki
09:48 <lkrejci> has quit
09:48 <lkrejci> has joined #xwiki
09:48 <lkrejci> has joined #xwiki
09:56 <gdelhumeau> has joined #xwiki
11:18 <lkrejci> has quit
11:18 <lkrejci> has joined #xwiki
11:48 <lkrejci> has quit
11:48 <lkrejci> has joined #xwiki
12:03 <vmassol> has quit
12:09 <msmeria1> has joined #xwiki
12:11 <evalica> has joined #xwiki
12:11 <msmeria> has quit
12:14 <edvorg> has joined #xwiki
12:16 <Enygma`> has joined #xwiki
12:22 <msmeria> has joined #xwiki
12:24 <msmeria1> has quit
14:16 <ol-ow2> has joined #xwiki
14:35 <msmeria1> has joined #xwiki
14:38 <ol-ow2> Hi, my doc A(allowed to guest)  include a groovy script which call a doc as xwiki.getDocument(DocB). DocB doesn't allow view mode to guest. I'm getting a error (null) because groovy attempt to getDocument(DocB) with guest right. How to getDoc(DocB) ?
14:38 <msmeria> has quit
14:40 <ol-ow2> or in another words, how to allow  an xwiki.getDocument(DocB) in groovy for guest ?
14:47 <ol-ow2> any idea cjd ?
14:47 <cjd> hmm
14:48 <cjd> xc = xcontext.getContext(); d = xc.getWiki().getDocument("Doc.B", xc);   println(d.getFullName())
14:48 <cjd> see if that's working
14:49 <ol-ow2> ok, i'll try this
14:49 <cjd> but hmm, it's going to give you an XWikiDocument (internal) not a Document (api)
14:49 <ol-ow2> thx
14:49 <cjd> so maybe not a good solution, the API is a bit different and annoying and may break without warning
14:50 <ol-ow2> i expect get objects from docB
14:50 <cjd> ahh
14:50 <cjd> try xwiki.getDocumentAsAuthor("Doc.B")
14:50 <ol-ow2> ok
14:50 <cjd> that gives you the right type of object
14:54 <ol-ow2> many thanks cjd, that's work fine
14:57 <cjd> **AsAuthor() means "using the permissions of the author of the script"
14:58 <cjd> there's also saveAsAuthor()
15:04 <msmeria1> has quit
16:18 <lkrejci> has quit
16:18 <lkrejci> has joined #xwiki
16:18 <lkrejci> has quit
17:11 <acotiuga> has quit
17:15 <lkrejci> has quit
17:15 <lkrejci> has joined #xwiki
17:38 <mflorea> has quit
18:02 <sdumitriu> has quit
18:13 <sorinello> has quit
19:27 <evalica> has quit
19:54 <Enygma`> has quit
20:21 <sdumitriu1> has quit
20:28 <sdumitriu> has joined #xwiki
21:25 <edvorg> has quit
22:24 <gdelhumeau> has quit
22:47 <lkrejci> has quit
22:47 <lkrejci> has joined #xwiki
22:49 <ol-ow2> has quit
23:09 <daemoen_> is now known as <daemoen>
23:17 <lkrejci> has quit
23:17 <lkrejci> has joined #xwiki
23:31 <lkrejci> has quit
Tags:
   

Get Connected