IRC Archive for channel #xwiki

Last modified by Vincent Massol on 2012/10/18 19:19

00:04 <xelister> has joined #xwiki
02:28 <sdumitriu> has quit
02:46 <sdumitriu> has joined #xwiki
03:21 <amon> Sergiu... I'm going to start getting set up. Do you have an ssh public key you can send me so I can give you access to the test VM?
03:35 <DrLou> has quit
03:35 <sdumitriu> has quit
03:36 <sdumitriu> has joined #xwiki
03:48 <amon> Sergiu... I'm going to start getting set up. Do you have an ssh public key you can send me so I can give you access to the test VM?
03:58 <amon> I am ready to rock when ever you are.
04:01 <@sdumitriu> Hey amon
04:01 <@sdumitriu> Ready as well
04:06 <amon> okay, try, login as root. This is a 'throw away machine' so if we trash it, no harm done. I've got a backup and can restore it pretty quickly.
04:07 <amon> tell me when you are there.
04:07 <@sdumitriu> I'm in
04:07 <amon> great.
04:08 <@sdumitriu> Did you already install anything in there? Java, Tomcat, database?
04:08 <amon> Nope. This is a virgin install. I want to document every single step.
04:08 <@sdumitriu> OK, let's start with Java
04:08 <amon> Which reminds me, let me get an emacs window open and close at hand.
04:10 <amon> okay I have a note pad up now.
04:10 <amon> do you want to try a screen job?
04:11 <@sdumitriu> As in, screen the program?
04:11 <@sdumitriu> Or virtual desktop?
04:12 <amon> This is a server config, so not really any GUI.
04:12 <amon> Just CLI
04:12 <amon> It's a minimal i386 virtual machine in a KVM emulator.
04:13 <@sdumitriu> OK, I did apt-get install screen
04:13 <amon> Natty server
04:13 <@sdumitriu> screen started
04:14 <@sdumitriu> Do you want to try the openjdk, or the oracle binary distribution?
04:15 <amon> probably the openjdk
04:15 <sdumitriu> has quit
04:17 <sdumitriu> has joined #xwiki
04:17 <@sdumitriu> Sorry, I got a flacky router, sometimes it drops packets
04:18 <amon> okay I have a screen set up, I believe I used a name of foo if you want to go multiuser
04:19 <amon> Unfortuneately I did not remap ctl-a, so that is a pain.
04:20 <sdumitriu> has quit
04:21 <amon> great!
04:21 <amon> Go ahead
04:22 <sdumitriu> has joined #xwiki
04:22 <amon> okay, so we have just installed screen and jdk so far.
04:22 <@sdumitriu> Yep
04:22 <@sdumitriu> Waiting for it to finish
04:22 <amon> much easier to work in a common screen and see what is going on.
04:23 <@sdumitriu> Yes
04:25 <amon> okay while its busy I'm looking for my old notes from the last time, but I believe I installed tomcat next.
04:26 <@sdumitriu> Done, starting with tomcat
04:27 <@sdumitriu> That one was faster
04:27 <@sdumitriu> mysql or postgres?
04:28 <amon> mysql
04:28 <amon> I just realized btw that my test files on the apache set up are on the old VM that is not available...
04:31 <amon> I think it is mysql-server
04:31 <@sdumitriu> Yes, found it
04:31 <@sdumitriu> I don't like that screen disables the scrollback
04:31 <@sdumitriu> Sorry, I closed the screen, can you reopen it
04:32 <@sdumitriu> ?
04:33 <amon> okay
04:33 <amon> for now make it foo
04:33 <@sdumitriu> foo it is
04:35 <amon> ah, i found the listings with the examples I used for setup before.
04:43 <amon> We need to creat data base xwiki
04:43 <amon> are you looking for the deb maint pwd?
04:43 <amon> I think it is in a diff file
04:43 <amon> You seem to know what you're looking for. Guess you've done this a few more times than me :-)
04:43 <@sdumitriu> Charset is latin1, let's change that to utf8
04:43 <@sdumitriu> OK, done
04:43 <@sdumitriu> Did you watch me?
04:43 <@sdumitriu> I added:
04:43 <@sdumitriu> default-character-set=utf8
04:43 <@sdumitriu> in the [client] section, and
04:43 <@sdumitriu> character-set-server=utf8
04:43 <@sdumitriu> in the [mysqld] section
04:43 <@sdumitriu> Next, there's this little thing that needs to be done:
04:44 <amon> Now I presume we need the apache vhost set up?
04:45 <@sdumitriu> Not yet
04:45 <@sdumitriu> Let's first make it work in Tomcat
04:45 <amon> btw, those are the same mysql cmds I used.
04:45 <amon> painful, ain't it?
04:46 <@sdumitriu> Looks like tomcat was already configured correctly for UTF-8
04:47 <@sdumitriu> I'm not used to Ubuntu, I use Gentoo all the time
04:47 <@sdumitriu> And it's a bit different
04:47 <amon> Okay. I could have sworn I had to do something with its config last time.
04:47 <@sdumitriu> OK, let's start with the xwiki war
04:47 <amon> okay, I brought it down with wget last time.
04:48 <@sdumitriu> 3.1 is OK?
04:48 <amon>   wget
04:48 <@sdumitriu> I use our maven repo usually
04:48 <@sdumitriu> But it should be the same
04:49 <amon> Doesn't matter to me, that's just the one I happened to hit first
04:50 <amon> we may also need to apt-get install unzip
04:51 <@sdumitriu> Right
04:52 <@sdumitriu> Hm, that was bad
04:53 <@sdumitriu> Should have used:
04:53 <@sdumitriu> unzip -d xwiki xwiki-enterprise-web-3.1.war
04:53 <@sdumitriu> Next, the mysql connector
04:53 <@sdumitriu> From
04:54 <@sdumitriu> Ah, doesn't work with wget
04:54 <amon> I ran across that as well. I had to move it another way to get it there
04:54 <@sdumitriu> Works with links
04:55 <@sdumitriu> OK, got it there
04:55 <@sdumitriu> Now let's change the hibernate configuration
04:56 <@sdumitriu> Commented the default hsql section, uncommented mysql, removed the sessionvariables parameter from the connection URL
04:57 <@sdumitriu> Let's see if it works so far
04:58 <@sdumitriu> Ha, would you look at that
04:58 <@sdumitriu> An error
04:58 <amon> interesting. Those are the same errors I had.
04:58 <@sdumitriu> So it's not you, it's a real problem
04:58 <amon> And most of what we've done so far maps pretty close what I did
04:59 <amon> So I was not tearing my hair out in vain!
05:00 <@sdumitriu> That line from the log looks promising
05:01 <@sdumitriu> Hm, there's an empty line at the start of this file
05:01 <amon> I have seen in some documents a suggestion of setting TOMCAT6_SECURITY=NO
05:01 <@sdumitriu> I wonder how it got there
05:02 <@sdumitriu> Hm, the error is different
05:03 <amon> Still the same basic error I could not get rid of though.
05:03 <amon> Ah, binary file viewing!
05:03 <@sdumitriu> Hm, the file is corrupt
05:04 <@sdumitriu> I think we should transfer it somehow else, since links failed to get it properly
05:04 <@sdumitriu> Can you sftp it from your computer?
05:04 <amon> I will take a look. I think I have a copy around.
05:05 <amon> yep, I will rsync it over.
05:06 <amon> okay, I dropped it in /root
05:06 <@sdumitriu> OK, let's try again
05:07 <amon> let me just get it straight what you did. You unzip'd that file into the lib?
05:07 <@sdumitriu> No, just listed its contents
05:07 <@sdumitriu> unzip -l
05:07 <amon> ah, it went by too fast for me to see
05:08 <@sdumitriu> Error, again
05:08 <@sdumitriu> What, again?
05:08 <@sdumitriu> Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
05:10 <amon> yep. I fought that for days... the next step would have been relearn java and debug...
05:10 <@sdumitriu> The class apparently isn't there
05:10 <@sdumitriu> But there's org/gjt/mm/mysql/Driver.class
05:10 <amon> last time I looked at java was about 7 years ago...
05:10 <amon> One of the things I was wondering was if there is some PATH variable some where
05:11 <@sdumitriu> Hm, that jar is not the right one
05:11 <@sdumitriu> If I check on a fresh download I see it:
05:11 <amon> How does it know where it's 'root' is
05:11 <@sdumitriu> unzip -l mysql-connector-java-5.1.17.jar | grep Driver
05:11 <@sdumitriu>        21  07-04-2011 16:24   META-INF/services/java.sql.Driver
05:11 <@sdumitriu>       692  07-04-2011 16:23   com/mysql/jdbc/Driver.class
05:11 <@sdumitriu>     15253  07-04-2011 16:23   com/mysql/jdbc/NonRegisteringDriver.class
05:11 <@sdumitriu>       690  07-04-2011 16:23   com/mysql/jdbc/NonRegisteringReplicationDriver.class
05:11 <@sdumitriu>       731  07-04-2011 16:23   com/mysql/jdbc/ReplicationDriver.class
05:11 <@sdumitriu>       336  07-04-2011 16:24   org/gjt/mm/mysql/Driver.class
05:11 <@sdumitriu> I'll re-send the lib
05:13 <@sdumitriu> Looks like this time it's starting up
05:13 <@sdumitriu> Yep, got it working
05:13 <amon> I am not at all sure what you changed...
05:13 <@sdumitriu> I re-uploaded the mysql connector jar
05:13 <@sdumitriu> Since the version you put there was wrong
05:13 <amon> that's scary...
05:14 <@sdumitriu> Where did you get it from?
05:14 <amon> Tell you in a moment
05:14 <@sdumitriu>
05:14 <@sdumitriu> It's working so far
05:14 <@sdumitriu> Let's get it on port 80
05:15 <@sdumitriu> Next, apache
05:15 <amon> appears like I got it here:
05:15 <@sdumitriu> Strange
05:15 <@sdumitriu> I got the same thing but it was different
05:15 <@sdumitriu> Check locally if it has com/mysql/jdbc/Driver.class
05:15 <@sdumitriu> Maybe rsync messed up
05:16 <amon> will do
05:16 <@sdumitriu> So, to sum up so far, there were two problems:
05:16 <@sdumitriu> 1. There was a blank line at the top of the hibernate configuration file, which was causing the file to be considered invalid
05:16 <@sdumitriu> 2. The mysql connector jar was wrong
05:17 <amon> nope, it is not good here:
05:17 <amon> amon@otv2:~$ unzip -l mysql-connector-java-5.1.17.jar | grep Driver
05:17 <amon>        21  2011-07-04 16:24   META-INF/services/java.sql.Driver
05:17 <amon>       336  2011-07-04 16:24   org/gjt/mm/mysql/Driver.class
05:17 <amon> amon@otv2:~$ unzip -l mysql-connector-java-5.1.17.jar | grep Driver
05:17 <amon>        21  2011-07-04 16:24   META-INF/services/java.sql.Driver
05:17 <amon>       336  2011-07-04 16:24   org/gjt/mm/mysql/Driver.class
05:17 <@sdumitriu> Try to redownload it
05:18 <amon> I wonder if it got truncated in transfer...
05:18 <@sdumitriu> Maybe one of their mirrors is bad
05:19 <@sdumitriu> installing apache2
05:21 <amon> trying to figure out where firefox put the one I just downloaded :/
05:21 <sdumitriu> has quit
05:22 <sdumitriu> has joined #xwiki
05:25 <amon> okay, got a good one on a download.
05:26 <amon> so what did I miss while I was looking at this problem?
05:27 <amon> Looks like you have a rather different vm host file than I did, but then I set mine up for
05:28 <amon> I would recommend that something be set up on maven so that wget works. I can't be the only one working from a server...
05:29 <amon> btw, if you like emacs, I have zile installed.
05:30 <amon> brb... need caffeine!
05:30 <sdumitriu> has quit
05:32 <sdumitriu> has joined #xwiki
05:33 <amon> thinking?
05:33 <sdumitriu> has quit
05:34 <sdumitriu> has joined #xwiki
05:35 <amon> link problems?
05:42 <amon> still there?
05:55 <amon> time passes...
06:08 <@sdumitriu> Back
06:08 <@sdumitriu> Sorry, I took a short break
06:08 <amon> okay, no prob. just didn't know where you went to.
06:09 <amon> so I spent a bit of time on looking at the pretty pictures...
06:09 <amon> I think you were just finishing up your vhost file.
06:11 <@sdumitriu> Hm, I get a 503
06:12 <@sdumitriu> Ah, I need to enable the AJP connector in tomcat
06:14 <@sdumitriu> OK, it's working so far:
06:15 <amon> will look
06:15 <@sdumitriu> What next?
06:15 <@sdumitriu> Install the default wiki XAR
06:15 <@sdumitriu> Can you try that?
06:16 <@sdumitriu> Just go to the wiki administration and install
06:16 <amon> okay... let me figure out where to do that.
06:16 <amon> moin does something similar.
06:17 <amon> that's the 'upload a new package'?
06:17 <@sdumitriu> Yes
06:18 <@sdumitriu> After that, you have to actually import it
06:18 <@sdumitriu> Click on the package name and then click on the Import button at the bottom right
06:19 <amon> The requested URL /releases/org/xwiki/enterprise/xwiki-enterprise-wiki/3/xwiki-enterprise-wiki-3.xar was not found on this server.
06:20 <amon> let me try again...
06:21 <@sdumitriu> 3.xar -> 3.1.xar
06:21 <@sdumitriu> Hm, you're missing the .1 in two places
06:22 <amon> ah, I see. interesting that that is the url shown.
06:22 <sdumitriu> has quit
06:24 <sdumitriu> has joined #xwiki
06:26 <amon> not working so far. Probably because I'm getting well into over time since I've been up a long time...
06:27 <amon> I uploaded the xar to my laptop. I browsed to that file and then tried upload and it says it cannot get a connection
06:27 <amon> Firefox can't establish a connection to the server at
06:29 <@sdumitriu> Same for me
06:29 <@sdumitriu> the VM seems to be down
06:29 <@sdumitriu> I can't ssh to it
06:29 <@sdumitriu> ssh: connect to host port 22: No route to host
06:29 <amon> will check...
06:30 <amon> does seem to be the case... let me pop over to another irc and check with someone..
06:33 <amon> got some problems there... looking into it.
06:40 <amon> I'm waiting for word that the fellow who manages that machine has extracted data on the crash... seems like it is getting too hot.
06:41 <amon> While I wait... my intent is to take the notes I've taken tonight and try doing the same build from them on my own (after we finish this round) and write that all up.
06:42 <amon> It does look like my biggest problem was that file corruption/truncation issue. If not for that, I might have actually had it working a week ago...
06:42 <sdumitriu> has quit
06:43 <sdumitriu> has joined #xwiki
06:45 <amon> It also looks like there is a minor bug in that the xwiki admin page shows a nonexistant URL as the place to go.
06:45 <sdumitriu> has quit
06:46 <sdumitriu> has joined #xwiki
06:47 <@sdumitriu> Hm, right
06:47 <@sdumitriu> Can you report that on
06:48 <amon> yes... I could do that...
06:54 <amon> I'm still waiting on the reboot...
06:54 <sdumitriu> has quit
06:56 <amon> it is coming back up... I will get the VM running
06:56 <sdumitriu> has joined #xwiki
06:59 <amon> okay, see if you can log in
06:59 <sdumitriu> has quit
07:00 <sdumitriu> has joined #xwiki
07:01 <amon> okay, the screen job is set up again
07:01 <sdumitriu> has quit
07:02 <sdumitriu> has joined #xwiki
07:02 <amon> okay, can you get back into the screen job?
07:05 <@sdumitriu> Done
07:06 <amon> okay, are we ready for me to try running that web upload again?
07:06 <sdumitriu> has quit
07:08 <amon> okay, are we ready for me to try running that web upload again?
07:08 <sdumitriu1> has joined #xwiki
07:08 <amon> okay, are we ready for me to try running that web upload again?
07:08 <sdumitriu1> is now known as <sdumitriu>
07:09 <@sdumitriu> Bypassed the router, I should have a stable connection from now on
07:09 <@sdumitriu> Yep, try the upload
07:10 <amon> okay, I have an available package now. Presume I should click on it?
07:10 <@sdumitriu> Yes
07:11 <amon> and IMPORT?
07:11 <@sdumitriu> Yep
07:12 <amon> Importing xwiki-enterprise-wiki-3.1.xar: Error while preparing importing
07:15 <@sdumitriu> Where are you? I can't see the package on
07:15 <amon>
07:17 <amon> Have I ended up in the wrong place?
07:17 <@sdumitriu> Yep, you went to space preferences, not wiki preferences
07:17 <@sdumitriu> I did it from
07:18 <amon> okay, I will try there.
07:20 <amon> I get a login page there. Haven't set up DaleAmon yet, so what is our default user/pwd?
07:25 <@sdumitriu> Admin/admin
07:25 <amon> Presumably Firefox just decided to fill it in for me. So what is the admin ... ah thanks
07:26 <amon> okay that did it
07:26 <amon> now did you install that xar or do I still have to do that?
07:30 <amon> I am on the page that says Adminstration Global
07:32 <amon> Administration->Content->Import ?
07:33 <@sdumitriu> I did the install
07:33 <sdumitriu> has quit
07:33 <sdumitriu> has joined #xwiki
07:34 <amon> okay, I think that did it. I did the import and install and got no error messages
07:36 <@sdumitriu> I really don't understand why the hibernate configuration was wrong...
07:36 <@sdumitriu> I've checked a few other builds and everywhere it's OK
07:36 <@sdumitriu> Must be a fluke in the 3.1 war release
07:37 <amon> one possibility is that screen job. What if I accidentally hit a return that got into your edit?
07:37 <@sdumitriu> Could be
07:37 <@sdumitriu> I'll download the war locally and check
07:37 <amon> I've got so many windows and desktops here I need a computer to keep track of them...
07:39 <amon> It looks to me like we've got it up to the end of the base install. So my next task will be to replicate it on a virgin copy of the same VM and make sure my notes are good. But I think that will happen tomorrow. Also, I've now been scheduled for hardware maintenance on the VM hosting server tomorrow night. Just what you want for a Friday night...
07:41 <amon> I'm going to go watch a half hour or so of TV and then get some sleep.
07:42 <@sdumitriu> OK, I'll go to sleep as well
07:42 <@sdumitriu> Good night
07:42 <amon> Thanks for all the help... and I owe a bug report on that URL and a write up to you
07:42 <@sdumitriu> You're welcome
07:42 <amon> I wish I knew how that file got screwed up though...
07:47 <@sdumitriu> OK, downloaded and checked, there's no newline in a pristine war
07:47 <@sdumitriu> So it must have been a random keypress from one of us
08:00 <sdumitriu> has quit
09:31 <Enygma`> has joined #xwiki
09:43 <xelister> has quit
09:55 <vmassol> has joined #xwiki
10:17 <sburjan> has joined #xwiki
10:18 <+sburjan> good morning
10:18 <+sburjan> cjdelisle: around ?
10:44 <vmassol> cjdelisle: good morning. Have you had any luck in finding out the issue with attachments in AttachmentTest?
11:06 <+sburjan> ok, going to start testing for the Tuesday release
11:06 <+sburjan> do we have a staging package ?
11:18 <vmassol> has quit
11:27 <vmassol> has joined #xwiki
11:43 <+sburjan> newly created pages are automatically added to watch ?
11:44 <+sburjan> *watchlist
11:46 <vmassol> yes
11:47 <vmassol> (note that I'm not personally sure it's a good thing but that's how thomas coded it)
11:49 <vmassol> guys is it normal that the activity stream displays minor edits by default? I can see minor edits on
11:49 <vmassol> for ex:
11:50 <vmassol> sburjan: could you verify that in your test?
11:51 <+sburjan> I will test
11:53 <vmassol> thxs
11:57 <@cjdelisle> vmassol: I proved that the problem only occurs when the loading of the attachment is right after the saving so there's some kind of race condition.
11:57 <vmassol> I think the issue is that adding an attachment is not considered a minor edit even if it's done as one
11:57 <vmassol> cjdelisle: ok
11:58 <vmassol> cjdelisle: but strange since I thought that the attachment was visible only after it's been fully saved
11:58 <@cjdelisle> And I ran it as a unit test where I just created an XWikiAttachment, setContent, getContent 100,000 times and no problems.
11:59 <vmassol> sburjan: I think the issue is that adding an attachment is not considered a minor edit even if it's done as one
11:59 <vmassol> sburjan: I'll create a jira issue
12:00 <+sburjan> ok. I didn't know that adding an attachment should be considered a minor edit
12:00 <vmassol> I didn't say that
12:01 <vmassol> use case: add an attachment programatically, save the doc as a minor edit
12:01 <vmassol> I didn't say that adding an attachment from the UI should be considered a minor edit
12:03 <+sburjan> I never added an attachment programatically
12:04 <vmassol> sure but how would that not make it a bug? :)
12:04 <vmassol> I'm going to report it
12:05 <+sburjan> so doing your previous use case, it will be displayed as major edit even if it is saved as minor edit ?
12:05 <vmassol> check this:
12:05 <vmassol>
12:05 <vmassol> you can see that the doc called "tog" has been modified right?
12:05 <vmassol> (yesterday)
12:06 <vmassol> sburjan: right?
12:07 <+sburjan> vmassol: I'm sorry, I don't think I understand. I only see minor version on tog page
12:07 <vmassol> I didn't say that
12:07 <vmassol> can you check the home page
12:07 <vmassol> as I mentioned
12:07 <vmassol> just say "yes" if you see what I mentioned
12:08 <vmassol> (one step by one step)
12:08 <vmassol> sburjan: you there?
12:08 <+sburjan> yes I am
12:08 <+sburjan> I don't see tog displayed in AS
12:09 <vmassol> hmmm
12:09 <+sburjan> (not logged in)
12:09 <vmassol> checking that maybe there's something with the admin user
12:09 <vmassol> interesting
12:10 <vmassol> testing locally
12:10 <evalica> has joined #xwiki
12:13 <+sburjan> also found a bug in annotations :)
12:23 <vmassol> sburjan: XWIKI-6834
12:23 <+sburjan> okay, I will include it my MTR
12:24 <vmassol> ok thanks; got to go
12:24 <+sburjan> but I will try to reproduce too
12:24 <vmassol> has quit
12:24 <Spazholio> has quit
12:35 <abusenius> has joined #xwiki
12:47 <Spazholio> has joined #xwiki
12:52 <DrLou> has joined #xwiki
12:53 <vmassol> has joined #xwiki
13:03 <@cjdelisle> was api.XWiki#parseMessage() removed?
13:03 <vmassol> deprecated yes but not remvoed
13:04 <vmassol> it's in an aspect probably
13:04 <@cjdelisle> hmm then aspects are broken because it's gone and breaking the LoginTest
13:05 <Spazholio> has quit
13:06 <vmassol> hmm I guess thomas made a mistake
13:06 <vmassol> my guess is that it's now in -legacy
13:06 <vmassol> but somehow the tests don't use the legacy jar
13:07 <@cjdelisle> just checked -legacy and it's not in the compatability aspect.
13:16 <vmassol> has quit
13:18 <vmassol> has joined #xwiki
13:28 <Spazholio> has joined #xwiki
13:33 <vmassol> guys btw are you using mvnsh when executing maven?
13:33 <vmassol> it's really neat
13:34 <vmassol> just installed mvnsh 1.0.1
13:34 <vmassol> download:
13:34 <vmassol> doc:
13:35 <vmassol> (the main goal of it is perf)
13:35 <vmassol> the growl integration on mac is nice
13:36 <vmassol> autocomplete is cool too
13:40 <vmassol> it's really fast
14:00 <vmassol> has quit
14:55 <sdumitriu> has joined #xwiki
14:59 <+sburjan> hello sdumitriu
15:01 <Spazholio> has quit
15:08 <@sdumitriu> Hi sburjan
15:09 <qwebirc77569> has joined #xwiki
15:09 <+sburjan> what did you wanted to ask me ?
15:10 <@sdumitriu> Start the MTR for 3.2M2
15:10 <+sburjan> yepp, I already tested .. almost done
15:10 <+sburjan> and creating it
15:44 <+sburjan> sdumitriu: here it is
15:44 <+sburjan>
15:52 <abusenius> has quit
16:04 <abusenius> has joined #xwiki
16:24 <sburjan> has quit
16:27 <amon> <vmassol> it's really neat
16:27 <amon> <vmassol> just installed mvnsh 1.0.1
16:27 <amon> <vmassol> download:
16:27 <amon> <vmassol> doc:
16:27 <amon> <vmassol> (the main goal of it is perf)
16:27 <amon> <vmassol> it's really neat
16:27 <amon> <vmassol> just installed mvnsh 1.0.1
16:27 <amon> <vmassol> download:
16:27 <amon> <vmassol> doc:
16:27 <amon> <vmassol> (the main goal of it is perf)
16:27 <amon> oops sorry. Hit a mouse cursor in the wrong place and it dumped some text back here. My fault.
16:49 <qwebirc77569> cjdelisle: Hey, I was on yesterday asking about ways to format a sheet included in a page, to align it left in a seperated box of some kind. How and where would you specify that formatting?
17:16 <sburjan`> if I want to contribute to with a small groovy JIRA Macro, which way is the best to contribute it ? should I only paste the code snippet, or create a XAR ?
17:17 <@sdumitriu> Create a XAR
17:18 <sburjan`> so exporting the single page that contains the XWikiMacro object, right ?
17:18 <@sdumitriu> Yes
17:18 <sburjan`> where do we store current macros ?
17:18 <sburjan`> in which space ?
17:19 <sburjan`> the one bundled with XE
17:19 <sburjan`> *ones
17:20 <@sdumitriu> XWiki usually
17:20 <sburjan`> ok. thanks
17:20 <@sdumitriu> But also in Main
17:20 <sburjan`> which one do you recommend ?
17:20 <@sdumitriu> (dashboard gadgets are in Main)
17:21 <sburjan`> I wouldn't like to create another space to store the macro
17:21 <sburjan`> I see
17:21 <@sdumitriu> I'd say XWiki since it can't be used as a gadget yet, right?
17:21 <sburjan`> well I don't know ... why not ? :)
17:22 <sburjan`> I guess I'll have to try
17:22 <sburjan`> I have only a XWikiMacro object..
17:57 <vmassol> has joined #xwiki
17:59 <rrodriguez> has joined #xwiki
18:00 <rrodriguez_> has joined #xwiki
18:00 <rrodriguez> has quit
18:00 <rrodriguez_> is now known as <rrodriguez>
18:05 <rrodriguez> has quit
18:08 <rrodriguez> has joined #xwiki
18:13 <rrodriguez> has quit
18:14 <rrodriguez> has joined #xwiki
18:14 <rrodriguez> has quit
18:15 <rrodriguez> has joined #xwiki
18:17 <rrodriguez> has quit
18:17 <rrodriguez> has joined #xwiki
18:17 <rrodriguez> has quit
18:23 <vmassol> has quit
18:26 <sdumitriu> has quit
18:26 <sdumitriu> has joined #xwiki
18:38 <@cjdelisle> qwebirc77569: You can insert style information using (% style="...." %)
18:48 <vmassol> has joined #xwiki
19:00 <qwebirc77569> Okay got it. Your going to end up banning me for asking so many questions sorry. but how can i add the output of velocity to a table, from this: #foreach($prop in $   ;  $prop.prettyName: $doc.display($prop.getName())  #end
19:00 <qwebirc77569> i thought that would be simple, but im struggling slightly
19:01 <@cjdelisle> I don't mind the questions, I'm just visiting my mom this week so I'm in and out. Forgive me for the slow answers sometimes.
19:02 <qwebirc77569> not a problem at all, family always comes first anyways :)
19:04 <@cjdelisle> I think $doc.display() gets the "selected object" from the document (which is a bad concept IMO)
19:05 <@cjdelisle> getObject(String classname) <-- that will get the first object of the given class
19:06 <@cjdelisle> #set($obj = $doc.getObject('MyClass'))
19:06 <@cjdelisle> $obj.getProperty($prop.getName()) <-- try that
19:14 <qwebirc77569> ahh wait. im doing something wrong because thats not working. the last line you sent goes inside the foreach right?
19:16 <@cjdelisle> correct, the last line inside of it and the other line before the #foreach
19:17 <qwebirc77569> all the fields look like this: com.xpn.xwiki.api.Property@dfb948
19:17 <@cjdelisle> ahh
19:18 <qwebirc77569> lol thats what i said.
19:18 <@cjdelisle> ahh sorry
19:19 <@cjdelisle> $obj.get($prop.getName()) <-- try that
19:19 <qwebirc77569> okay yes that works.  nice.
19:20 <qwebirc77569> so how can i get each one of those properties into a table?
19:22 <@cjdelisle> just use your script to generate the syntax for a table
19:23 <@cjdelisle>
19:24 <qwebirc77569> i tried that yesterday, just adding in either the "|" or <tr> etc and it wouldnt work. i wasnt sure if it was bc it was in the velocity tags?
19:25 <@cjdelisle> After the velocity is finished parsing, the XWiki rendering engine will render what comes out of the velocity macro.
19:25 <@cjdelisle> you can put it inside of a literal block so that you see the raw syntax by putting a {{{ above it and a }}} beloc it.
19:25 <@cjdelisle> *below
19:33 <qwebirc77569> :(
19:34 <qwebirc77569> sorry, the braces above and below what, just the | ?
19:35 <qwebirc77569> its not processing it if i do {{{ | }}}, just puts the bar in front of the property
19:39 <abusenius> has quit
19:40 <@cjdelisle> what the {{{ and }}} do is make the XWiki rendering engine not parse the content inside of it
19:40 <@cjdelisle> that way you can diagnose whatever issue you are having making a table.
19:41 <qwebirc77569> okay i see what your saying then
20:10 <jvelociter> has joined #xwiki
20:11 <jvelociter> has left #xwiki
20:11 <vmassol> has quit
20:11 <jvelociter> has joined #xwiki
20:11 <+jvelociter> hi sdumitriu
20:11 <@sdumitriu> Hi
20:11 <+jvelociter> I see there is no support at all for some kind of parameters with the new event stream API
20:12 <+jvelociter> is this something you didn't want on purpose ?
20:12 <@sdumitriu> No
20:12 <@sdumitriu> It's something that I didn't want to go into right away
20:13 <+jvelociter> OK
20:13 <@sdumitriu> I didn't like the param1 -> param5 way of doing it
20:13 <+jvelociter> yes...
20:13 <@sdumitriu> So I just mapped what I needed to some of those params
20:13 <@sdumitriu> Trying to make each one stand for the same thing
20:13 <@sdumitriu> Do you have a specific need at the moment?
20:13 <+jvelociter> wouldn't just a setParameters(List<String>) make sense ?
20:14 <+jvelociter> yes, I do, but as a platform consumer
20:14 <+jvelociter> not for the platform itself
20:14 <+jvelociter> so "business" parameters
20:15 <+jvelociter> I think the event API ultimately will need this ability to store "free form" params
20:16 <+jvelociter> the activtystream APIs with setParam1 setParam2 etc. are bad I agree
20:16 <+jvelociter> but the need is real
20:17 <@sdumitriu> I agree
20:17 <@sdumitriu> How many params do you need?
20:17 <+jvelociter> hehe...
20:18 <+jvelociter> If I say more than 3, it's going to be harder to fit in the AS
20:18 <+jvelociter> :P
20:18 <@sdumitriu> Yes
20:18 <+jvelociter> honestly I don't know yet
20:18 <+jvelociter> but 3 would be good enough I think
20:19 <@sdumitriu> Note that there's also the event body and related entity that you can use, if the semantic fits
20:19 <+jvelociter> related entity has to be an entity though ?
20:19 <+jvelociter> yes
20:20 <+jvelociter> so I would like to add Event#setParameters(List<String>) and store parameters from param3 to param5, WDYT ?
20:20 <+jvelociter> and log a warning if there are more than 3 ?
20:20 <@sdumitriu> OK with setParameters
20:21 <@sdumitriu> But not sure about param3-5
20:21 <@sdumitriu> We could make that a real list with a proper hibernate mapping
20:21 <+jvelociter> right
20:22 <+jvelociter> that's fine by me too
20:37 <+jvelociter> should rather be a setParameters(Map<String,String>) then
20:37 <+jvelociter> and have named parameters
20:40 <@sdumitriu> Yep
21:26 <qwebirc77569> Does any one know if there is a document that specifies which style properties can be used with a page?
21:28 <@cjdelisle> (% style="..." %) is just plain old CSS.
21:29 <qwebirc77569> im trying some like font,align, column-width and not getting results for some reason. Okay guess Ill just keep playing. :) thanks for all your help
21:46 <evalica> has quit
21:50 <+jvelociter> sdumitriu: WDYT about deprecating setParamN methods in activtystream ?
21:55 <@sdumitriu> Not sure it's needed
21:55 <@sdumitriu> The whole plugin should be deprecated
21:56 <+jvelociter> true
22:08 <+jvelociter> done
22:08 <+jvelociter> if you have time for a review :
22:20 <pgmjsd> has joined #xwiki
22:20 <amon> has quit
22:20 <amon> has joined #xwiki
22:30 <@sdumitriu> jvelociter: Done
22:30 <@sdumitriu> Looks pretty neat and simple
22:30 <@sdumitriu> Just had a few minor remarks
22:33 <+jvelociter> sdumitriu: thanks
22:48 <amon> sdumitriu, I'm trying to reproduce what we did last night in a step by step document and ran into a problem. Got it working at links http:localhost:8080/xwiki but not getting the vhost showing up remotely. Can you pop into the test machine and take a look?
22:48 <@sdumitriu> Sure
22:48 <@sdumitriu> Same address?
22:49 <amon> yep, if I got your ssh key transferred correctly...
22:49 <@sdumitriu> Asks for password
22:49 <amon> hmmm... let me check again.
22:51 <amon> try again...
22:52 <@sdumitriu> Same
22:54 <amon> okay, it was truncated. try now
22:54 <@sdumitriu> I'm in
22:54 <@sdumitriu> Works on 8080
22:55 <amon> okay. I should have everything set up that we went through last night unless you slipped a command through on me when I wasn't looking... which you did seem to have done on an 'a2enmod proxy' that I had to do to get apache2 to load the vhost file
22:57 <amon> I have tried to compress the procedure as much as possible, ie I apt-get everything need right at the start of the HowTo
22:58 <@sdumitriu> I think you forgot to enable proxy_ajp
22:58 <amon> where is that?
22:59 <@sdumitriu> a2enmod proxy_ajp
22:59 <@sdumitriu> Yep, works now
22:59 <amon> ah, so is that instead of a2enmod proxy or in addtion to it?
22:59 <@sdumitriu> Addition
22:59 <amon> You slipped that one right by me...
23:00 <@sdumitriu> + you need to disable the default site, since otherwise it takes precedence and tries to respond for /xwiki/ as well
23:00 <@sdumitriu> Or lower its priority
23:00 <amon> I disabled it on my first test. I had not yet done it here. I will add that note as well.
23:00 <@sdumitriu> a2dissite default
23:01 <@sdumitriu> So you were missing two commands:
23:01 <@sdumitriu> a2dissite default
23:01 <@sdumitriu> a2enmod proxy_ajp
23:02 <amon> okay, I'll continue with the next part of the how to then, the initial set up of the XWiki with the xar file install. And then I'll make a nice clean document and send it to you.
23:02 <amon> Although I might try one more run through on a virgin copy of the VM, just to be sure to be sure.
23:11 <amon> according to my notes I logged in as Admin/admin, but it seems not to accept it. Did you set something specific that I didn't notice?
23:11 <amon>
23:13 <vmassol> has joined #xwiki
23:15 <@sdumitriu> Don't login
23:15 <@sdumitriu> Just click on wiki -> administer
23:15 <amon> okay, I might note that on my screen the colors make the print almost unreadable.
23:17 <amon> got it. we were both working the web browser at the same time last night and my notes got a bit confused.
23:18 <jvelociter> has quit
23:18 <jvelociter> has joined #xwiki
23:30 <amon> Okay, success. I have a full set of instructions start to finish. I'll have to run through fresh one more time but I think I've captured all the steps this time. Thanks again.
23:31 <@sdumitriu> You're welcome
23:32 <@sdumitriu> It would be good to put the end notes on
23:38 <amon> hmmm... doesn't seem at all obvious how to change the Admin user password to something safe...
23:39 <vmassol> amon: just go to that user page and click "change password" :)
23:39 <vmassol> (you'll need to have the rights of course)
23:42 <amon> Administration » Users & Groups » Users and then I select the only existing user, Admin for 'Manage' and I see no password option.
23:43 <@sdumitriu> Click on your username in the upper right corner
23:43 <@sdumitriu> Administrator
23:45 <vmassol> amon:
23:46 <vmassol> has quit
23:47 <amon> Thanks. will look. Have to run now, only 15m before a telecon, then followed by a scheduled server maint... will be a few hours before I can get back to it.
23:49 <amon> Biggest problem is the white text on light grey on the tool bar is totally unreadable on my screen.
23:51 <@sdumitriu> Click refresh
23:56 <amon> So why did a refresh make it change color?
23:56 <amon> That will have to go in the HowTo as well!
23:56 <@sdumitriu> Normally, it shouldn't have been needed
23:56 <@sdumitriu> Let me think a bit
23:57 <amon> Ok. I have to go dial in on my telecon. Will check back in an hour.
23:57 <@sdumitriu> No idea, probably because you had an older version in the cache from the previous installation

Get Connected