IRC Archive for channel #xwiki
Last modified by Vincent Massol on 2012/10/18 19:13
rrodriguez left at 00:24 (Quit: rrodriguez
lucaa left at 01:04 (Ping timeout: 276 seconds
florinciu left at 01:16 (Read error: Connection reset by peer
SvenDowideit left at 03:54 (Changing host
SvenDowideit joined #xwiki at 03:54
abusenius left at 04:04 (Ping timeout: 264 seconds
venkatesh joined #xwiki at 05:36
venkatesh left at 05:41 (Remote host closed the connection
venkatesh joined #xwiki at 05:42
npm_ joined #xwiki at 05:55
npm left at 05:59 (Ping timeout: 240 seconds
rrodriguez joined #xwiki at 07:01
mflorea joined #xwiki at 07:58
vmassol joined #xwiki at 08:11
sabageru joined #xwiki at 08:16
rrodriguez left at 08:36 (Quit: rrodriguez
jstoldt joined #xwiki at 09:04
lucaa joined #xwiki at 09:19
Denis joined #xwiki at 09:21
jstoldt - (09:24): morning
vmassol - (09:25): good morning everyone
jstoldt - (09:25): what's the deprecatedtranslationsmarker string in core for?
jstoldt - (09:25): doesn't look like that one actually needs translation!
vmassol - (09:25): sburjan`: I would love to get your feedback on the 2.6RC2 release
vmassol - (09:25): I'd like to release it today
marta_ joined #xwiki at 09:27
evalica joined #xwiki at 09:37
sburjan` - (09:39): hi vmassol
jstoldt - (09:41): why in gods name is l10n.xwiki.org so freaking slow? or is it my pre-historical notebook?
jstoldt - (09:50): rendering.macro.box.description should probably be "Draws a box around provided content."... because it is the description and not an imperative... so basically it should be Draws much rather than Draw
flaviusolaru joined #xwiki at 09:56
jstoldt - (09:57): mflorea: about rendering.macro.chart.content.description, what is "(Ex. for 'inline' source mode)" supposed to mean? i don't get that bit
tmortagne joined #xwiki at 09:58
sdumitriu joined #xwiki at 09:59
mflorea - (09:59): jstoldt: I don't know. I'm not the one who wrote the chart macro.
jstoldt left at 10:02 (Ping timeout: 265 seconds
Denis - (10:03): sdumitriu: ping
lucaa left at 10:04 (Ping timeout: 260 seconds
sdumitriu - (10:06): Pong
Denis - (10:07): sdumitriu: Hi, do you if there was a fix related to IE7 and prototype, concerning toString is null or not an object, between 2.4 and 2.5 ?
sdumitriu - (10:08): Denis: Where do you see this error?
Denis - (10:09): sdumitriu: we got it during dom:loaded, in xwiki.js, while executing insertCreatePageFromTemplateModalBoxes
Denis - (10:09): it happen inside prototype.js
sdumitriu - (10:10): No, I don't think so
sdumitriu - (10:11): Can you create a bug report?
Denis - (10:11): it does not happen anymore in 2.5
Denis - (10:12): (and our check on 2.4 was not on a fresh install)
Denis - (10:12): I am just trying to understand, if this does not tell you anything, this may be on our side
sdumitriu - (10:13): Maybe it wasn't in prototype, but in another script that was fixed
sdumitriu - (10:13): There was a change in prototype.js though, see commit 29596
sburjan` - (10:16): sdumitriu: Ping. I have a question. I am testing 2.6RC2 and when logging in with a simple user I don't get all the spaces on the Main Page (I saw on the mailing list that this is intendeded behaviour). Hoewever, when I set the username to Advanced (from Simple), I get the same spaces listed as Admin has. Note that I'm still a simple user. Is this normal ?
sdumitriu - (10:18): sburjan`: Yes
sburjan` - (10:18): sdumitriu: ok
sdumitriu - (10:18): The hidden spaces are code spaces
sburjan` - (10:19): yes. So advanced users can see them too ?
jvdrean joined #xwiki at 10:19
sdumitriu - (10:19): Yes
sburjan` - (10:20): okay.
sdumitriu - (10:20): All users CAN see them, as in if they open the right URL they can see those documents
sdumitriu - (10:20): They are simply not displayed since they contain "advanced" content, not simple wiki documents
vmassol - (10:20): ok I'm done rewriting http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents
sdumitriu - (10:24): vmassol: Done done?
sdumitriu - (10:24): :D
vmassol - (10:24): yes
vmassol - (10:24): :)
vmassol - (10:25): the archetype is done done too
vmassol - (10:25): (for now… hehe… ;))
Denis - (10:25): sdumitriu: That was it. By the way, since defer has been introduce, we have had many issues, what do you think of using some more advanced loading techniques (like LABjs) and refactor the skinx and javascript.vm stuffs ?
sdumitriu - (10:26): Denis: +1 for labjs, but we need to refactor some code to make it work
sdumitriu - (10:26): I'm not sure it will work out of the box
jvdrean left at 10:27 (Ping timeout: 240 seconds
sdumitriu - (10:28): vmassol: Did you report the "activity only works in main wiki" bug?
vmassol - (10:28): no
vmassol - (10:29): we have 2 issues so far that we could make blockers for 2.6 final
vmassol - (10:29): this one
vmassol - (10:29): and the refresh on first load one
vmassol - (10:29): I'll create the refresh one
vmassol - (10:29): since i don't think it exists
vmassol - (10:29): I'll let you create the other one
sburjan` - (10:30): vmassol: I have tested the installers on windows and Linux. Except known IzPack issues, everything is okay
sburjan` - (10:30): now I'm going to test on IE's
vmassol - (10:30): ok thanks
vmassol - (10:31): btw I'll need to start the final release wednesday morning latest to make it for the 18th
Enygma` joined #xwiki at 10:31
vmassol - (10:31): that leaves us today and tomorrow to fix any blocker
jvdrean joined #xwiki at 10:31
vmassol - (10:32): sdumitriu: do you remember if we have the refresh issue in 2.5.x?
vmassol - (10:34): http://jira.xwiki.org/jira/browse/XWIKI-5687
vmassol - (10:35): who could take that one?
sburjan` - (10:35): adding annotations to blog still doesn't work.
jvdrean left at 10:37 (Ping timeout: 240 seconds
jvdrean joined #xwiki at 10:38
jvdrean left at 10:39 (Client Quit
marta_ left at 10:40 (Ping timeout: 240 seconds
rrodriguez joined #xwiki at 10:43
sdumitriu - (10:45): vmassol: Yes, it was i 2.5
vmassol - (10:47): ok thanks
vmassol - (10:48): sdumitriu: I haven't checked stefan's patch re AS. Is it for 2.6 final, 2.7? Does it involve breaking APIs in the end?
sdumitriu - (10:48): Which one?
vmassol - (10:50): I saw you assigned yourself to one this morning
vmassol - (10:51): don't remember the jira issue #
marta_ joined #xwiki at 10:51
sdumitriu - (10:51): Ah
sdumitriu - (10:52): That one is not critical
vmassol - (10:52): I thought it was the xwikiguest one
vmassol - (10:53): isn't it?
vmassol - (10:53): (the xwikiguest one is important)
vmassol - (10:53): could be a blocker for 2.6 final actually
vmassol - (10:53): OR we make the stream empty at startup (we need an activity stream reset api for this probably)
lucaa joined #xwiki at 10:55
sburjan` - (10:55): +1 for empty AS out of the box
sdumitriu - (10:57): Yes, it's the XWikiGuest one
vmassol - (11:07): sdumitriu: XPAS-28 should be in 2.6 final right?
vmassol - (11:08): btw missing affects and fix in that issue
jvdrean joined #xwiki at 11:08
sdumitriu - (11:08): Yes
vmassol - (11:08): ok updating enterprise pom.xml for 2.6 branch
mflorea left at 11:13 (Quit: Leaving.
jvdrean left at 11:13 (Ping timeout: 240 seconds
jvdrean joined #xwiki at 11:18
flaviusolaru left at 11:20 (Quit: Leaving.
sburjan` - (11:22): vmassol: everything seems ok in IE browsers
vmassol - (11:22): good
vmassol - (11:22): :)
flaviusolaru joined #xwiki at 11:30
vmassol - (11:35): sdumitriu: just replied. either I don't understand what you mean or you don't understand what I say ;)
flaviusolaru left at 11:45 (Quit: Leaving.
sabageru left at 11:54 (Quit: Leaving.
rrodriguez left at 11:55 (Quit: rrodriguez
rrodriguez joined #xwiki at 11:57
flaviusolaru joined #xwiki at 12:00
rrodriguez left at 12:01 (Ping timeout: 245 seconds
mflorea joined #xwiki at 12:02
rstavro joined #xwiki at 12:06
vmassol - (12:09): sburjan`: could you reply to the test mail?
sdumitriu - (12:09): Hi rstavro, evalica
vmassol - (12:09): (for XE 2.6RC2)
evalica - (12:09): re sdumitriu
sdumitriu - (12:10): I think the new activity macro doesn't work on virtual wikis
rstavro - (12:11): hi
rstavro - (12:11): ok, I'll check the problem
sdumitriu - (12:11): http://incubator.myxwiki.org/xwiki/bin/view/Main/Activity
sdumitriu - (12:12): I don't know if it's because there are no activities recorded (a bug in the plugin) or none are displayed (macro bug)
rstavro - (12:15): I just tested the incubator
rstavro - (12:16): and it seems that there is no event in ActivityEventImpl
rstavro - (12:16): (no line in the table)
sdumitriu - (12:16): K
flaviusolaru left at 12:16 (Quit: Leaving.
sdumitriu - (12:17): So ?tefan should look into it as well
rstavro - (12:17): yes
sburjan` - (12:25): vmassol: yes, replying now
sburjan` - (12:28): vmassol: done
vmassol - (12:32): mflorea: please let me know if your commits are required for 2.6 final
jvelociter - (12:44): mflorea: thanks for the JS modularization :) We need to add it to http://dev.xwiki.org/xwiki/bin/view/Community/DevelopmentPractices#HXWikiNamespacing
vmassol - (12:44): jvelociter: please only make blocker bug gixes for 2.6
vmassol - (12:44): s/gixes/fixes/
jvelociter - (12:45): vmassol: ok, I'll change it to blocker
jvelociter - (12:45): :p
jvelociter - (12:45): kidding
vmassol - (12:45): i'm fine
vmassol - (12:45): just remember the rule: "he who breaks, fixes"
vmassol - (12:45): ;)
jvelociter - (12:45): vmassol: fine by me :)
jvelociter - (12:46): vmassol: it's not a blocker bug per se, but it's definitely a bug. I can have it fixed only in 2.7 if we want, but I'd like to have it in 2.6 if possible
jvelociter - (12:47): (talking about XWIKI-5688 )
vmassol - (12:47): hmm why wasn't it fixed before if it was needed for 2.6?
vmassol - (12:47): (playing devil's adovcate)
vmassol - (12:47): I mean we need to stop
vmassol - (12:47): at some point
vmassol - (12:47): ideally we shouldn't have any commits for 2.6 final
vmassol - (12:47): it's supposed to be just a rename
jvelociter - (12:48): vmassol: because I realized it this week end
vmassol - (12:48): k....
jvelociter - (12:48): anyway I can pass, it's not critical
vmassol - (12:48): I'll let you decide, I don't know the code
jvelociter - (12:48): lucky you
vmassol - (12:48): :)
jvelociter - (12:59): mflorea: done a first pass
sabageru joined #xwiki at 13:00
venkatesh left at 13:07 (Remote host closed the connection
rrodriguez joined #xwiki at 13:07
vmassol - (13:10): sdumitriu: any idea re the "java.io.FileNotFoundException: .fop (Permission denied)" on myxwiki.org (latest mail on devs list)
vmassol - (13:24): this page is now awfully slow: http://www.xwiki.org/xwiki/bin/view/Main/News
vmassol - (13:25): it probably has some scaling issue
jvelociter_ joined #xwiki at 13:27
jvelociter left at 13:31 (Ping timeout: 245 seconds
jvelociter_ is now known as jvelociter ([email protected]
vmassol - (13:40): sdumitriu: XE2.6RC2 fully released
mflorea - (13:42): vmassol: my JS changes are not required for 2.6
vmassol - (13:42): ok
cjdelisle - (13:44): Sent myself the first report email automatically using the mail sender plugin. Thanks sburjan` for finding the starttls option.
vmassol - (13:44): evalica, rstavro: are you updating http://code.xwiki.org/xwiki/bin/view/Macros/ActivityMacro? (would be great)
evalica - (13:44): vmassol: yes- right now
vmassol - (13:45): (since params have changed)
vmassol - (13:45): great
mflorea - (13:46): jvelociter: looks good. The module pattern makes JavaScript rewriting for portlet mode easier ;)
mflorea - (13:46): (I'm namespacing global defined objects/functions to isolate the JavaScript code)
jvelociter - (13:49): mflorea: cool. How does the module pattern makes it easier ? I'm curious
sdumitriu left at 13:51 (Ping timeout: 264 seconds
mflorea - (13:52): jvelociter: I have to namespace only the module name, everything inside it it's local. The module pattern reduces the number of global names.
sdumitriu joined #xwiki at 13:56
abusenius joined #xwiki at 13:58
sdumitriu - (14:12): Nice:
sdumitriu - (14:12): [sudo] password for sergiu:
sdumitriu - (14:12): My pet ferret can type better than you!
sdumitriu - (14:12): [sudo] password for sergiu:
sdumitriu - (14:12): Hi sabageru
vmassol - (14:12): :)
sdumitriu - (14:12): (that was on myxwiki)
sburjan` - (14:16): it was hacked ?
sabageru - (14:17): Hi sdumitriu
tmortagne - (14:18): sburjan`: i doubt that, it's like that since a long time AFAIK
sdumitriu - (14:27): sabageru: I have a task for you
sabageru - (14:27): great :)
sdumitriu - (14:28): In summary, the ativity stream plugin doesn't record anything in a virtual wiki
jstoldt joined #xwiki at 14:28
sabageru - (14:29): oh..
sabageru - (14:29): i am not very familiar with virtual wikis..
sabageru - (14:29): what is a virtual wiki ?
sdumitriu - (14:29): http://incubator.myxwiki.org/xwiki/bin/view/Main/Activity
marta_ left at 14:35 (Ping timeout: 255 seconds
flaviusolaru joined #xwiki at 14:36
jstoldt - (14:44): crap... could anyone give an estimation how long l10n.xwiki.org will be down for?
sdumitriu - (14:44): Hi jstoldt
evalica - (14:45): sdumitriu: I keep getting logged out in incubator - is very hard to edit a page without the need to login every 3 minutes.
jstoldt - (14:45): hi sdumitriu
sdumitriu - (14:45): evalica: Did you check "remember me"?
evalica - (14:45): yes
jstoldt - (14:45): sdumitriu: i had the same on l10n...
sdumitriu - (14:45): jstoldt: About rendering.macro.chart.content.description=Input data for the chart macro (Ex. for 'inline' source mode)
evalica - (14:45): but actually .. even if I check it - it doesn't stay checked
tmortagne - (14:45): jstoldt: not very long, it's fixed already
tmortagne - (14:45): it's just reimporting keys
jstoldt - (14:45): thanks
tmortagne - (14:46): so it's not down
tmortagne - (14:46): just slow
jstoldt - (14:46): i see...
jstoldt - (14:46): sdumitriu: i figure the bit about inline is about source="inline" and Ex. stands for except, right?
sdumitriu - (14:46): jstoldt: The chart macro can get its source data either from an existing table, or from the content placed inside the macro
sdumitriu - (14:47): So there are two options for the "source" parameter, xdom and inline
jstoldt - (14:47): yep. and ex = except, right?
sdumitriu - (14:47): No, for example
sdumitriu - (14:47): It's bad wording
jstoldt - (14:48): ah, indeed... should be e.g. if you mean example...
jstoldt - (14:49): tmortagne: is the speed of l10n.xwiki.org gonna improve once the importing of keys is done?
jstoldt - (14:49): i noticed it has been slow at the end of last week and hoped it was only a temporary state...
tmortagne - (14:50): jstoldt: once the importing is done and cache filled (i.e. the page you want to view has been loaded at least once after last modification)
tmortagne - (14:50): when you modify the translation it clean part of the cached so sometime it became slow just the time for it to fill caches again
jstoldt - (14:50): okay, great
tmortagne - (14:51): there is lots of improvement to do but noone to work on it :(
jstoldt - (14:53): that's what programming is all about. never getting finished and even more importantly ignoring dead lines whenever one can ;)
cjdelisle - (14:56): ``I love deadlines. I like the whooshing sound they make as they fly by.'' --Douglas Adams
jstoldt - (14:57): X-D nice one!
vmassol left at 14:58 (Quit: Leaving.
jstoldt - (14:58): where can i find the translation files in the war package?
tmortagne - (14:59): jstoldt: depends which one you want, the main one is on xwiki-core jar file
jstoldt - (14:59): i'd need the main one in german and english just now...
tmortagne - (15:00): ApplicationResources_*.properties
tmortagne - (15:00): you can also look at it in svn
tmortagne - (15:00): http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/resources/
tmortagne - (15:01): change "/trunk/" part by the tag you need to get a specific version
jstoldt - (15:02): thanks
Enygma` left at 15:02 (Ping timeout: 240 seconds
vmassol joined #xwiki at 15:05
vmassol left at 15:12 (Ping timeout: 264 seconds
vmassol joined #xwiki at 15:17
abusenius left at 15:19 (Quit: Konversation terminated!
abusenius joined #xwiki at 15:19
marta_ joined #xwiki at 15:22
tmortagne - (15:24): jstoldt: l10n seems ready (plus I filled the caches)
flaviusolaru left at 15:25 (Quit: Leaving.
flaviusolaru joined #xwiki at 15:27
jstoldt - (15:27): yeah, i noticed, been updating some more translations
jstoldt - (15:27): but just the oddest thing happend... apparently some translations i made last week around the recent activities are not there anymore O_O
tmortagne - (15:29): jstoldt: which key ?
jstoldt - (15:29): ah no, nevermind
jstoldt - (15:30): it's just weird sorting on the page
jstoldt - (15:30): these are in fact different but they are very similar/identical to the ones i did last week
jstoldt - (15:31): like activitystream.event.addComment.rss.title (which i did last week) and activitystream.event.addComment (which is still empty)
abusenius left at 15:32 (Quit: Konversation terminated!
abusenius joined #xwiki at 15:32
spliffy left at 15:35 (Ping timeout: 240 seconds
spliffy joined #xwiki at 15:36
Enygma` joined #xwiki at 15:42
arkub joined #xwiki at 15:59
jstoldt - (16:00): good bye folks, see you tomorrow
jstoldt left at 16:01 (Quit: Page closed
jvelociter left at 16:01 (Remote host closed the connection
jvelociter joined #xwiki at 16:01
jvelociter_ joined #xwiki at 16:07
jvelociter left at 16:10 (Ping timeout: 272 seconds
jvelociter_ is now known as jvelociter ([email protected]
sburjan` left at 16:10 (Quit: 0x0 Quit
cjdelisle - (16:44): Just sent another report to the notifications list, similar but html format.
sdumitriu - (16:46): cjdelisle: Nice, colors really help readability
cjdelisle - (16:47): That one was sent automatically, I hooked the mailsender plugin.
camaritei joined #xwiki at 16:48
cjdelisle - (16:48): Trying to figure out how to allow hudson agents access to a mail relay.
vmassol - (16:50): cjdelisle: it's not clear for what branch the test report is, you have to look at urls
cjdelisle - (16:51): branch? job?
vmassol - (16:51): I need to play with it more to understand more globally what we lack and how it fills the void
vmassol - (16:52): (so disregard this comment for now)
vmassol - (16:52): (the comment about the "branch")
cjdelisle - (16:52): The name of the job can be included easily. Also the job urls can be run past a regular expression.
cjdelisle - (16:53): doNotRunJobsMatching("/.*-2.*/"); in the config.
sdumitriu - (16:57): vmassol: Ping
vmassol - (16:58): (sdumitriu you can state directly your message instead of pinging me - That way I can continue what I' doing and still see what you say, without breaking my flow!)
vmassol - (16:58): (in any case I'm pinged if you put my name)
sdumitriu - (16:58): Back with an older question
sdumitriu - (16:59): How can I access a component from a non-component class?
vmassol - (16:59): it's documented let me give you the link
vmassol - (17:00): http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents#HFromnon-componentsjavacode28e.g.olderplugins29
sdumitriu - (17:00): Without Utils
vmassol - (17:00): you cannot
vmassol - (17:00): well
vmassol - (17:00): you can cheat but not very good
sdumitriu - (17:00): K, then I'll move the class to xwiki-core
vmassol - (17:00): the CM is put in the servlet application context
sdumitriu - (17:01): But it would be better to have access to it somehow
vmassol - (17:01): the point is not to have access to it
sdumitriu - (17:01): It should be easy since the execution context is stored in a threadlocal
vmassol - (17:01): otherwise you're assuming that there's only one for example
vmassol - (17:01): it's not IOC anymore
sdumitriu - (17:02): Yes, but you can't force components into an existing library that does its own instantiation
sdumitriu - (17:03): In my case I'm trying to write an EscapeTool, which is created using Class.forName.newInstance
vmassol - (17:03): then you need to pass the CM to it
vmassol - (17:03): after the constructor has been called
vmassol - (17:03): setCM(…)
vmassol - (17:03): but you need to be able to access the instance
vmassol - (17:03): if it's hidden you're stuck
vmassol - (17:04): but in this case maybe you shouldn't use components?
sdumitriu - (17:05): Then how do I access the rendering?
cjdelisle - (17:07): <somewhat off topic> Something I noticed in escapetool is it appears to be rather slow. I think the fastest way to escape is 1 char at a time using a switch statement.
vmassol - (17:07): well I cannot help much if I don't know more precisely what you are doing
vmassol - (17:08): now it's possible you want to reuse somerthing form rendering that is currently packaged as a component
vmassol - (17:08): and one solution could be to make that component depend on a standard class
vmassol - (17:09): and then reuse that class in your velocity tool
vmassol - (17:09): but I don't know exactly what you're doing
vmassol - (17:09): so we have 2 approaches:
vmassol - (17:09): 1) try to inject the CM
vmassol - (17:09): 2) make the feature not use components
sdumitriu left at 17:11 (Ping timeout: 276 seconds
vmassol - (17:12): VelocityEngine is a component and thus has access to the CM, so it should be able to inject it somehow in RuntimeServices no?
vmassol - (17:12): (ok he's left)
sabageru left at 17:15 (Ping timeout: 245 seconds
tmortagne - (17:22): vmassol: i think sdumitriu is working on generic wiki escaping tool like $escapetool.wiki("xwiki/2.0", "some wiki content") and needs to parse with plain test parser and then render with the related renderer
vmassol - (17:30): ok but then I don't understand why this is related to velocity
vmassol - (17:30): looks to me like a script service
vmassol - (17:30): (tm
vmassol - (17:31): tmortagne)
vmassol - (17:31): don't we need this for other scripting languages?
camaritei left #xwiki at 17:35
tmortagne - (17:40): vmassol: sure we do, just trying to guess what sdumitriu needs ;)
vmassol - (17:40): :)
vmassol - (17:40): actually I remember mentioning this already
vmassol - (17:40): (that we need it more globally than just for velocity)
vmassol - (17:41): it solves the issue too
tmortagne - (17:41): yep
cjdelisle - (17:44): can a script service still be called $escapetool?
vmassol - (17:47): nope
vmassol - (17:47): $services.<service>.<method>
cjdelisle - (17:48): I suppose a velocity context initializer could alias to it.
vmassol - (17:48): yes but that's not our best practice right now
vmassol - (17:48): we've created script service to avoid polluting the namespace
vmassol - (17:48): (at least it's one reason for it)
cjdelisle - (17:48): Well $escapetool already exists.
vmassol - (17:49): yes exactly
vmassol - (17:49): so we shouldn't use the same name
cjdelisle - (17:49): I thought the plan was to extend and replace it.
vmassol - (17:49): ah hmmmm
tmortagne - (17:49): for what i know there was no defined plan
vmassol - (17:50): in this case it would something like $services.escape.xxx
tmortagne - (17:50): just a discussion
vmassol - (17:50): yes just a discussion
vmassol - (17:50): but we'd need a module
vmassol - (17:50): so either we have an escape module
tmortagne - (17:50): IMO $service.escape is not that bad compared to escapetool
tmortagne - (17:50): and it's way easier to do
vmassol - (17:50): yes it's not that bad and consistent
tmortagne - (17:51): easier and cleaner
cjdelisle - (17:51): Legacy code doesn't enjoy the improvements then.
vmassol - (17:51): or we'll need to offer apis in various modules (like $services.rendering.escape)
vmassol - (17:51): cjdelisle: legacy almost nevery enjoyrs new stuff :)
cjdelisle - (17:51): In this case it can.
vmassol - (17:51): no
vmassol - (17:51): it cannot
vmassol - (17:52): because the new stuff measn following the new rarchitecture
vmassol - (17:52): if not it means the new stuff is already legacy
vmassol - (17:52): :)
vmassol - (17:52): since using $var is legacy
cjdelisle - (17:52): I think the problem Sergiu is working on is that escapetool does not do xml escaping correctly.
cjdelisle - (17:52): It escapes to much and that causes problems in some browsers.
vmassol - (17:52): yes
vmassol - (17:53): what thomas and I are saying is that the need is more generic than just velocity
cjdelisle - (17:53): So changing escapetool would make all legacy code nolonger have that problem.
vmassol - (17:53): so better address is generically rather than only for velocity
vmassol - (17:54): if you change the past behavior
vmassol - (17:54): you're breaking an api btw
vmassol - (17:54): since people could have used it
vmassol - (17:54): and the beahvior is going to be changed
cjdelisle - (17:54): How do you define breaking api?
vmassol - (17:55): don't get the same result as before
cjdelisle - (17:55): If the documentation says it escapes xml, but it doesn't, that is a bug. Is fixing that bug a break?
vmassol - (17:55): depends
cjdelisle - (17:56): It's a question of whether the authority is the code or the javadoc.
vmassol - (17:56): for ex it could output &#NNN; or ´
vmassol - (17:56): both are valid but different
vmassol - (17:56): (I don't know if what it's outputting is a bug or not)
vmassol - (17:57): wait
cjdelisle - (17:57): IIRC it's escaping things which are not listed as xml entities.
vmassol - (17:57): you're saying that the velocity escape tool is buggy?
cjdelisle - (17:58): It uses apache Entities which seems to have a few bugs.
cjdelisle - (17:58): Remember xwiki.getXMLEncoded?
vmassol - (17:58): yes ours is crap but this is not ours right?
vmassol - (17:58): http://velocity.apache.org/tools/devel/generic/EscapeTool.html#xml() ?
cjdelisle - (17:58): xwiki.getXMLEncoded uses Apache, their code contains a bug.
vmassol - (17:58): maybe they've fixed it if there's a bug
vmassol - (17:58): have we reported the issue to them?
vmassol - (17:59): no point in reinventing the wheel
cjdelisle - (17:59): I didn't, I think they are in the same trap you were referring to earlier.
cjdelisle - (17:59): "It does this, people may be depending on it"
vmassol - (17:59): in this case they consider it api and not bug
vmassol - (17:59): :)
cjdelisle - (18:00): re "reinventing the wheel" Their code is also not optimized well. I would rewrite it if it were up to me.
vmassol - (18:00): cjdelisle: i know you would rewrite everything given the chance :)
vmassol - (18:00): hehe
cjdelisle - (18:01): UTF-16 == vacuum up all of your ram.
cjdelisle - (18:02): xml escaping isn't that hard, use a switch statement and it's really fast. (java can run 11MB/s byte by byte through a switch statement)
vmassol - (18:02): cjdelisle: it is hard
vmassol - (18:02): the proof is that they didn't get it right
cjdelisle - (18:02): lol
vmassol - (18:03): seriously any line of code is a pain
sdumitriu joined #xwiki at 18:03
vmassol - (18:03): since you need to fix bugs for it, document it, test it
vmassol - (18:03): train people to use it
vmassol - (18:03): and especialyl when it's not your core business
vmassol - (18:04): you want to push that to someone else as much as possible
rrodriguez left at 18:04 (Quit: rrodriguez
vmassol - (18:04): imagine xwiki without the open source libraries it uses
vmassol - (18:04): it would have required 50 years to create
cjdelisle - (18:04): Actually escapetool came out better than the Apache code behind getXMLEncoded, it just creates some problems with Internet Explorer IIRC.
vmassol - (18:06): sdumitriu: you missed a bit
vmassol - (18:06): (but available in the irc logs)
sdumitriu - (18:06): Yep
flaviusolaru left at 18:07 (Quit: Leaving.
sburjan` joined #xwiki at 18:14
sabageru joined #xwiki at 18:24
sburjan` left at 18:25 (Ping timeout: 264 seconds
sburjan` joined #xwiki at 18:27
mflorea left at 18:29 (Quit: Leaving.
rrodriguez joined #xwiki at 18:32
cjdelisle - (18:36): Just pushed another email with a regression alert. No changes lately so the blame part is missing and clearly the flicker detection could be improved.
cjdelisle - (18:37): I imagine the regression alert report running once every 10 minutes or so and the aggregated email being a daily run.
fmancinelli joined #xwiki at 18:41
fmancinelli - (18:44): Hi guys, a quick question... I created a wiki macro and it works perfectly on a local wiki, but when I use it in a multiwiki $context.macro.content is not expanded. Do you know what could be the problem?
abusenius left at 18:45 (Ping timeout: 265 seconds
sdumitriu - (18:45): fmancinelli: Do you have programming rights?
sdumitriu - (18:46): Is the same XE version on both systems?
fmancinelli - (18:46): sdumitriu: version: 2.4 on one side and 2.5 on the other side. Re programming rights I don't know... must ask
fmancinelli - (18:47): sdumitriu: anyway the macro is registered and executed correctly. It's just that $context.macro.content expands to itself
vmassol - (18:47): fmancinelli: what's the visibility?
sdumitriu - (18:47): fmancinelli: Try $xcontext
vmassol - (18:47): ah if the macro is called then it's something else
fmancinelli - (18:48): current wiki
vmassol - (18:48): yes it's $xcontext
fmancinelli - (18:48): same with xcontext
lucaa left at 18:55 (Ping timeout: 240 seconds
fmancinelli - (18:59): maybe the problem is that I don't have programming rights
fmancinelli - (18:59): (just checked)
vmassol - (19:01): fmancinelli: re rights you just need edit rights on the macro doc if the visibility is not glboal
fmancinelli - (19:01): it has current wiki visibility
sdumitriu - (19:02): I think this is a known bug which was fixed in 2.5
fmancinelli - (19:05): ouch. ok, so I must replace all these macros
Enygma` left at 19:09 (Ping timeout: 265 seconds
vmassol - (19:10): fmancinelli: could it be http://jira.xwiki.org/jira/browse/XWIKI-5356 ?
vmassol - (19:11): (looks like it)
vmassol - (19:11): sdumitriu: do you know why this issue wasn't fixed in the 2.4.x branch?
sdumitriu - (19:12): No
fmancinelli left at 19:12 (Ping timeout: 240 seconds
tmortagne left at 19:19 (Quit: Leaving.
vmassol left at 19:26 (Quit: Leaving.
rstavro left at 19:27 (Ping timeout: 265 seconds
sdumitriu - (19:39): sabageru: What's the status on the virtual wiki bug?
jvelociter - (19:41): great what are doing on regression reporting cjdelisle
abusenius joined #xwiki at 19:41
cjdelisle - (19:42): Thanks. It's an itch I have had for a while. If anyone wants it do to something different, I made it pretty easy to write your own report.
sburjan` left at 19:43 (Ping timeout: 255 seconds
jvelociter left at 19:53 (Remote host closed the connection
jvelociter joined #xwiki at 19:54
sburjan` joined #xwiki at 20:03
npm_ is now known as npm ([email protected]
npm left at 20:16 (Remote host closed the connection
npm joined #xwiki at 20:17
arkub left at 20:23 (Ping timeout: 276 seconds
evalica left at 20:29 (Quit: Leaving.
fmancinelli joined #xwiki at 20:29
florinciu joined #xwiki at 20:32
jvelociter left at 20:53 (Remote host closed the connection
marta_ left at 21:16 (Quit: Leaving.
jvdrean left at 21:18 (Quit: Leaving.
sabageru - (21:41): sdumitriu: currently working on building an env on my machine in order to deal with the bug. i will work for 2 more hours so i think i will have an idea on what is the issue this evening
sdumitriu - (21:42): Do you need some help with the setup?
mflorea joined #xwiki at 21:44
sabageru - (21:45): i have talked with alex about the setup. in case i have any more questions i will ask you. you shall be around the next hour or so ?
marta_ joined #xwiki at 21:45
sdumitriu - (21:47): Yes
vmassol joined #xwiki at 21:55
sabageru - (22:11): sdumitriu : when i create the virtual wikis, it says everything is ok, but i cannot acces them after i log in. meaning i an acces on my localhost my virtual wiki, for example http://stefan.localhost:8080/xwiki/bin/view/Main/ but when i log in as Admin it says ErrorYou are not allowed to view this document or perform this action.
sdumitriu - (22:12): If everything else works, then it's just a rights issue
sdumitriu - (22:13): Do you have any content in the virtual wiki?
sabageru - (22:14): no
sabageru - (22:14): i need to log in and create some page or something to have an event of some sort
sdumitriu - (22:15): Register first
sdumitriu - (22:16): Or no, log out, go to the administration (should work as guest), and import a xar
sdumitriu - (22:16): http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-wiki/2.7-SNAPSHOT/xwiki-enterprise-wiki-2.7-20101115.141135-88.xar
jvdrean joined #xwiki at 22:19
jvdrean left at 22:21 (Client Quit
sabageru - (22:22): registering does not work
sabageru - (22:22): and when i try to do the import with http://stefan.localhost:8080/xwiki/bin/import/XWiki/Import?editor=globaladmin§ion=Import i am being sent to log-in page
sdumitriu - (22:25): Yes, that's normal
sdumitriu - (22:25): Now you can log in with Admin/admin
sdumitriu - (22:25): Wait
sdumitriu - (22:25): After the import, or before?
sabageru - (22:25): well i can;t do the import
sabageru - (22:25): because i do not see the page of import
sdumitriu - (22:28): Strange
sabageru - (22:28): well indeed
sabageru - (22:28): when going to localhost:8080
sabageru - (22:28): i get
sabageru - (22:28): Error number 4001 in 4: Error while parsing velocity page /templates/menuview.vm Wrapped Exception: Failed to evaluate content with id [/templates/menuview.vm]
sabageru - (22:31): i think my wiki got pretty messed up since i cannot log in on localhost with Admin/admin anymore
vmassol left at 22:32 (Quit: Leaving.
sabageru - (22:34): i will redo the XEM installation and the creation of wikis
jvdrean joined #xwiki at 22:37
jvdrean left at 22:41 (Client Quit
fmancinelli left at 23:02 (Ping timeout: 265 seconds
jvdrean joined #xwiki at 23:09
jvdrean left at 23:13 (Client Quit
mflorea left at 23:15 (Quit: Leaving.
florinciu left at 23:43 (Read error: Connection reset by peer
lucaa joined #xwiki at 23:45
sabageru - (23:45): sdumitriu: still there ?
sdumitriu - (23:46): Ye
sdumitriu - (23:46): s
sabageru - (23:46): i have installed the xars and the jars named xwiki-application-application-manager and xwiki-application-wiki-manager
sabageru - (23:46): and also did an import for xwiki-enterprise-manager-wiki-administrator-2.5.1.xar
sabageru - (23:47): and the xar you suggested xwiki-enterprise-manager-wiki-administrator-2.5.1.xar
sabageru - (23:47): now the wiki starts and it is ok even if i do not see the translations. i onl see the codes such as
sabageru - (23:47): wikimanager.totalnumberofwiki : $wikiList.size()
sabageru - (23:48): do you know how can i get translations ok ?
sabageru - (23:52): solved it. had some cfg done wrong:)