#foswiki 2011-08-25,Thu

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
Babarnope
oh yes, you :)
foswiki.org is having shitloads of issues with load
Babar is guessing some search engines are indexing
[00:10]
gac410foo. Yeah - did you see the cve [00:11]
Babarthat doesn't belong here
but yeah, I saw it
[00:11]
..... (idle for 20mn)
***MartinCleaver has quit IRC (Quit: MartinCleaver) [00:31]
................. (idle for 1h21mn)
Lynnwood has quit IRC (Quit: Lynnwood) [01:52]
gac410Do we have anything in core for escaping the reserved characters in URIs? <>#"%{}|\^~`?&=
URI::Escape works well, but it's not a perl core module.
[01:54]
***terceiro has joined #foswiki [01:55]
..... (idle for 21mn)
pharvey has joined #foswiki [02:16]
MartinCleaver has joined #foswiki
MartinCleaver has quit IRC (Changing host)
MartinCleaver has joined #foswiki
[02:26]
.... (idle for 19mn)
j_wrightCGI.pm does it doesn't it? [02:45]
***terceiro has quit IRC (Remote host closed the connection)
terceiro has joined #foswiki
[02:45]
gac410j_wright: Thanks ... It does HTML entity encoding &#xx; I don't see where it does simple %XX escaping.
In any event I think I have a simple solution, using a hash and a regex.
[02:53]
pharveygac410: IIRC there's an undocumented but widely used uri escape method in CGI.pm
pharvey digs
[03:05]
gac410Silly me - I read the docs. [03:06]
pharveyoh, right - CGI::Util
so it is documented :)
[03:07]
gac410It needs to be very limited escaping. I found that default URI::Escape behavior encoded your accented Rene example , breaking it. [03:07]
pharveyyeah, that's the problem I found with both CGI::Util and URI::Escape :( [03:08]
gac410Well sort of: CGI::Util - no public routines. I guess that's documentation ... of a sort.
URI::Escape lets you pass a list of characters you want to escape.
Optional 2nd parameter.
[03:08]
pharveythen my memory is badly corrupted. It's obviously been a long time since I did any WYSIWYG work :) [03:09]
***MartinCleaver has quit IRC (Quit: MartinCleaver) [03:09]
gac410Looks like CGI::Util doesn't seem to have a reduces escaping option - it uses [^A-Za-z0-9] or similar. [03:11]
pharveyArgh. Reading CGI.pm usually makes me sad :/
WysiwygPlugin is using URI::Escape and CGI::unescape
[03:12]
gac410debating whether or not I should commit. Interesting - URI::Escape is not a perl core module. [03:13]
pharveyalthough it's got bugs..
well, it's using something called encodeURIComponent which I thought came from URI::Escape
ohhh
sorry, that's a commented line of javascript :)
I think I'm causing more confusion than help here :)
[03:13]
gac410Basically I'm planning on escaping just the string to the left of the @ in the email address. [03:15]
pharveysounds fine
\p{Alphanum} is probably a good idea too - some charsets have numbers other than 0-9 in them
(saw your comment)
[03:15]
gac410Yeah - I found a comment about that - but it made my head hurt so I didn't try to think about it too much. :-)
(numbers other than 0-9 ... are we talking hex? :-D )
[03:17]
pharveyThe example I saw was still 0-9, but had different codepoints
also an example of a commonly used Tibetan number 0.5
[03:18]
gac410gac410 removes socks [03:20]
pharveywhich reminds me, I haven't finished my unicode selenium tests [03:20]
gac410gac410 runs FoswikiSuite - if it passes I'll commit to trunk anyway. [03:22]
***pharvey has quit IRC (Read error: Operation timed out)
pharvey has joined #foswiki
[03:27]
pharvey has quit IRC (Ping timeout: 246 seconds) [03:39]
FiberOptix has joined #foswiki [03:52]
gac410Ug - earlier today unit tests looked good - now 257 unexpected passes: in the AddressTests, and 16 failures in the TopicUserMappingContrib Tests [03:55]
FiberOptixHi, I'm having some trouble enabling Apache logins. [03:58]
gac410FiberOptix: what is the issue? [03:59]
FiberOptixI've followed the instructions listed, which went fine, but my browser is not asking for my credentials, as one would hope, and I find that when attempting to login (or register) I run into the error "viewauth requires identification" [04:00]
gac410What OS? Linux? windows? if Linux, Debian install or Foswiki tarball? [04:00]
FiberOptixThis is on my Windows machine [04:00]
gac410Okay - so on a windows server running Apache? [04:01]
FiberOptixCorrect [04:01]
gac410Did you generate the apache configuration using Foswiki:Support/ApacheConfigGenerator ? [04:01]
FoswikiBothttp://foswiki.org/Support/ApacheConfigGenerator [ ApacheConfigGenerator ] [04:01]
FiberOptixNo, I manually went through .htaccess.txt and edited it by hand [04:01]
***GithubBot has joined #foswiki [04:02]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/Rpcn4Q
[foswiki/master] Item11059: improved email address matching - GeorgeClark
[04:02]
***GithubBot has left [04:02]
FoswikiBothttp://foswiki.org/Tasks/Item11059 [ Item11059: Email address followed by a dot generates email link with dot included ] [04:02]
gac410If you have access to your Apache configuration, the easiest way to get set up is to use the Foswiki:Support/ApacheConfigGenerator to build a complete configuation. [04:03]
FiberOptixAh ha! I think I've got it. Silly, I skipped the renaming bit since Windows would complain upon trying to remove the ".txt" that the file needed a filename. Used 'mv' to rename in DOS and it appears to have worked. [04:05]
gac410If using .htaccess - did you un-comment the lines #<FilesMatch "(attach|edit|manage|rename|save|upload|mail|logon|rest|.*auth).*"> in the sample .htaccess file for the .bin directory?
Ah. That would do it.
[04:05]
FiberOptixThanks.
I'm glad to see an open source 'enterprise' style wiki out there, but I have to say that I'm finding it difficult to pick up quickly.
[04:06]
gac410There is a lot to it - esp. if you get into wiki app. development [04:08]
FiberOptixIt seems as though the users (and admin) that I registered before are nolonger recognised now using the new Apache login method. Is this normal? [04:11]
gac410No - As long as apache is pointing to the same .htpasswd file that Foswiki is using, they should work together.
admin though doesn't go through apache auth. To login as admin, you need to login as a normal user, and then use the internal admin login - it uses the password saved from bin/configure.
[04:12]
FiberOptixI see. Will look to see if apache and foswiki are pointing to the same .htpasswd [04:14]
gac410Other "gotcha" is if you used a password encoding in .htpasswd that is not understood by Apache. Windows can be a bit challenging.
What is {Htpasswd}{Encoding} set to in your LocalSite.cfg?
[04:15]
FiberOptixLet me check... [04:16]
gac410(Some pending fixes in 1.1.4 makes the compatibility situation much better) [04:16]
FiberOptixI see.
It's 'crypt'
I can see the users I registered before in my .htpasswd
[04:18]
gac410Hmm... That's the default for Linux (and a poor default :-( ) - Have to look at configure help - you are on 1.1.3? [04:19]
FiberOptixhmm... Looks like I have 1.1.2 [04:21]
gac410Yeah we recommend sha1 on windows - I really don't know if crypt is windows compatible, but I suspect that might be an issue.
1.1.2 is okay for testing, but for rolling out production 1.1.3 is probably better - and I expect we'll release 1.1.4 sooner than later.
[04:21]
FiberOptixGood to know, thanks. [04:22]
gac410We don't have a lot of developers running the windows server. I occasionally test on it, but have not done any tesing with Apache auth on windows. Just template auth. [04:23]
FiberOptixif I make a change in this LocalSite.cfg, will that be sufficient? I've effectively locked myself out due to setting FilesMatch ".*" to require valid user [04:23]
gac410If you can use digest auth - that is the most secure. (We call it "md5" in the bin/configure interface.
Unfortunately in 1.1.2 / 1.1.3, it's not easy to change password encoding. You might need to set a new encoding, and then use password reset.
1.1.4 will make passwords much more inter-operable. Though windows might not be as robust. :-(
[04:24]
FiberOptixYes, unfortunately this Windows machine was the only candidate to sit in my closet all year while hosting this wiki. [04:26]
gac410Anyway, on 1.1.2/3, {Htpasswd}{Encoding} controls how Foswiki writes passwords, and also is used by TemplateAuth to decode them.
Apache uses some "magic" to figure out how the password was stored, and uses the same encoding to check the password, so it should be more flexible.
On 1.1.4, foswiki works similar to Apache. {Htpasswd}{Encoding} controls what is written, and magic in the file is used to figure out how the password was stored.
[04:28]
FiberOptixChanged to sha-1
Will look out for 1.1.4
[04:31]
gac410Hm. could you look at your .htpasswd file ... don't tell me the password - but could you tell me what the first couple of characters are UserName:$blah$ The $..$ part is the magic.
I seem to recall that on windows we use sha1 even when you configure crypt. So .htpasswd would have wikiName:$SHA$... (or something like that)
[04:31]
FiberOptixOne sec [04:32]
gac410It was all very confusing. Item10962 and Foswiki:Development/ImproveHtPaswdUserFlexibility were implemented for 1.1.4 [04:34]
FoswikiBothttp://foswiki.org/Tasks/Item10962 [ Item10962: Rework HtPasswdUser.pm to be more flexible with supported encoding ] http://foswiki.org/Development/ImproveHtPaswdUserFlexibility [ ImproveHtPaswdUserFlexibility ] [04:34]
FiberOptixStrange, .htpasswd doesn't seem to have any magic in it [04:35]
gac410So it just has 11 characters like WikiName:$cnhJ7swqUWTc - That's crypt. [04:36]
FiberOptixThere aren't any $s [04:36]
gac410SHA would have {SHA} not $SHA$ -- sorry my memory was faulty. [04:36]
FiberOptixNone of them are preceded by any magic-type tokens like {SHA} or $SHA$ [04:37]
gac410Okay - so that is plain old crypt by the sounds of it. See table in Foswiki:Development/ImproveHtPaswdUserFlexibility
The magic for crypt is that there isn't any ;-)
[04:38]
FiberOptixlol, got it [04:39]
gac410Crypt is a linux specific encoding so I can imagine it might have issues on windows. Though I thought the code dealt with that - but obviously not. Or maybe it was a 1.1.3 fix. [04:40]
FiberOptixWeird, in /bin/configure when I changed {Htpasswd}{Encoding} to sha1 it claims to have loaded version 5.48 [04:40]
gac410Yeah - that's just telling you that the module is available. It's some realtime dependency checking. [04:41]
FiberOptixI see. Just for the heck of it, how can I check which .htpasswd file Apache is pointing to? [04:41]
gac410It should be in .htaccess.
AuthUserFile directive.
[04:41]
FiberOptixYes, I see that it points to the correct one [04:43]
gac410So when you use System/PasswordReset to reset a user password, it will update the entry in .htpasswd to have {SHA} encoding. [04:43]
FiberOptixOk, good, I'll try this [04:44]
gac410Make that System/ResetPassword
Ah - and you should be using HtpasswdUser, Not ApacheHtpasswd as the Password module.
$Foswiki::cfg{PasswordManager} = 'Foswiki::Users::HtPasswdUser';
[04:44]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Users::HtPasswdUser [ (Foswiki login) PerlDoc ] [04:46]
FiberOptixYes, I changed it back for the time being [04:46]
gac410You use that even with Apache auth. Don't use the Apache version - it's broken. We give a warning on 1.1.3/4 - it's "demo" code and was badly broken. [04:47]
FiberOptixOh I see! That's very helpful, thanks.
Hmm, I may be out of luck here - password reset is not working because I've turned email off (due to this being a Windows machine, again)
[04:47]
gac410Ah - another 1.1.4 fix - we support gmail now.
we really need to get this shipped :-(
So the "htpasswd" command can be used to generate a valid password string - but you need to manually edit file.
If you let htpasswd write the file, it will wipe out the email addresses stored there.
[04:49]
FiberOptixOk, that's not so bad [04:51]
gac410htpasswd -nsb MyUser mypasswd
MyUser:{SHA}rkjIl9FAOpzhvw2VlRc7tgmmaeE=
And we would append the file with :email@address
/file/line/
[04:52]
FiberOptixyep, sounds good, just navigating to my apache dir to find htpasswd binary [04:53]
gac410-n - display on output -s - generate SHA hash, -b - batch mode, supply password on command line. [04:53]
FiberOptixThanks for your help [04:54]
gac410you are welcome. Seems to be quiet here - but Europe / Australia should be coming online soon. [04:55]
***gac410 has left [04:55]
............ (idle for 59mn)
mfladischer has joined #foswiki [05:54]
........ (idle for 37mn)
MichaelDaum has joined #foswiki
ChanServ sets mode: +o MichaelDaum
terceiro has quit IRC (Remote host closed the connection)
terceiro has joined #foswiki
[06:31]
.... (idle for 19mn)
MichaelDaumWikiRingBot, seen Lavr [06:54]
WikiRingBotWikiRingBot hasn't seen Lavr yet [06:54]
***mark_doe has quit IRC (Ping timeout: 245 seconds) [06:54]
..... (idle for 21mn)
foswiki_irc5 has joined #foswiki
Lynnwood has joined #foswiki
Lynnwood has quit IRC (Changing host)
Lynnwood has joined #foswiki
[07:15]
LavrStill following but very busy workwise [07:18]
***foswiki_irc4 has joined #foswiki
foswiki_irc4 has quit IRC (Client Quit)
[07:19]
LavrI have reviewed the 1.1.4 release blockers and my main concerns are the ones related to charset in wysiwyg and the skin bug for the embedded csrf setting
I am off to work
[07:20]
..... (idle for 23mn)
***terceiro has quit IRC (Remote host closed the connection) [07:44]
MichaelLorenzen has joined #foswiki [07:54]
........ (idle for 39mn)
GithubBot has joined #foswiki [08:33]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/29ulrg
[foswiki/master] Item11067: clean up compressed files with inunstall - ArthurClemens
[08:33]
***GithubBot has left [08:33]
FoswikiBothttp://foswiki.org/Tasks/Item11067 [ Item11067: pseudo-install should clean up compressed files ] [08:33]
***ArthurClemens has joined #foswiki [08:36]
GithubBot has joined #foswiki [08:45]
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/Yb9IlA
[foswiki/Release01x01] Item11067: clean up compressed files with inunstall - ArthurClemens
[08:45]
***GithubBot has left [08:45]
foswiki_irc1 has joined #foswiki [08:59]
foswiki_irc1we have created pedia kind of application to share the knowledge....can we enable voice based recording to share the knowledge? [09:01]
.... (idle for 17mn)
***denisr has joined #foswiki [09:18]
SvenDowideitfoswiki_irc1: mmm, probly
do you mean that users add info by recording? or that you get the knowledge read to you by the computer?
I have comeacross a javascript text to speech engine somewhere
that'd be a fun thing to add to a wiki
[09:20]
***pharvey has joined #foswiki [09:28]
SvenDowideitmy my, this sotre thing is interesting
atm, it feels like all the functions in Foswiki::Store have an essentially identical impl
[09:28]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Store [ (Foswiki login) PerlDoc ] [09:28]
***pharvey has quit IRC (Ping timeout: 246 seconds) [09:35]
MartinCleaver_ has joined #foswiki
MartinCleaver_ has quit IRC (Changing host)
MartinCleaver_ has joined #foswiki
[09:48]
.... (idle for 15mn)
foswiki_irc1 has quit IRC (Quit: Page closed)
pharvey has joined #foswiki
[10:03]
pharveySvenDowideit: so we'll be finished SimplifyStoreSemantics in a couple of weekends? :-) [10:07]
SvenDowideitpharvey: i don't get time on weekends :(
and given that this week I've found all of 4 hours
its all very depressing
one child loving day care, the other doesn't
[10:12]
***pharvey has quit IRC (Ping timeout: 260 seconds) [10:14]
SvenDowideitmmm, more pushing to github [10:20]
***pharvey has joined #foswiki [10:22]
pharveyit turns out that 'git submodule status' mostly tells lies about the state of its submodules unless all untracked files are .gitignore'd
git submodule summary is more interesting in that case
MichaelDaum: most popular (clicked) link I've posed on twitter is to http://foswiki.org/Support/Faq54 - capturing jqgrid selections in wikiapps
[10:31]
MichaelDaum:) [10:35]
pharveyhave you done much with jqgrid selections? Need to think about improving the experience so that selections can be built across multiple paging/filtering events [10:37]
MichaelDaumnope [10:39]
SvenDowideitmmm, looks like i'm accidentally producing a foswiki2.0 that will allow us to have several different data dirs
which will make virtualhosting and upgrading much simpler
[10:43]
pharveyw00t [10:44]
SvenDowideitand (oooo) will make it possible for me to finally do a very magical http://host/~userdir/foswiki where the user's dir would _only_ contain their personal webs
and.... even cuter, that would mean that it would become possible for users that have unix account and maildirs in that account to use foswiki to interact with their email
[10:44]
pharveypharvey continues fixing pseudo-install to auto-generate .gitignore [10:45]
SvenDowideitat which point, i have yet another functionality i always wanted - my email as a set of wiki webs
pharvey: can you take a look at the latest Foswiki::Store i pushed and see if it still makes sense?
[10:45]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Store [ (Foswiki login) PerlDoc ] [10:46]
pharveyk [10:47]
SvenDowideitnext up i need to write some tests / modify the existing ones [10:48]
***foswiki_irc5 has quit IRC (Ping timeout: 252 seconds) [10:48]
SvenDowideitmmm, which is probly siplest to do if i implement a MockStore again [10:49]
pharveysorry for the small nit pick: should it be use Foswiki::Address(); rather than use Foswiki::Address; ? [10:49]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Address [ (Foswiki login) PerlDoc ] [10:49]
SvenDowideitpharvey: nits are good
how do i give you commit access on github :)
[10:49]
pharveyIIRC Babar required my github ssh key
I guess I could clone yours, and make a pull request :P
[10:50]
SvenDowideitboooo
why doesn't github make it trivial
all i want to do is add your accountname, and they do the rest
[10:50]
pharveypretty sure you just need my ssh key
pharvey pokes for a bit
[10:51]
SvenDowideitof course, you're not PaulHarvey - silly non-real names
ok, added you as collaborator
as in csirac2
[10:51]
pharveysweet [10:52]
SvenDowideiti wonder if that means you can push [10:52]
pharvey"Paul Harvey" is a terribly non-unique name :) [10:52]
SvenDowideitcos its not telling me
seems to be ok on github - but :p
[10:52]
pharveypharvey cloning [10:53]
SvenDowideityou shoudl be able to just clone core :p [10:54]
pharveyreally? [10:54]
SvenDowideitwhy knot?
you should be able to use your magic submodules code too
[10:54]
pharveyoh, you mean "should" in a feature-request sense? [10:55]
SvenDowideitno reason not to - unless you don't have a per-core .buildcontrib [10:55]
***foswiki_irc9 has joined #foswiki [10:55]
SvenDowideiti thought you said it works? [10:55]
pharveyyou've been working on a clone of foswiki, not foswiki-core [10:55]
SvenDowideitor did you suggest it to me in the hope i'd fix it?
on mo
i thought github gave that functionality
ah, ok
[10:55]
pharveyI didn't know that [10:56]
SvenDowideitso unlike svn, where you can just checkout a subdir
there's not trivial partial clone ?
[10:56]
pharveyyeah, git is the stupid content tracker, remember? :) [10:56]
SvenDowideitoh well :/ [10:56]
pharveypartial-checkouts are one of the bashing points mercurial people bash git with IIRC [10:57]
SvenDowideitone more vote to use svn as master from me
i'm not surprised, i've used it alot in svn
[10:57]
pharvey"the one true git way" says that separate things need their own separate repos. I *can* see the sense in that. [10:57]
SvenDowideityeah, me too
it encourages developers to stay in their silo
[10:59]
***MartinRowe has joined #foswiki [10:59]
SvenDowideitand reduces the change that code is refactored between silos
which means people like me will continue to get to do major re-architecing of large legacy code
[10:59]
pharveythere's probably some truth to the silo point, but really - svn is fine for the foswiki project. [11:02]
SvenDowideitgiven that most developers do actually silo - as a way to simplify their tasks
its the main workflow
people like me that do alot of cross silo work are unusual - but i always wonder about the effects
[11:03]
pharveyThe "sense" in having separate repos makes sense for me, where I was terrified of doing a pull/rebase because it would trash my entire site, rather than just the plugin I wanted to actually update
clone complete
[11:03]
SvenDowideity, thats a common fear
but then, you should never ever run a deployment directly from the development repo
it shoudl be staged to a testing repo, then pushed to a deployment repo that you can then test a pull from, and then finally deploy to production
[11:05]
pharveyw00t, I committ0red to ur githubs [11:06]
SvenDowideitexcellent [11:06]
pharveySvenDowideit, and that's what we were doing, and then we ran out of VM resources, and then we weren't, and now we are again :-) [11:06]
SvenDowideitgrin [11:07]
pharveyBut even having a staging area doesn't mean I want to deal with everybody's checkins all over ~500 modules just for the sake of taking care of the few things I want to focus my attention on [11:07]
SvenDowideitoh, i know, a truley managed deployment strategy is horribly timeconsuming
but :p
[11:07]
pharveySure, but I don't think "deploy the latest code of everything all at once, or deploy nothing" is part of that strategy [11:09]
SvenDowideityeah - your normal workflow is quite illegal, and >user exception< [11:09]
pharveySo the moral of the story, is don't run from a git checkout. Release things properly, damnit >:) [11:10]
SvenDowideity, you could of course get an enterprise fosiki contact
and then use apt-get from your own fosiki foswiki repo with managed releases of code
but it would make me frightened
[11:10]
pharveyyou would do that with trunk core?
and MongoDBPlugin?
[11:12]
SvenDowideityup
and every other extension you'd deploy
[11:13]
pharveyeven SemanticLinksPlugin? The bugs! [11:14]
SvenDowideitbasicaly, I have a per-client Extensions repo that they can install from
and from that I create a per-client debian repo
so things get staged from svn/git to ClientExtensions, and then staged to the repo
and for laughs, I then use git to version the /var/lib/foswiki dir
so that i can do hotfixes if needed
so far no client has made theor own packages to push to their extensions, but one day :)
[11:14]
pharveyIt *has* been fun using git to keep prod & testing data/pub/src in sync [11:17]
SvenDowideiti can't imagine :) [11:18]
pharveywhen somebody accidentally develops a topic on testing & prod simultaneously, and I do a pull. It skips updating webs that would've been clobbered in the rsync days
getting trunk released is a concern we have
[11:19]
SvenDowideitits inevitable, but yeah, me too [11:21]
pharveyI should be running nightly builds, to see how things break under our configuration [11:22]
SvenDowideitand writing site specific unit tests :/ [11:22]
pharveyhope to commit the unicode selenium tests in my week off (started today :-) [11:22]
SvenDowideitweek off and foswiki-ing
mad-sad-bad
but glad
[11:22]
pharveyI'll be offline mostly until monday, after tonight [11:23]
SvenDowideitha, like i'll beleive that [11:23]
pharveyI think I have enough parts to fix one of my helis :)
Temi returned yesterday. Doing more phylowidget & dna stuff.
[11:24]
SvenDowideitomp. i wrote code that makes sense..
throw Expt() unless haveAccess() if (defined()...)
guess that means perl is dumber than i ame
or i just missed out a brace
[11:25]
........ (idle for 39mn)
pharveySvenDowideit: return template_function( 'getNextRevision{', @_ ); - extraneous brace? [12:06]
SvenDowideitthere are a few y
i'm just fixing a pile of syntax
one mo
ok pharvey pushed
now it compiles and is not totally wrong
[12:13]
pharveyok [12:14]
SvenDowideitthou, yes, thats another bug :)
goon, fix it :)
mmm, go-on - i wonder if 'goon' is international
as in http://en.wikipedia.org/wiki/Box_wine
[12:14]
pharveypushed :)
SvenDowideit: okay, I've read most of Store.pm, now I'm trying to appreciate template_function
[12:16]
***Colas has quit IRC (Ping timeout: 258 seconds) [12:18]
SvenDowideitgiggle
which is to say 'i've read the docco' but the code doesn't bear any resemblance to it
(er, tic)
[12:18]
pharveyso... template switchboard thing, this is instead of subclassing Fosiki::Store? Extensions will be able to override methods piecemeal ? Or something... [12:22]
SvenDowideitno
its because most of the code for each funciton in there is identical
[12:23]
pharveyoh, of course [12:24]
SvenDowideitas all Foswiki::Store does, is listener style (er, and usermapper) delegate to the actual store impls [12:24]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Store [ (Foswiki login) PerlDoc ] [12:24]
pharveyyeah, actually I did something vaguely similar in my addressGET/addressPUT code [12:24]
SvenDowideitI'm going to work on optimising it later, atm, i'm more working on trying to test the idea of the API and wire it up so it actually works
mind you, F::Address isn't quite cleaver enough yet
[12:25]
pharveyyou want it to understand your various constructor forms
?
[12:26]
SvenDowideity
i almost wanted new() to grok that if the input isa F::Address to just return it, but that would be mad too
[12:26]
pharveywhat should happen if it gets a ->new($addrObj) [12:27]
SvenDowideitsnap :) [12:27]
pharveyyeah, I've been reading your usage [12:27]
SvenDowideitso i'm still thinking [12:27]
pharveyand trying to think of a nicer way :) [12:27]
SvenDowideitand my times up soon, so i'll just think about it first
likely i need to change my end a little
maybe F::Address->new(magic=>something)
[12:28]
pharveythat could work [12:28]
SvenDowideitwhere something can be string, arrayref hashref or F::Address subclass
but the last would probly be bad :)
[12:29]
pharveyeither way, you want ->new(string => 'Foo.Bar@3') to die [12:29]
SvenDowideitand hashref is redundant, but :)
i do?
why?
[12:29]
pharveywell, I feel as if you'd rather ->new('Foo.Bar@3') to do the right hting
without the string => part
[12:30]
SvenDowideiti _like_ the explicit to exist [12:30]
pharveyok [12:30]
SvenDowideitbut for there to be magic
explicit should be faster if possible
[12:30]
pharveyif scalar(@_) == 1.... [12:30]
SvenDowideitwhereas magic is for notmal users
possibly, or %
[12:30]
LynnwoodMorning gang - I've got a brand new installation with all current plugins and am getting problems with twisties. Fire bug shows this error: "foswiki.Pref is undefined" and a search for that on foswiki.org turns up this task: http://foswiki.org/Tasks/Item9836 [12:31]
SvenDowideitLynnwood: iirc update the plugin [12:31]
Lynnwood"Item9836: JavascriptFiles/foswikiPref doesn't always get expanded " [12:31]
FoswikiBothttp://foswiki.org/Tasks/Item9836 [ Item9836: =JavascriptFiles/foswikiPref= doesn't always get expanded ] [12:31]
SvenDowideitbut i dunno - too far away from that code atm [12:31]
LynnwoodSvenDowideit: Which plugin? I think all the plugins are current. [12:32]
SvenDowideitthe one thats not :) [12:32]
LynnwoodLooking at that task, it appears that nothing was changed. [12:32]
SvenDowideiti thought there was something, but i'm not sure [12:33]
LynnwoodLynnwood goes back to double check.
yea, unfortunately, all is current :-\
[12:33]
SvenDowideitmmm, so pharvey has seen it
but micha didn't reproduce it successfully so he closed it :/
worth trying pharvey's patch
[12:37]
***MichaelLorenzen has quit IRC (Quit: Page closed) [12:38]
SvenDowideitSvenDowideit don't know nothin
and has to go soon
[12:38]
LynnwoodSvenDowideit: are you still in Australia? [12:38]
SvenDowideitnope
been in zuri for ~25 days :)
[12:39]
Lynnwoodnice
enjoying it?
[12:39]
SvenDowideitand finding myself doing 99% child time
i much prefer this town, so yeah
[12:39]
Lynnwoodah yes. how long are you going to be there.
?
[12:39]
SvenDowideittil Jan7 or something [12:39]
pharveyLynnwood: are you using natskin or something else other than patternskin? [12:40]
Lynnwoodpharvey: natskin
i'm updating a site that used NatSkin
and didn't want to rebuild the skin
[12:40]
pharveyso it's "current" natskin? [12:41]
Lynnwoodalthough it seems that MichaelDaum is letting NatSkin "go to seed" [12:41]
SvenDowideitSvenDowideit wonders why F::Address->isValid() returns a type [12:41]
Lynnwoody, current natskin although i did customize the view template to fix the attachment table problem [12:41]
pharveySvenDowideit: I guess if it couldn't figure out a type, it'd return undef, and a type name otherwise - which isn't really a bool :) [12:42]
LynnwoodItem11063 [12:42]
FoswikiBothttp://foswiki.org/Tasks/Item11063 [ Item11063: Fix attachments table ] [12:43]
SvenDowideitSvenDowideit continues to be weirded out by your brain [12:43]
pharveyme too :(
SvenDowideit: so, make it return 1/0?
Lynnwood: If I were you I'd re-open Item9836
[12:43]
***Colas has joined #foswiki [12:45]
SvenDowideiter
pharvey: i need an isType()
[12:46]
LynnwoodI guess i will. thanks for recommendation. [12:46]
pharveySvenDowideit: I think that's isA - which is a dumb method name [12:46]
SvenDowideitso its all massredundancy :)
and no
its confuesling
isA says
Returns true if the address points to a resource of the specified type.
[12:47]
pharveyand what would isType do differently? [12:48]
SvenDowideiti want to ask an addres 'whatareyou' [12:48]
pharvey$address->type() [12:48]
SvenDowideitelse, I'd be calling isValid logic 12 times
er
type() just returns $addrs->isValid
[12:48]
BabarSvenDowideit: what did you do with github? [12:49]
SvenDowideitso, like, what the? [12:49]
pharveytype() returns the address object's type [12:49]
SvenDowideitsub type { my ($this) = @_;
return $this->isValid();
[12:49]
pharveyI guess I should've made isvalid private [12:49]
***gac410 has joined #foswiki [12:50]
SvenDowideitmore more likely, make isValid retrn $this->type()
so that the impl makes sense
[12:50]
pharveyisValid validates that the address is valid... [12:50]
gac410g'morning all [12:50]
pharveymorning george [12:51]
SvenDowideitpharvey: odd, the docco says
Returns true if the instance addresses a resource which is one of the following
which is a tad vague
but then goes on to list the typenames
whereas type(), which one could expect to return a type, doesn't saywhat it returns, and given the impl is just to call isValid()
is kinda irrelevant
[12:51]
pharveyso really: rename isValid to type() [12:53]
SvenDowideitnow of course, i need to a) figure out why my F::A's are not valid, because F::A isn't telling me [12:53]
LavrArthurClemens could I attract you to have a stab at Item10989? [12:53]
FoswikiBothttp://foswiki.org/Tasks/Item10989 [ Item10989: Cannot confirm validation request of CSRF protection if validation method is 'embedded' - no buttons displayed ] [12:53]
SvenDowideitpharvey: that presumes that i actually grok the intent of the code? [12:53]
LavrOne of the blockers for a 1.1.4 release and seems like a skin issue [12:53]
gac410Hi Lavr, anything I need to look at? I'm not going to commit my recent email regex change to 1.1.4 - too risky. [12:54]
pharveySvenDowideit: I'm not implying you do anything [12:54]
gac410Item11059 [12:54]
FoswikiBothttp://foswiki.org/Tasks/Item11059 [ Item11059: Email address followed by a dot generates email link with dot included ] [12:54]
pharveySvenDowideit: running with ASSERTs?
there's a TRACE and TRACE2
[12:55]
SvenDowideitSvenDowideit marvels at your (and my) use of more than one trace magic number, when we could .... :)
course, it looks like turning on trace isn't going to help me with the store unit tests
meh, times up, see you all in quite a while
[12:56]
pharveyok
thank you for the feedback on Foswiki::Address
[12:57]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Address [ (Foswiki login) PerlDoc ] [12:57]
pharveyhave fun :) [12:57]
Lynnwoodhmmm. this is a wee bit discouraging. I just updated this site from 1.0.9 to 1.1.3. One particular page that has somewhat involved search which took ~10 seconds to load before now takes ~80 seconds to load. [12:57]
pharveyLynnwood, are you able to describe the search? [12:58]
Lynnwoodwell, let me see... [12:59]
pharveyalso, are you the same type of user (admin vs non-admin) on both? [12:59]
Lynnwoodyes, same type of user in both cases
i'm reviewing the page to see what kind of nested searches might be there...
[12:59]
LavrI do not recall a general issue with slower searches so it must be something particular with your search [13:00]
***mfladischer has quit IRC (Remote host closed the connection) [13:01]
pharveyI've found the new pager feature useful on these slow searches, but may not be suitable for many circumstances [13:01]
Lynnwoodi may try that
i'm not seeing anything that unusual. there are actually three different searches so i may try removing them one at a time to see if one is the problem
[13:02]
LavrA nested search that builds a huge result set that the machine does not have enough RAM for could also be a root cause [13:02]
Lynnwoodnone of the result sets are that large
we're only talking ~100 records
[13:03]
pharveyLynnwood: we (well, SvenDowideit and CDot) have been doing a lot to improve performance for next release of Foswiki. If there's a perf regression 1.0 -> 1.1, that'd be a great test case for us to compare with for trunk. [13:03]
Lynnwoodok [13:04]
pharveyis it a QuerySearch?
Is it a nested $percntINCLUDE ?
[13:04]
Lynnwoody to query search [13:04]
pharveyis it rendering a lot of [[links]] ? (just brainstorming :-)
if you can share the search with us, that would be very useful
[13:05]
Lynnwoodthere are quite a few links but no double bracket. all html [13:05]
pharveyas in <a href ...> ? [13:05]
Lynnwoodsure. let me remove restrictions on this web.
yes to <a href=...
[13:05]
pharveyhrm. if you're wanting hair-brained suggestions... wrapping the output in a pair of <literal>...</literal> might exclude most unwanted renderer overhead
Lynnwood: also wondering, did the 1.0 site use the same {Store}{SearchAlgo} (bruteforce/nativesearch), and {Store}{Implementation} (rcswrap/rcslite)
gotta run, raise-a-task or make a sandbox page, or something, somewhere so we can add to our tests
don't necessarily need your data, but at least need to see what the search is doing
[13:07]
Lynnwoodpharvey: thanks for suggestions! i'll keep at it [13:10]
pharveyg'night [13:12]
***pharvey has quit IRC (Quit: ChatZilla 0.9.87 [Iceweasel 6.0/20110815162918])
mark_doe has joined #foswiki
[13:12]
.... (idle for 16mn)
Lynnwood has quit IRC (Ping timeout: 268 seconds) [13:30]
..... (idle for 24mn)
Lynnwood has joined #foswiki [13:54]
eberon has joined #foswiki
mark_doe has quit IRC (*.net *.split)
MartinCleaver has joined #foswiki
MartinCleaver has quit IRC (Changing host)
MartinCleaver has joined #foswiki
MartinCleaver_ has quit IRC (Read error: Connection reset by peer)
mark_doe has joined #foswiki
[14:01]
gac410Hm. I "fixed" Item10883 by adding comments to LocalLib.cfg.txt Foswikirev:11927 Any opinions - is this sufficient to close the task in 1.1.4 [14:08]
FoswikiBothttp://foswiki.org/Tasks/Item10883 [ Item10883: Windows-safe paths ] http://trac.foswiki.org/changeset/11927 [ Changeset 11927 ? Foswiki ] [14:08]
Babargac410: also, $foswikiLibPath = 'C:\Program Files (x86)\Apache Software Foundation\Apache2.2\cgi-bin\wiki\lib'; should work just fine [14:14]
***MartinCleaver has quit IRC (Remote host closed the connection)
MartinCleaver has joined #foswiki
MartinCleaver has quit IRC (Changing host)
MartinCleaver has joined #foswiki
[14:14]
Babarcatching the one with the double-quotes is way too hard if not un-doable [14:15]
gac410Ah - double quotes. I didn't notice that. [14:15]
Babaryes, double-quotes, means it will try to evaluate \x as an escape character, like \n [14:16]
gac410So I'll just leave the task as 'fixed' The warning should be sufficient even though it's not accurate then. It would just make it worse by saying to use single quotes when entering windows paths. [14:16]
Babarso when there is no escape character, we might be able to catch it, as you should get: Unrecognized escape \P passed through at -e line 1.
yeah, but we might consider putting single-quotes there by default
to try and avoid this kind of issue
[14:16]
***GithubBot has joined #foswiki [14:17]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/fCUl3A
[foswiki/master] Item11069: compatibility fixes - MichaelDaum
[14:17]
***GithubBot has left [14:17]
FoswikiBothttp://foswiki.org/Tasks/Item11069 [ Item11069: compatibility fixes ] [14:17]
gac410Ah - good point. I'll re-open it and commit single quotes. [14:17]
Babarthanks George [14:29]
gac410Babar, Can you look at what I've done for Item11059. Changes to Render always scare me. I think I'll hold on that one for 1.1.5. [14:32]
FoswikiBothttp://foswiki.org/Tasks/Item11059 [ Item11059: Email address followed by a dot generates email link with dot included ] [14:32]
***GithubBot has joined #foswiki [14:34]
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/OmcfVQ
[foswiki/Release01x01] Item10883: single quotes avoids issue - thx babar - GeorgeClark
[14:34]
***GithubBot has left [14:34]
LynnwoodSvenDowideit: you still around? [14:42]
BabarBabar will start trolling, but why don't we use CPAN for that, tools like Email::Valid? [14:44]
***ArthurClemens has quit IRC (Quit: ArthurClemens)
GithubBot has joined #foswiki
[14:44]
GithubBot[foswiki] foswiki pushed 3 new commits to master: http://git.io/MCWHwQ
[foswiki/master] Item9978: latest changes - MichaelDaum
[foswiki/master] Item4912: latest changes - MichaelDaum
[foswiki/master] Item11072: add view template defaults for more tools in System - MichaelDaum
[14:46]
***GithubBot has left [14:46]
FoswikiBothttp://foswiki.org/Tasks/Item9978 [ Item9978: initial checkin of WikiWorkbench ]
http://foswiki.org/Tasks/Item4912 [ Item4912: ClassificationPlugin: initial version ]
http://foswiki.org/Tasks/Item11072 [ Item11072: add view template defaults for all tools in System ]
[14:46]
Babarwe could also use the pattern from Jeffrey Friedl, which is in Mail::RFC822::Address [14:46]
ok, threw a stone in the pond. Now I'll get the popcorn and see it ripples.
"it ripples" or "its ripples" btw?
[14:52]
gac410See it ripple, or see the ripples. probably the ripples better because it refers to the pond, not the popcorn. [14:53]
There is also Email::Address - RFC 2822 Address Parsing and Creation -
implements a regex-based RFC 2822 parser that locates email addresses in strings and returns a list of C<Email::Address> objects found.
Alternatley you may construct objects manually. The goal of this software is to be correct, and very very fast.
[14:58]
***GithubBot has joined #foswiki [15:01]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/iIq7Ig
[foswiki/master] Item11073: - MichaelDaum
[15:01]
***GithubBot has left [15:01]
FoswikiBothttp://foswiki.org/Tasks/Item11073 [ Item11073: usability improvements ] [15:01]
gac410Babar, I'd have to dissect the regexes - but one concern is the task of finding an address is different from validating a string that might already be an address. So Email::Address might be a better match than Mail::RFC822::Address [15:08]
Babargac410: yes, I'm find with anything. I saw some from Ricardo Signes, some from Miyagawa...
Babar doesn't see the difference...
if you have a regex to test the validity of an email address, then you can search for this regex inside your topic to find all email addresses
[15:08]
gac410Some Name String <user@someplace.com> Where does the Name String start when embedded in text? [15:11]
Babarthat's not the wiki way to do it :)
it should be written: [[user@someplace.com][Some Name String]]
but that doesn't work today
[15:12]
gac410It does with mailto:
My comment was the regex to validate an email will accept Some Name String <user@someplace.com> but we don't want to match that when scanning topic text.
[15:13]
***GithubBot has joined #foswiki [15:18]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/zPtozA
[foswiki/master] Item11074: added compatibility layer to non-official internal apis taking out and putting back blocks; some general code cleanup - MichaelDaum
[15:18]
***GithubBot has left [15:18]
FoswikiBothttp://foswiki.org/Tasks/Item11074 [ Item11074: add compatibility to newer foswikis ] [15:18]
***MartinRowe has quit IRC (Quit: Leaving.)
wdenk has joined #foswiki
wdenk2 has quit IRC (Ping timeout: 260 seconds)
denisr has quit IRC (Quit: Parti)
denisr has joined #foswiki
GithubBot has joined #foswiki
[15:20]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/HjK8zQ
[foswiki/master] Item11075: fixed perl rookie error init'ing the split param - MichaelDaum
[15:30]
***GithubBot has left [15:30]
FoswikiBothttp://foswiki.org/Tasks/Item11075 [ Item11075: perl rookie error initializing the split param ] [15:30]
***foswiki_irc9 has quit IRC (Quit: Page closed) [15:35]
gac410Babar, Email::Address finds invalid addresses. invalid IP addresses, truncates at embedded .. incomplete domains, (joe@home) also misses some addresses [15:36]
***nick_ has joined #foswiki [15:38]
nick_Afternoon all.
I have bought a new laptop, so I am going to migrate my local personal wiki.
Should I add myself as a user to the new wiki before copying over all the old pages?
[15:38]
gac410are you installing the same version of Foswiki? [15:40]
nick_I imagine so.
My old one was updated very recently.
[15:42]
gac410You could probably just copy the web root and everything under it then, [15:43]
nick_Well
I wanted to change the password types.
[15:43]
gac410As long as you copy the Main and data/.htpasswd file then all the users will get copied.
So copy everything over, then use configure to change password type and use System/ResetPassword to reset them. Otherwise you will loose email addresses in .htpasswd file.
[15:43]
nick_Well, I am the only user [15:44]
***GithubBot has joined #foswiki [15:45]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/HbskxA
[foswiki/master] Item11076: fixed rendering +value formfields; added $origvalue - MichaelDaum
[15:45]
***GithubBot has left [15:45]
FoswikiBothttp://foswiki.org/Tasks/Item11076 [ Item11076: error rendering +value formfields ] [15:45]
gac410If you register first, then copy over directories - don't replace .htpasswd then so you keep the new password format. [15:46]
nick_But I guess just copying everything over is probably the simplest.
OK
[15:46]
gac410Upcoming 1.1.4 will let you change password encoding without instantly invalidating the old passwords. But with only a single user, not much help. [15:48]
nick_I still find that the .htpasswd file is weird. [15:49]
gac410what do you mean? [15:49]
***Lavr has quit IRC (Ping timeout: 258 seconds) [15:49]
nick_WikiName:Enter your WikiName. (First name and last name, no space, no dots, capitalized, e.g. JohnSmith). Cancel to register if you do not have one.:<hash>:e@mail
Is an example line.
[15:50]
gac410It's a "CSV" file using colon as the delimiter. Format defined by Apache. We extended with extra column for email address. [15:50]
nick_I don't think the "Enter your WikiName..." should be in there. [15:50]
gac410Ah - You are using digest authentication - the most secure. The 2nd field is the "Realm" and Apache displays the realm in the Login prompt.
So by setting Realm to a meaningful message, the apache login is a bit more friendly.
[15:51]
nick_Oh
I see
[15:51]
gac410You can set the Auth Realm to whatever you want - but until 1.1.4 comes out, that will invalidate all passwords, because the password hash uses the realm when generating it.
With Apache login, the login prompt says: A username and password are being requested by http://your.site.com The site says: (The realm is displayed)
So if you set realm to "My Laptop" Prompt woudl be .... The site says: My Laptop... and password file would contain WikiName:My Laptop:<hash>:email
[15:52]
nick_Will there be any problems with extensions just copying my old /var/foswiki?
Given that I do them through apt-get instead of through the configure page?
[15:58]
gac410if you installed any CPAN or other external dependencies, then they have to be re-installed. But for the stuff in foswiki/lib etc you should be okay.
Running the extension installer will point out possible missing dependencies.
[15:59]
***Lavr has joined #foswiki
Lavr has quit IRC (Changing host)
Lavr has joined #foswiki
sir_tyrion has quit IRC (Remote host closed the connection)
[16:01]
gac410nick_: Yikes apt-get. Right. You should use .deb packages for everything - and reinstall with package manager.
If you just copy /var/foswiki, you will not update the package manager status. So my answer changes. I assumed Laptop == Windows. (As I sit here using my Gentoo laptop)
Mixing between configure installed extensions, copied directories / tarball based install and .deb package install is not good. Stick with only one method for consistency.
[16:05]
nick_OK
So it would be best to just copy data and pub?
and then use apt-get to install all the extensions again?
[16:10]
gac410Yes - That way apt-get will update any stale topics, etc in data and pub. So apt-get the core, migrate data, pub, the apt-get the extensions. (I think - I have not used the .deb packages)
Anyone else here who uses debs would be better to comment than I am.
[16:11]
***Colas has quit IRC (Ping timeout: 258 seconds) [16:24]
MichaelDaum has quit IRC (Remote host closed the connection) [16:29]
sir_tyrion has joined #foswiki [16:38]
.... (idle for 16mn)
gac410 has left [16:54]
denisr has quit IRC (Quit: Parti)
GithubBot has joined #foswiki
[16:59]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/f5KlAg
[foswiki/master] Revert "Item11059: improved email address matching" - GeorgeClark
[17:01]
***GithubBot has left [17:01]
FoswikiBothttp://foswiki.org/Tasks/Item11059 [ Item11059: Email address followed by a dot generates email link with dot included ] [17:01]
...... (idle for 29mn)
***terceiro has joined #foswiki [17:30]
.......... (idle for 45mn)
nick_ has quit IRC (Quit: leaving) [18:15]
uebera|| has quit IRC (Excess Flood)
uebera|| has joined #foswiki
nick_ has joined #foswiki
[18:20]
nick_Hmmm
Can someone remind me how I can reset the admin password.
I deleted the $Foswiki::cfg{Password} = '?'; line in my LocalSite.cfg, but bin/configure still asks me to log in.
[18:22]
SvenDowideit: are you awake? [18:31]
***eberon has quit IRC (Quit: eberon) [18:39]
.... (idle for 17mn)
nick_Hmm
Is there a problem that changing the password encryption will render the admin password useless?
[18:56]
.... (idle for 17mn)
***CDot has joined #foswiki
CDot has quit IRC (Client Quit)
[19:13]
...... (idle for 28mn)
ajscam has joined #foswiki
ajscam has quit IRC (Client Quit)
[19:44]
....... (idle for 31mn)
uebera|| has quit IRC (Changing host)
uebera|| has joined #foswiki
uebera|| has quit IRC (Excess Flood)
uebera|| has joined #foswiki
[20:17]
uebera|| has quit IRC (Changing host)
uebera|| has joined #foswiki
ArthurClemen has joined #foswiki
[20:26]
.... (idle for 17mn)
SvenDowideitmmm, i get the feeling people havn't been running the unit tests
and my nightly server died a few days after i left :(
[20:45]
nick_Morning SvenDowideit
I solved my problem. It involved forgetting to --purge when uninstalling foswiki.
[20:52]
SvenDowideitnick_: excellent :)
whereas i need to goto bed :/
nite all
[20:56]
nick_Isn't it the morning there? [20:57]
.... (idle for 15mn)
***ArthurClemen has quit IRC (Ping timeout: 252 seconds) [21:12]
........ (idle for 38mn)
nick_ has quit IRC (Quit: sleep) [21:50]
...... (idle for 27mn)
ArthurClemens has joined #foswiki [22:17]
.... (idle for 17mn)
ArthurClemens has quit IRC (Ping timeout: 258 seconds) [22:34]
terceiro has quit IRC (Ping timeout: 240 seconds) [22:42]
.... (idle for 16mn)
terceiro has joined #foswiki [22:58]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)