Show last authors
1 <woshilapin> https://github.com/xwiki-contrib/application-xwebide/blob/0c065849f4fbc4c4ed3b4b947f37de9fdc8cc692/application-xwebide-ui/src/main/resources/WebIDECode/JS.xml#L251
2 00:00 <vmassol> thanks
3 00:00 <vmassol> I've done it like this for my need:
4 00:00 <woshilapin> Another way was testing the version
5 00:00 <woshilapin> https://github.com/xwiki-contrib/application-xwebide/blob/fa0bea52d52d874b631953e04f35842c80bcf3a5/application-xwebide-ui/src/main/resources/WebIDECode/ApplicationRename.xml#L66
6 00:01 <vmassol> https://gist.github.com/vmassol/565caeb2f3cec4b3dd4d
7 00:01 <vmassol> cool thanks woshilapin, useful to remember for the future, we should put that somewhere on xwiki.org actually
8 00:01 <vmassol> I'm in java though
9 00:02 <vmassol> anyway I'm happy with my solution
10 00:02 <vmassol> which is the best possible IMO
11 00:02 <woshilapin> Not bad your solution
12 00:03 <woshilapin> Considering what you tell me today :-)
13 00:03 <woshilapin> OK, going to bed
14 00:03 <woshilapin> See you
15 00:03 <vmassol> nn
16 00:07 <abusenius> has quit
17 00:17 <MasterPiece> has quit
18 00:51 <vmassol> ok my turn to go to bed, nn everyone
19 00:52 <vmassol> has quit
20 01:05 <Enygma`> has quit
21 02:47 <cjd> has quit
22 02:51 <cjd> has joined #xwiki
23 06:21 <mflorea> has joined #xwiki
24 07:41 <msmeria> has joined #xwiki
25 07:50 <Enygma`> has joined #xwiki
26 07:59 <cjd> has quit
27 07:59 <vmassol> has joined #xwiki
28 07:59 <cjd> has joined #xwiki
29 08:19 <cjd> has quit
30 08:23 <sdumitriu> has quit
31 08:41 <KermitTheFragger> has joined #xwiki
32 08:55 <woshilapin> has quit
33 09:13 <tmortagne> has joined #xwiki
34 09:16 <cjd> has joined #xwiki
35 09:19 <KermitTheFragger> has quit
36 09:21 <KermitTheFragger> has joined #xwiki
37 09:29 <ClemensR> has joined #xwiki
38 09:40 <sdumitriu> has joined #xwiki
39 09:42 <woshilapin> has joined #xwiki
40 10:00 <gdelhumeau> has joined #xwiki
41 10:24 <MasterPiece> has joined #xwiki
42 10:30 <MasterPiece> has quit
43 10:39 <xwikiorg_guest_2> has joined #xwiki
44 10:40 <xwikiorg_guest_2> is now known as <Finstern>
45 10:40 <Finstern> is now known as <Sandman>
46 10:40 <Sandman> is now known as <xwiki_finstern>
47 10:41 <xwiki_finstern> hi
48 10:42 <cjd> Hello
49 10:44 <xwiki_finstern> je peux parler en français ici ?
50 10:45 <xwiki_finstern> can I speak french here (I can express myself in english but I would be more .. precise in my native langage
51 10:45 <cjd> This is a English language channel, it's that way in order to share questions/answers with as many people as possible.
52 10:45 <xwiki_finstern> ok no pb
53 10:48 <xwiki_finstern> so I have a question about the Environment configuration in the xwiki.properties file
54 10:48 <vmassol> shoot!
55 10:49 <Enygma`> has quit
56 10:49 <cjd> G'morning Vincent
57 10:49 <vmassol> gm cjd
58 10:49 <vmassol> cjd: you'll be proud of me
59 10:49 <cjd> ut oh
60 10:49 <vmassol> I'm rewriting all my spam tools in java and removing all hacks done yesterday… almost done
61 10:50 <xwiki_finstern> I have my application build on xwiki, it work nicely and all, but I'm moving it to a new server now and I discover that I cannot use /opt/ to store my data anymore, for administratives reasons and all
62 10:50 <cjd> haha
63 10:50 <vmassol> xwiki_finstern: ok
64 10:50 <xwiki_finstern> so I wanted to move it to another place, I think I need to use the environment.permanentDirectory option
65 10:50 <vmassol> correct
66 10:51 <xwiki_finstern> but can I change it and move all my /work/Catalina/localhost/xwiki to the new place ?
67 10:51 <xwiki_finstern> is it just as simple as that ?
68 10:51 <vmassol> you mean you didn't set it before
69 10:51 <xwiki_finstern> (ah and hello vmassol, I have read a ton of your messages those last months :D)
70 10:51 <vmassol> and thus it was using some temp location
71 10:51 <vmassol> ?
72 10:51 <tmortagne> given the previous path yep he did not set it before :)
73 10:51 <vmassol> hehe
74 10:52 <xwiki_finstern> yeah I didn't set it before
75 10:52 <vmassol> ok
76 10:52 <vmassol> so yes you can move it
77 10:52 <vmassol> to the new location
78 10:52 <vmassol> there might be too many files in there
79 10:52 <vmassol> forget that
80 10:52 <xwiki_finstern> so my "application" is still in the /work/Catalina/localhost/xwiki path
81 10:52 <vmassol> you can move it
82 10:52 <xwiki_finstern> my bad
83 10:52 <xwiki_finstern> ok
84 10:53 <vmassol> when you start your wiki it prints the path it's using for the permanent dir if it's not set
85 10:53 <vmassol> you should move all the files in that path to your new location
86 10:54 <tmortagne> ( xwiki_finstern: just for the record, /work/Catalina/localhost/ is a temporary folder from Tomcat point of view, you are just lucky it was not configured to clean it )
87 10:54 <xwiki_finstern> I will try it in my integration environment just now .. I have to move the permanent directory + database to another place than initially set in my production environment .. surprise ..
88 10:54 <vmassol> :)
89 10:54 <xwiki_finstern> I do weekly save and was the only person using the app' 'til now, so it was ok, but yeah, I'm lucky I think you're right
90 10:55 <xwiki_finstern> I will try it now, and call for help is something go wrong :p
91 10:55 <vmassol> ok gl!
92 10:55 <tmortagne> if you move to Debian (or some other Debian based system) there is Debian packages with this kind of property set in a more standard way
93 10:56 <xwiki_finstern> (it's not a possibility mortagne .. I have to stick to enterprise rhel, not my choice)
94 10:57 <tmortagne> it was actually just in case your move was planned to a Debian system
95 10:57 <Denis> has joined #xwiki
96 10:57 <xwiki_finstern> hehe well not the case, rhel server to rhel server
97 10:58 <xwiki_finstern> they don't have any other linux dist here
98 11:00 <tmortagne> I don't have anything against rhel, don't know it enough. Too lazy to move from Debian based systems.
99 11:03 <xwiki_finstern> you find them in most enterprises environment, but it's still "linux"
100 11:03 <Slashman> has joined #xwiki
101 11:13 <woshilapin> has quit
102 11:15 <woshilapin> has joined #xwiki
103 11:27 <vmassol> FYI we're going to setup cloudflare on xwiki.org today
104 11:29 <vmassol> hopefully it'll work fine but it's possible that there'll be some xwiki.org outage during DNS propagation or something like that
105 11:32 <cjd> cool :)
106 11:33 <xwiki_finstern> ok
107 11:34 <xwiki_finstern> so I cp my files to another place and changed the path for the permanent dir
108 11:35 <xwiki_finstern> I managed to restart the application and log in and all
109 11:35 <xwiki_finstern> but he's angry and don't find the files, I have the pages and text since it's in the database
110 11:35 <xwiki_finstern> but no jpg or whatever
111 11:36 <xwiki_finstern> what should I have done wrong here ?
112 11:37 <tmortagne> does tomcat have write access to those files in the new location ?
113 11:37 <xwiki_finstern> good question, I havn't checked this
114 11:37 <tmortagne> probably a right issue with the root folder of the new location
115 11:37 <xwiki_finstern> it's in /var/xwiki for this test
116 11:38 <xwiki_finstern> I'm in root and created this in root
117 11:40 <xwiki_finstern> the original "temporary directory" is set to root too
118 11:40 <tmortagne> the owner yes but the rights ?
119 11:40 <xwiki_finstern> I'm not a genius of linux, sorry
120 11:40 <xwiki_finstern> it's root:root
121 11:41 <xwiki_finstern> in each case
122 11:41 <tmortagne> still the owner :)
123 11:41 <tmortagne> do ls -l and look at the numbers
124 11:41 <tmortagne> you should have something like 6 4 0
125 11:41 <tmortagne> near the owner
126 11:41 <tmortagne> it tells you what are the owner, group, everyone rights
127 11:42 <xwiki_finstern> it's more drwxr-xr-x
128 11:42 <tmortagne> yep so only read and execution for the group and everyone else
129 11:42 <tmortagne> best is to give all this to tomcat user
130 11:42 <tmortagne> what user is used to run tomcat ?
131 11:42 <xwiki_finstern> it's the same in each case
132 11:43 <tmortagne> maybe tomcat is run by root and it's useless to look at it :)
133 11:43 <xwiki_finstern> hah, tomcat is installed via a script so I can't tell exactly, it's not a manual install sorry
134 11:43 <tmortagne> if tomcat is running you can see who runs it in top or ps
135 11:44 <xwiki_finstern> but everything was launched with root (it's a secure environment, without any access to Internet)
136 11:45 <xwiki_finstern> yeah as far as I can tell, everything except mysql is stuck to user root
137 11:45 <xwiki_finstern> (and I don't even see a catalina process, only "java" process)
138 11:45 <tmortagne> then I can't tell you
139 11:45 <xwiki_finstern> (never understood that)
140 11:45 <tmortagne> what error do you get exactly in the log ?
141 11:46 <tmortagne> "I don't even see a catalina process, only "java" process" that's because all that is a Java application so actually program running everything is Java
142 11:46 <xwiki_finstern> ok
143 11:47 <xwiki_finstern> I believed there should have a catalina process but you're right, if it's java, only java shown
144 11:47 <xwiki_finstern> I'm checking catalina logs
145 11:47 <xwiki_finstern> a sec
146 11:50 <xwiki_finstern> 2016-01-28 11:36:41,367 [http://163.104.23.28/xwiki/download/XWiki/EmmanuelKlein/EKVatar.jpg?width=50&height=50&keepAspectRatio=true] WARN c.x.x.p.i.ImagePlugin - Failed to transform image attachment.
147 11:50 <xwiki_finstern> I get this
148 11:51 <vmassol> could you use pastebin.com to paste?
149 11:51 <xwiki_finstern> it give a hint about attachment storage switched from database to filesystem (I did this switch actually but that was 6 month ago and had no pb)
150 11:51 <xwiki_finstern> full log ?
151 11:52 <tmortagne> full log since last tomcat startup
152 11:52 <tmortagne> but not here
153 11:53 <xwiki_finstern> of course not .. not on irc xD
154 11:53 <xwiki_finstern> is there a special pastebin adress for xwiki ?
155 11:56 <vmassol> no
156 11:58 <xwiki_finstern> it's a large file
157 11:58 <tmortagne> select just the part after last tomcat restart
158 11:59 <xwiki_finstern> it's catalina.2016-01-28.log where you find the relevant data ?
159 11:59 <xwiki_finstern> or catalina.out ?
160 11:59 <tmortagne> depends how it's installed, on Debian I would looks at catalina.out
161 12:00 <tmortagne> but maybe catalina.2016-01-28.log is a duplicate of the log for today
162 12:01 <xwiki_finstern> ok
163 12:04 <gdelhumeau> xwiki_finstern: do you have file system attachment enabled?
164 12:05 <xwiki_finstern> yes
165 12:17 <xwiki_finstern> eww
166 12:17 <xwiki_finstern> finally
167 12:18 <xwiki_finstern> sorry it was really a big log, had to find the right part, it's an exctract but I think it point some usefull info
168 12:18 <xwiki_finstern> http://pastebin.com/8wgVxWcq
169 12:20 <xwiki_finstern> especially this line
170 12:21 <xwiki_finstern> starting at 170
171 12:23 <xwiki_finstern> line 426 : 426.2016-01-28 11:09:05,499 [pool-2-thread-1] INFO o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory: [/var/xwiki/solr]
172 12:24 <xwiki_finstern> mean it's using the new directory for data I wrote in option file, that's good
173 12:24 <tmortagne> at least this line means you are using the right directory yes
174 12:26 <tmortagne> looks like the issue you have are with the FS attachments
175 12:26 <tmortagne> but there is something weird
176 12:26 <xwiki_finstern> images, attachments, it tell me the file does not exist
177 12:26 <xwiki_finstern> everywhere
178 12:26 <tmortagne> I see "Solr index directory '/var/xwiki/solr/xwiki/data/index' doesn't exist."
179 12:26 <tmortagne> which means you did not moved everything
180 12:26 <tmortagne> did not skipped solr folder on puprose ?
181 12:27 <xwiki_finstern> nope
182 12:27 <tmortagne> then seems to me you did not really moved the content of the old folder
183 12:27 <xwiki_finstern> that's strange I litterally used cp -rf xwiki /var
184 12:27 <tmortagne> at least the solr content was definitely not moved
185 12:27 <xwiki_finstern> this solr index should be in the xwiki folder, right ?
186 12:28 <tmortagne> what do you new folder content looks like ?
187 12:28 <xwiki_finstern> have the folders .. cache extension jobs solr ..
188 12:29 <xwiki_finstern> xwiki
189 12:29 <tmortagne> wait
190 12:29 <tmortagne> no nothing
191 12:29 <tmortagne> could you copy/paste ls resilt
192 12:29 <tmortagne> result
193 12:30 <xwiki_finstern> checked and found the famous "index" folder
194 12:30 <tmortagne> yes it created it automatically
195 12:30 <tmortagne> you should probably stop tomcat, empty all that and try copy again
196 12:31 <xwiki_finstern> ok
197 12:31 <tmortagne> and check the result after the copy before running tomcat
198 12:31 <xwiki_finstern> will try it
199 12:31 <xwiki_finstern> should I stop mysql too ?
200 12:31 <tmortagne> no need
201 12:31 <xwiki_finstern> ok
202 12:31 <tmortagne> because at least for solr something went wrong
203 12:31 <xwiki_finstern> I alway wonder
204 12:31 <xwiki_finstern> ok erasing all the mess and trying again
205 12:31 <tmortagne> (which is not a big deal in case of solr but it means it could be wrong for other things too)
206 12:35 <tmortagne> (lunch time for me, back in about 1h)
207 12:43 <xwiki_finstern> good apetite to you mortagne and thank you very much
208 12:44 <xwiki_finstern> ll
209 12:44 <xwiki_finstern> oops
210 13:10 <gdelhumeau> I would like to install https://wiki.jenkins-ci.org/display/JENKINS/Embeddable+Build+Status+Plugin on ci.xwiki.org
211 13:10 <gdelhumeau> any objection?
212 13:11 <gdelhumeau> It's a plugin that offer a badge (build pass/build error) that you can embed in the README of your project (I'm thinking about contrib applications here)
213 13:14 <vmassol> no objection but I though there was something by default but probably not
214 13:14 <gdelhumeau> xwiki_finstern: maybe check that the folder containing the attachments is the same than the one you have copied
215 13:15 <vmassol> so +1 gdelhumeau
216 13:17 <xwiki_finstern> has quit
217 13:17 <xwiki_finstern2> has joined #xwiki
218 13:17 <xwiki_finstern2> test
219 13:18 <xwiki_finstern2> ah good, it work again, sorry gdelhumeau, wanted to answer you and the irc client wasn't working anymore
220 13:18 <xwiki_finstern2> so as I tryed to say : it's ok now, the application is working as intended, I think I had problem when I tryed to move files and folders
221 13:19 <xwiki_finstern2> I erased all this new folder in /var and started from scratch, this time using cp from my yesterday save
222 13:19 <xwiki_finstern2> and now it work fine
223 13:19 <xwiki_finstern2> it's a relief
224 13:20 <xwiki_finstern2> time to write some procedures and go back to the prod admin with this new deal
225 13:20 <xwiki_finstern2> thank you very (very) much
226 13:20 <xwiki_finstern2> next time I will come to bug you about the UrlRewriteFilter
227 13:23 <vmassol> notice: restarting spam cleaning
228 13:24 <vmassol> sorry...
229 13:24 <vmassol> :)
230 13:28 <xwiki_finstern2> wow
231 13:33 <vmassol> guys can you find more spam on xwiki.org? (except in the AS which I still need to finish cleaning)
232 13:34 <gdelhumeau> mflorea: any objection against having https://wiki.jenkins-ci.org/display/JENKINS/Embeddable+Build+Status+Plugin on ci.xwiki.org?
233 13:35 <mflorea> vmassol: http://www.xwiki.org/xwiki/bin/view/Main/Search?text=phone&f_type=DOCUMENT&f_locale=en&f_locale=&r=1
234 13:35 <vmassol> thanks
235 13:36 <vmassol> mflorea: done
236 13:36 <vmassol> any more?
237 13:38 <mflorea> vmassol: hmm, if I go to the second page of results I still have spam
238 13:38 <mflorea> http://www.xwiki.org/xwiki/bin/view/Main/Search?text=phone&f_type=DOCUMENT&f_locale=en&f_locale=&r=1&firstIndex=10
239 13:38 <helge> has joined #xwiki
240 13:38 <vmassol> ops
241 13:38 <vmassol> xwiki.org is so fast :)
242 13:39 <mflorea> :)
243 13:39 <helge> Hi, just want to note that your wiki seams to be open to all (http://www.xwiki.org/xwiki/bin/view/Main/News)
244 13:39 <mflorea> gdelhumeau: nothing against it
245 13:39 <helge> everybody can delete or do anything.
246 13:39 <gdelhumeau> good :)
247 13:40 <vmassol> helge: wdym?
248 13:40 <gdelhumeau> helge: xwiki.org is open, yes
249 13:40 <vmassol> just logged out and there's no delete button
250 13:40 <gdelhumeau> helge: you do post-actions-moderation
251 13:40 <helge> I am not logged in but can blogpost
252 13:40 <gdelhumeau> hmm
253 13:41 <vmassol> I don't think you can
254 13:41 <gdelhumeau> I have the "The current wiki is temporarily in read only mode, due to some technical issues. Editing rights and new user registration will be restored as soon as possible." message but I can actually do things
255 13:41 <vmassol> have you tried?
256 13:41 <vmassol> trying
257 13:41 <tmortagne> gdelhumeau: that's because you are admin
258 13:41 <helge> I see all the buttons. should I try?!
259 13:41 <gdelhumeau> ok sorry for the noise
260 13:41 <gdelhumeau> anyway it's faster now
261 13:41 <gdelhumeau> good job
262 13:41 <vmassol> we should imrpvoe the ui to not show the create form
263 13:41 <tmortagne> it's not in a real readonly mode
264 13:42 <gdelhumeau> tmortagne: any objection against having https://wiki.jenkins-ci.org/display/JENKINS/Embeddable+Build+Status+Plugin on ci.xwiki.org?
265 13:42 <tmortagne> +0
266 13:43 <helge> ok, I can not. Asks to log in. However, earlier I never saw all the edit and post buttons. Now everybody does.
267 13:43 <sdumitriu> has quit
268 13:46 <vmassol> mflorea: I don't understand why there are holes in the display for http://www.xwiki.org/xwiki/bin/view/Main/Search?text=phone
269 13:46 <vmassol> there are plenty of page results but the first pages are almost empty in content
270 13:47 <vmassol> helge: I'll check it out
271 13:47 <vmassol> ClemensR: do you remember the pages you rolledback?
272 13:47 <mflorea> the search results are cached on the solr side, but we check if the page exists and if the user has view right on display
273 13:48 <vmassol> ok got it
274 13:48 <helge> Ok, just wanted to let you know. I' out.
275 13:48 <ClemensR> rolled back? I thoight I just deleted them
276 13:48 <helge> has quit
277 13:48 <vmassol> if that's the case then good
278 13:48 <ClemensR> and deleted from trashcan, too
279 13:48 <vmassol> hehe was checking that :)
280 13:49 <vmassol> any spam anyone?
281 13:49 <vmassol> I'm eager to kill more!!
282 13:49 <vmassol> it's so easy now
283 13:49 <vmassol> :)
284 13:50 <vmassol> helge is gone but the reason he was seeing the form is because we cahc eit
285 13:51 <vmassol> and as I was the one who rendered its content and I have admin permissions it was cached with the form...
286 13:51 <vmassol> we'll need to fix this at some point
287 13:51 <vmassol> too bad that the date search on http://www.xwiki.org/xwiki/bin/view/Main/AllDocs#|t=alldocs&p=1&l=15&s=doc.space&d=asc is failing
288 13:52 <tmortagne> found http://www.xwiki.org/xwiki/bin/view/Main/Garcinia+cambogia :)
289 13:52 <tmortagne> old style spam resolution
290 13:53 <vmassol> thanks, need to add a user-based algorithm now
291 13:54 <vmassol> (well jus the ui part)
292 13:54 <vmassol> (since I have the backend)
293 13:54 <vmassol> please don't touch this page
294 14:01 <sdumitriu> has joined #xwiki
295 14:07 <vmassol> haha
296 14:07 <vmassol> since clemens added a rev to http://www.xwiki.org/xwiki/bin/view/Main/Garcinia+cambogia#History my tool didn't fully remove the page
297 14:08 <ClemensR> oops
298 14:08 <vmassol> not your fault clements, just stating the issue I have :)
299 14:08 <vmassol> *clemens
300 14:08 <vmassol> doing it by hand
301 14:09 <ClemensR> ah, its is very old. I thought I did it yesterday ;)
302 14:10 <vmassol> done
303 14:10 <vmassol> so any more spam?
304 14:10 <vmassol> any idea on how I can get the list of pages modified in the past 2 days using the UI?
305 14:10 <vmassol> I guess I'll have to script this...
306 14:15 <tmortagne> you have last edit date in the document index
307 14:19 <vmassol> yes but it does't work
308 14:19 <vmassol> - you can't filter
309 14:19 <vmassol> - you can't sort
310 14:20 <vmassol> (you can sort but it doesn't work)
311 14:28 <tmortagne> that's weird I often use it
312 14:29 <tmortagne> sorting on date field is supposed to work well
313 14:29 <ClemensR> document index seem to work for me just now, but it only shows pages from one wiki, of course
314 14:29 <tmortagne> seems to work well for me when I go to http://www.xwiki.org/xwiki/bin/view/Main/AllDocs#|t=alldocs&p=1&l=15&s=doc.date&d=asc
315 14:30 <vmassol> try having latest first
316 14:30 <ClemensR> http://www.xwiki.org/xwiki/bin/view/Main/AllDocs#|t=alldocs&p=1&l=15&s=doc.date&d=desc
317 14:30 <vmassol> doesn't work for me
318 14:30 <tmortagne> http://www.xwiki.org/xwiki/bin/view/Main/AllDocs#|t=alldocs&p=1&l=15&s=doc.date&d=desc work well
319 14:30 <vmassol> when I click your link ClemensR
320 14:31 <ClemensR> or better http://www.xwiki.org/xwiki/bin/view/Main/AllDocs#|t=alldocs&p=1&l=50&s=doc.date&d=desc ... hmm
321 14:31 <vmassol> doesn't work :)
322 14:31 <vmassol> check the dates
323 14:31 <tmortagne> what "doesn't work means" ?
324 14:31 <tmortagne> I did check the date and they are ordered properly
325 14:31 <vmassol> it means the date are not sorted properly
326 14:31 <tmortagne> they are
327 14:31 <vmassol> first date should be 2016 for ex
328 14:31 <ClemensR> here date is descenfing, 5 entries today, 2 yesterday ...
329 14:32 <tmortagne> first date is 2016/01/28 for me
330 14:32 <tmortagne> so today
331 14:32 <vmassol> I don't see how this could be related to the browser using it...
332 14:32 <ClemensR> mayeb browser bug? some ole Firefox here
333 14:32 <tmortagne> try cleaning your cache maybe I don't know, but this filter always worked well for me
334 14:33 <ClemensR> even works on IE 8 :)
335 14:33 <tmortagne> hmm I get some weird result as guest
336 14:33 <tmortagne> it's order propery but there is some doc without any date or link
337 14:34 <tmortagne> in the middle of the others
338 14:34 <ClemensR> well, no access rights, that is normal
339 14:34 <tmortagne> probably document on which guest does not have read right
340 14:35 <tmortagne> I tough those were not listed at all
341 14:35 <ClemensR> no, access rights applies only on the content
342 14:35 <ClemensR> in search they are not shown at all
343 14:35 <tmortagne> anyway I get proper ordering in both FF and Chrome
344 14:35 <tmortagne> there is something very weird on your side vmassol
345 14:36 <ClemensR> but in index they just get listed without link
346 14:37 <tmortagne> I tried without hidden document enabled but works well too
347 14:39 <vmassol> ok AS is clean now
348 14:39 <vmassol> http://www.xwiki.org/xwiki/bin/view/Main/News
349 14:39 <vmassol> :)
350 14:40 <vmassol> we should probably do something about created profiles as they tend to spam the AS
351 14:40 <vmassol> maybe minor edit or filter them
352 14:41 <vmassol> well we're still missing the filters in the AS UI
353 14:41 <vmassol> if we had them we could configure the default filter to filter user creations for example
354 14:41 <vmassol> (provided we were sending custom events...)
355 14:41 <vmassol> checking AllDocs with different browser now
356 14:41 <vmassol> (I'm on chrome)
357 14:42 <vmassol> indeed works on FF
358 14:42 <tmortagne> works on chrome for me
359 14:43 <vmassol> so it seems we have no more spam, do we agree?
360 14:43 <vmassol> tmortagne: weird
361 14:43 <vmassol> (I'm on version 46)
362 14:43 <tmortagne> I agree I have no more keyword idea to find spam at least :)
363 14:44 <vmassol> there are some user profiles which probably belong to spammers
364 14:44 <vmassol> but till they create spam I don't think we should remove them
365 14:44 <vmassol> since it's hard to know if they're real or not
366 14:44 <tmortagne> I don't understand how it could be related to the browser since it's all done on server side
367 14:44 <vmassol> yes me neither
368 14:44 <vmassol> could be cookie
369 14:44 <tmortagne> I don't think we look at cookie for that
370 14:45 <tmortagne> does it do something when you click on date column ?
371 14:45 <vmassol> you mean on the sort arrow?
372 14:45 <vmassol> it tries to sort accordinly
373 14:45 <vmassol> (asc or desc)
374 14:45 <vmassol> I'll show you a screenshot
375 14:46 <tmortagne> I mean does it actually do something (right or wrong) ?
376 14:46 <tmortagne> i.e. is this asking to sort this column really generate a new ajax request to the server
377 14:46 <tmortagne> you should maybe check the request sent to the server
378 14:47 <vmassol> hmmm
379 14:47 <vmassol> it works now
380 14:47 <vmassol> could have been some cache issue maybe
381 14:48 <vmassol> I'm going to open edits and registration again on xwiki.org
382 14:48 <vmassol> anyone against?
383 14:48 <tmortagne> +1
384 14:52 <vmassol> ok it's open again
385 14:52 <Inge-> has quit
386 14:54 <woshilapin> Hi, I'm trying to play with the new VFS API
387 14:54 <vmassol> cool :)
388 14:55 <woshilapin> I've tried the snippet to list all the files in a ZIP
389 14:55 <woshilapin> I was wondering how $niotool.newDirectoryStream is knowing what is the kind of archive it's opening?
390 14:55 <woshilapin> Extension of the file?
391 14:55 <vmassol> attach:
392 14:55 <vmassol> the prefix
393 14:55 <woshilapin> *.zip -> ok, I know it's zip so I use ZIP algorithm
394 14:55 <vmassol> the URI scheme
395 14:56 <vmassol> ah sorry
396 14:56 <vmassol> it's the extension yes
397 14:56 <cjd> has quit
398 14:56 <woshilapin> OK, is there a possibility to force to parse with zip?
399 14:56 <vmassol> truevfs has a list of known extensions
400 14:56 <vmassol> not that I know of
401 14:56 <vmassol> would need to check truevfs
402 14:57 <vmassol> what is easy to do is to add new mappings
403 14:57 <tmortagne> does it means it does not know how to open a XAR ?
404 14:57 <vmassol> indeed I haven't added the mapping for our xar
405 14:57 <vmassol> but there's a xar format that exists
406 14:57 <vmassol> and truevfs may not it
407 14:57 <vmassol> which would be an issue...
408 14:57 <vmassol> ;)
409 14:57 <vmassol> *may not it/may know it
410 14:58 <woshilapin> mmh
411 14:58 <tmortagne> would be nice to provide some mime type some way
412 14:58 <woshilapin> Indeed
413 14:58 <tmortagne> at least that way you are sure it will read it properly whatever file name you have
414 14:59 <vmassol> https://truevfs.java.net/usecases/aff.html
415 14:59 <vmassol> "Note that TrueVFS automatically recognizes false positive archive files, so it cannot get confused by files with arbitrary content which accidently use the extensions of your custom application file format."
416 14:59 <vmassol> cool at least
417 14:59 <woshilapin> Yes, but I was planning to use an unexisting extension name, because it's a ZIP, but with a specific format in it
418 15:00 <woshilapin> TrueVFS 0.11.0 ships with pluggable driver modules for FILE, HTTP(S), JAR, ODF, SFX, TAR, TAR.BZIP2, TAR.GZIP, TAR.XZ, ZIP and ZIP.RAES (TZP) file system schemes.
419 15:00 <woshilapin> May be extensible
420 15:00 <vmassol> actually
421 15:00 <vmassol> this list not the full list
422 15:00 <vmassol> it has a lot more
423 15:00 <woshilapin> The interesting part is "ships with pluggable driver modules"
424 15:00 <woshilapin> Looks like you may be able to add some
425 15:00 <vmassol> yes that's what I did
426 15:00 <vmassol> :)
427 15:01 <woshilapin> For XAR ?
428 15:01 <vmassol> no
429 15:01 <vmassol> for supporting archives in attachment
430 15:01 <MasterPiece> has joined #xwiki
431 15:02 <woshilapin> With this FsArchiveDriver?
432 15:02 <vmassol> yes
433 15:02 <vmassol> well not directly but ues
434 15:02 <vmassol> *yes
435 15:03 <vmassol> ifi you're interested: https://github.com/xwiki/xwiki-platform/blob/259f5b7deeb18a2d31ae644e16f25e01f416aa09/xwiki-platform-core/xwiki-platform-vfs/xwiki-platform-vfs-api/src/main/java/org/xwiki/vfs/internal/attach/AttachDriver.java#L35-L35
436 15:04 <vmassol> and here's where I register it, keeping all the other drivers/extensions: https://github.com/xwiki/xwiki-platform/blob/dea3e07eb3f8b446fe617eec07cf9034e9d45718/xwiki-platform-core/xwiki-platform-vfs/xwiki-platform-vfs-api/src/main/java/org/xwiki/vfs/internal/VfsAttachDriverRegistrationListener.java
437 15:04 <woshilapin> Oh Thanks, will take a look
438 15:07 <woshilapin> // Configure custom application file format.
439 15:07 <woshilapin> config.setArchiveDetector(new TArchiveDetector("aff", new JarDriver()));
440 15:07 <woshilapin> Maybe this is it
441 15:09 <vmassol> sure
442 15:09 <vmassol> as I said you can add mappings
443 15:09 <vmassol> but it's in code
444 15:09 <woshilapin> What would be the best place to configure that?
445 15:10 <woshilapin> (at the launch of XWiki but I'm not sure where)
446 15:10 <cjd> has joined #xwiki
447 15:11 <woshilapin> I was thinking in the initialize() of a ScriptService but looks like a hack
448 15:11 <vmassol> I dno't understand
449 15:11 <tmortagne> usually this kind of thing goes in a listener
450 15:11 <vmassol> I've already pointed to the place where it's registered
451 15:11 <vmassol> *pinted you
452 15:11 <vmassol> *pointed
453 15:11 <tmortagne> listening to ApplicationStartedEvent for example
454 15:11 <vmassol> tmortagne: that's the link I gave already
455 15:12 <vmassol> this one: https://github.com/xwiki/xwiki-platform/blob/dea3e07eb3f8b446fe617eec07cf9034e9d45718/xwiki-platform-core/xwiki-platform-vfs/xwiki-platform-vfs-api/src/main/java/org/xwiki/vfs/internal/VfsAttachDriverRegistrationListener.java
456 15:12 <woshilapin> Ah, EventListener is for that kind of things, ok
457 15:12 <woshilapin> (sorry, I'm a bit slow)
458 15:12 <vmassol> what needs to be designed if it's an important use case is to define how to let the user add new known extensions
459 15:13 <vmassol> I'm not suggesting to do the same thing, I'm suggesting to reuse it to let users configure new extensions
460 15:13 <tmortagne> yes it's quite a pity having to write a component just to say that .toto is actually a zip
461 15:13 <woshilapin> :-)
462 15:13 <vmassol> but
463 15:13 <vmassol> really you're complicating a bit woshilapin
464 15:14 <vmassol> you just need to rename your zip
465 15:14 <vmassol> and you're done
466 15:14 <vmassol> and it's better than a .toto extension which doesn't mean much
467 15:14 <woshilapin> Yes, I know... but that cut out the fun of exploring new stuff ;-)
468 15:14 <tmortagne> sometime you don't control the file name
469 15:14 <vmassol> you rename to the format that you wish to open your archive with
470 15:14 <woshilapin> And the extension is a well defined format in Learn PAd project
471 15:14 <vmassol> yes I'm not saying that are not some cases
472 15:15 <vmassol> just that there's an easy workaround ATM
473 15:15 <woshilapin> yes, yes completely agree, there is a simple solution
474 15:15 <vmassol> actually
475 15:15 <vmassol> I wouldn't do it in the listener
476 15:15 <vmassol> I would add a new scripting api
477 15:15 <vmassol> to register a new extension
478 15:15 <vmassol> well
479 15:16 <vmassol> not sure
480 15:16 <vmassol> anyway
481 15:16 <vmassol> needs to be designed
482 15:16 <vmassol> got to go finish stuff
483 15:16 <vmassol> :)
484 15:16 <vmassol> I'll leave it to you woshilapin:)
485 15:16 <woshilapin> Thanks for the help
486 15:16 <vmassol> if you want to create a .rabbit extension
487 15:16 <vmassol> ...
488 15:16 <woshilapin> :-D
489 15:16 <vmassol> bb in 15
490 15:33 <xwiki_finstern2> hello back
491 15:37 <xwiki_finstern2> I'm trying to find the meaning of an Error 11007 but havn't been successfull for now
492 15:38 <cjd> looks like a mysql error code, or perhaps Oracle (?)
493 15:39 <cjd> either way, looks like a database error code
494 15:44 <KermitTheFragger> has quit
495 15:45 <woshilapin> OK, I thought the piece of code was about adding a extension to TrueVFS, but in fact, it's replacing completely the Driver...
496 15:45 <woshilapin> Mmm
497 15:45 <woshilapin> So doing that, I'm removing the 'attach' driver
498 15:45 <vmassol> xwiki_finstern2: you need to paste more details
499 15:45 <vmassol> woshilapin: yes
500 15:45 <vmassol> that's why you should read the code I pasted
501 15:46 <vmassol> there's a comment explaning this :)
502 15:46 <vmassol> s/pasted/linked
503 15:46 <woshilapin> I read it, but I add to reach error to begin to understand what was happening
504 15:46 <vmassol> the event listener
505 15:46 <woshilapin> I had to reach*
506 15:47 <woshilapin> Note that I still don't completely understand what the code is doing exactly :-)
507 15:50 <xwiki_finstern2> yeah I know vmassol, I was collecting data
508 15:50 <xwiki_finstern2> I think I found out
509 15:50 <xwiki_finstern2> 2016-01-28 15:25:32,109 [XWiki initialization] ERROR c.x.x.s.DBCPConnectionProvider - Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
510 15:51 <xwiki_finstern2> should mean that I don't have the right user set in my mysql database
511 15:51 <xwiki_finstern2> I thought it had been exported with the db when I mad the dump
512 15:51 <xwiki_finstern2> will have to create the user manually
513 15:53 <xwiki_finstern2> basically I have access denied for user xwiki when I start the app'
514 15:53 <xwiki_finstern2> pfffft
515 15:55 <xwiki_finstern2> I'm sorry to have annoyed you with such a noob question :-|
516 15:56 <woshilapin> OK, it works (but in a initialize() function for now, I'll try with EventListener, even if I don't know much about Events, and then, I'll be able to paste this snippet on xwiki.org)
517 15:56 <woshilapin> (initialize() of a ScriptService)
518 16:00 <tmortagne> vmassol: is the status of XWIKI-12912 blocker for 7.4.1
519 16:00 <tmortagne> ?
520 16:03 <MasterPiece> has quit
521 16:03 <gdelhumeau> ?
522 16:03 <gdelhumeau> I haven't done anything
523 16:03 <tmortagne> me neither :)
524 16:04 <tmortagne> looks like password reset forget to update document author
525 16:04 <tmortagne> not even since it changed the author from me to you
526 16:04 <tmortagne> it's doing something weird anyway
527 16:04 <tmortagne> *from you to me
528 16:07 <woshilapin> tmortagne: About XWIKI-12912, I believe it's about the caching that TrueVFS is doing and which is by-passing their own Right management system
529 16:07 <woshilapin> Because I discussed that with Vincent yesterday, and as far as I know, it's a LOOOOT of work to fix it
530 16:07 <woshilapin> Because it's more about refactoring TrueVFS if I understood correctly :-)
531 16:07 <tmortagne> woshilapin: my question is not that much "do we need to fix it" but "can I release 7.4.1 without it, please"
532 16:11 <vmassol> tmortagne: moving the issue to 7.4.2 as I won't have the time and it seems really hard to do with truevfs, I'm almost blocked...
533 16:12 <tmortagne> anyway we still have a lot of failing test on 7.4...
534 16:12 <vmassol> and we need to release tomorrow..
535 16:12 <tmortagne> most of which are new
536 16:14 <tmortagne> the 2 failing test on platform are pretty weird and don't fail on master
537 16:14 <tmortagne> they end up with a document reference not containing the space...
538 16:14 <tmortagne> probably related to XWIKI-12920
539 16:25 <xwiki_finstern2> I'm leaving you for now, will be back soon. I thank you very much for your precious help this late morning and early afternoon
540 16:25 <vmassol> ok np
541 16:25 <vmassol> let us know how it goes
542 16:25 <xwiki_finstern2> I thank you too for developping this awesome application, it's the best out there, I think it really
543 16:26 <vmassol> oh nice, can I quote you on http://www.xwiki.org/xwiki/bin/view/References/Testimonials ? :)
544 16:26 <xwiki_finstern2> my admin had to go so I will see tomorrow but now I know that I forgot to add the xwiki user, that was really a lame error from my side :(
545 16:26 <xwiki_finstern2> have been stressed a bit
546 16:26 <vmassol> actually maybe you could come up with some quote to add there? that helps us continue!
547 16:26 <xwiki_finstern2> you can vincent
548 16:27 <woshilapin> OK, my new filename extension works pretty well with VFS API now, just took me a bit of time to understand the black magic behind events
549 16:27 <woshilapin> vmassol: You did an awesome work on VFS (I believe it's mainly you, right?)
550 16:27 <vmassol> thanks
551 16:27 <vmassol> (to both of you ;))
552 16:55 <xwiki_finstern2> ok I will take the time to contribute to your testimonial page tomorrow
553 16:55 <xwiki_finstern2> thank you for your help again
554 16:55 <xwiki_finstern2> and I hope your today task will end as intended
555 16:55 <xwiki_finstern2> good by
556 16:55 <vmassol> bye
557 16:56 <xwiki_finstern2> has quit
558 17:04 <vmassol> hehe nice )
559 17:04 <vmassol> :)
560 17:56 <woshilapin> If you're interested, I wrote a little tutorial about how to add a filename extension to VFS
561 17:56 <woshilapin> http://dev.xwiki.org/xwiki/bin/view/Drafts/NewFilenameExtensionForVFSAPI
562 18:30 <mflorea> has quit
563 18:31 <vmassol> woshilapin: detailed tutorial… :) I thought you were working on a PR to imprvoe VFS :)
564 18:32 <vmassol> (what I mean is that a fix to the xwiki vfs code would make this tutorial not required)
565 18:41 <woshilapin> vmassol: For later... maybe ;-)
566 18:41 <vmassol> :)
567 18:41 <woshilapin> Should I make the links to the VFS page and publish it or you prefer to review it a bit before?
568 18:42 <woshilapin> (because, I hope I'm not saying shit in that tutorial)
569 18:48 <vmassol> I'd prefer we find a better way to solve the need. I don't feel this should be proper documentation. What about creating a jira issue about the need and linking it from the jira issue and keep it in the drafts space while the issue is open and once the issue is fixed, delete it?
570 18:49 <cjd> has quit
571 18:50 <cjd> has joined #xwiki
572 19:02 <ClemensR> has left #xwiki
573 19:02 <woshilapin> Anyway, do what you want with this tutorial
574 19:02 <woshilapin> I guess it's still accessible from Google, right?
575 19:03 <woshilapin> OK, I'm out for today
576 19:03 <vmassol> bye
577 19:03 <vmassol> yes it's avail from google
578 19:03 <vmassol> right now it's not even recommended at all to use the vfs api :)
579 19:07 <cjd> has quit
580 19:07 <woshilapin> has quit
581 19:11 <cjd> has joined #xwiki
582 19:23 <cjd> has quit
583 19:45 <tmortagne> has quit
584 20:11 <cjd> has joined #xwiki
585 20:37 <abusenius> has joined #xwiki
586 20:44 <gdelhumeau> has quit
587 21:04 <Slashman> has quit
588 22:28 <cjd> vmassol: blocked registration so that you won't have another 2 days of cleaning up ^^
589 22:28 <cjd> looks like *our* spammers are enough unique that cloudflare doesn't stop them
590 22:29 <cjd> Could just tell people to come to irc during business hours if they want an account
591 22:36 <cjd> has quit
592 22:37 <cjd> has joined #xwiki
593 23:28 <cjd> has quit
594 23:29 <cjd> has joined #xwiki

Get Connected