#foswiki 2012-02-27,Mon

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

WhoWhatWhen
pharveySvenDowideit: I doubt this can be called 'best practice' - but here it is, nonetheless http://foswiki.org/Support/BestPracticeTip28 [00:03]
SvenDowideitgrin
it _will_ be a best practice.... when enough people fix it
[00:03]
pharveymy main concern was to avoid re-writing /bin/rest and /bin/query - as these (usually?) aren't returning HTML, and mod_proxy_html was bombing out on them ('invalid html')
really, mod_proxy_html is in such a bad state IMHO, that any solution involving it should really re-examine the whole situation to see if some other approach would be better
it totally trashes the DOCTYPE, it tries to re-write responses that clearly aren't HTML ( Content-Type headers say "application/json", for example)
[00:04]
.... (idle for 18mn)
SvenDowideitpharvey, so you're really saying that it can't and doesn't work ? [00:23]
pharveyit does work but I have no faith I won't encounter other issues down the track [00:23]
SvenDowideitok, so a full selenium suite is needed there too [00:23]
pharveyI guess I'm just saying: if you have another option, then use it
I could be wrong, of course
pharvey is happy you're adventuring down this path too, so I'm not alone :P
[00:23]
SvenDowideitSvenDowideit will need to spend more time researching - but not now :)
i've used it for aggregating some node.js services
[00:24]
pharveywith link re-writing? [00:24]
SvenDowideityup
pub pure html http stuff
oh
[00:24]
pharveywell, as usual, perhaps I'm just the lucky psycho who can trigger all the corner cases all at once, while everybody else has no problems :P [00:25]
SvenDowideitand i'm proxying from-to a different server [00:25]
pharveyI'm not sure that the config I presented locks you into same-or-different server scenarios [00:26]
SvenDowideitwhereas yours looks like you're basically doing a proxy as a https-able rewrite
<LocationMatch "/bin/(rest|query)(auth)?">
eeek - rest can return html, so that'll be risky one way or the other :/
talk about fraught
[00:26]
pharveyindeed :(
it would be *much* easier if mod_proxy_html took notice of Content-Type headers
and only re-wrote HTML-ish things
[00:28]
SvenDowideitin my case, I have a dozen servers but my dumb dsl router only port forwards by IP address to one server
argh :) another thing i could be doing
i wanted to think about re-writeing mod_fancy-pants-index
[00:29]
pharveyOTOH, what if you have a JSON fragment with realwiki.org/foo in it - perhaps a dumb regex would be better [00:29]
SvenDowideitas it allows custom header&footer, but not customiseing the bit inbetween properly
yeah, ok, so we're both more worried than releived
[00:29]
pharveydoes google's CDN not host jquery-ui's css? Seems to only have .js ... [00:30]
SvenDowideiti'll need to see how this one goes (shame its being trialed on a client that isn't going to cope well :/
really? ouch
i wanted to make a mod to our stuff to use google :)
[00:30]
pharveyoh, it does.
pharvey just can't read
[00:31]
SvenDowideitoh dear, we have a shiny new prime minster
her name is the same one as yesterday
[00:42]
pharveyhaha [00:43]
..... (idle for 21mn)
SvenDowideitoh pharvey !
another thing to try to remember
addng versions syntax to TOM should make it possible to say
SEARCH{"1" topicexclude="WebAtom@1 WebChanges@1 WebCreateNewTopic@1 WebHome@1 WebIndex@1 WebLeftBar@1 WebNotify@1 WebPreferences@1 WebRss@1 WebSearchAdvanced@1 WebSearch@1 WebStatisticsWebTopicList@1"
how extra special cool is that?
arghle
why does the Sandbox create topic say 'use WikIWrod notation
rather than using the createjs thuff
oh wow.
http://foswiki.org/Sandbox
is _not_ the 1.1.4 creator
and on my 1.1.4, if i click create ugint he AutoINC name, then use browser back to go back to it, the AUTOINC is replaced with the word Jump
[01:04]
gac410Hm. our Foswiki:Support.FAQ seems to be a bit broken. I added a new Foswiki:Support.Faq68. When I did the initial create it had me ctrl-click select multiple categories - Installation, debugging, etc. But none of them are in the saved topic, and the form is different. [01:17]
FoswikiBothttp://foswiki.org/Support.FAQ [ FAQ ] http://foswiki.org/Support.Faq68. [01:18]
gac410Hm. Subject didnt' get carried through from the creator.
The Creator prompts for a field in FAQForm, but the topic is saved with BasicForm.
[01:19]
SvenDowideithmmmm, so the patternskin topic creator is the real one, and the default one is crud
booooooo
[01:28]
.... (idle for 15mn)
gac410Do we have a bug or a ...? If I edit a topic, like pharveys Foswiki:Support.Faq19, the Form doesn't give me a multiple-select for Subject. So I can't select more than one category - which can be done when using the creator. [01:43]
FoswikiBothttp://foswiki.org/Support.Faq19, [01:43]
gac410Faq19 already has multiple subjects assigned, but I can't select multiple on Faq68 [01:44]
...... (idle for 27mn)
BabarArthur: I seem to have something running the unit tests properly on OS-X :) [02:11]
gac410Hm. Regarding my feat proposal Foswiki:Development.ImplementAddMeToAdminButton - CDot says "FWIW I regard any non-standard interpretation of redirectto as a bug." Sven's interpretation was if it's not documented, adding redirectto to the addUserToGroup / removeUserFromGroup actions would be a feature. [02:16]
FoswikiBothttp://foswiki.org/Development.ImplementAddMeToAdminButton [ ImplementAddMeToAdminButton ] [02:16]
gac410so - would slipping in redirectto to 1.1.5 be a bug fix or a process violation :-D [02:17]
.... (idle for 16mn)
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/S4B3kA
[foswiki/master] Item11518: Add bcrypt encryption - GeorgeClark
[02:33]
***GithubBot has left [02:33]
FoswikiBothttp://foswiki.org/Tasks/Item11518 [ Item11518: Add BCrypt encryption to =HtPasswdUser.pm= ] [02:33]
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/rVuDgg
[foswiki/Release01x01] Item11518: Add bcrypt encryption - GeorgeClark
[02:46]
***GithubBot has left [02:46]
pharveygac410: both :P (/me thinks 1.1.5 would be better for it, but isn't strongly opinionated) [02:59]
SvenDowideitgac410, the big rules are: 1. the RM has final say and 2. we're here for the betterment of all
imo, it is a feature-ette, but i would not consider it a process violation if it went in.
as the process is not a mandatory rule, its an advisory tool to help us make a better result
[03:04]
gac410yeah, adding redirectto is quite minor, and IMO should probably be supported on any script that accepts POST. But the need on addUser / removeUser is pretty obvious. [03:13]
SvenDowideiti'm puzzled why it can't be added in one place in the core
and thus it accidentally works.
[03:14]
gac410I'll see if I can extract the redirectto parm validations from current implementations so I don't open up anything new, and add it to the two actions. [03:15]
SvenDowideitbut i've not looked at the code :)
snap-ish i guess :)
[03:15]
gac410yeah - but changing core to support it automagically everywhere is probably higher risk. Definitely wouldn's want to slip that in.
Most of the function is already abstracted out, but it's up to the script to call it. What I'm not sure about is validation.
[03:15]
SvenDowideitpass - my opinion is generally the opposite, until i prove that it affects too many things [03:16]
gac410'cept rest implements endPoint, not redirectto. and some others "claim to" but don't. so I suspect making it automatically common will be a bit challenging. I'll add SMELL to say it should be moved into core. [03:18]
SvenDowideitgiggle :) [03:18]
gac410In the next day or two I'm going to build a 1.1.5beta for Foswiki.org - so I can be sure the 2/29 file rotations really are fixed. [03:20]
.... (idle for 16mn)
SvenDowideitSvenDowideit is clearly testing 1.1.4 atm, and boy do we have annoying quibbles
the customisation docco for pattern skin , and the theme browser are either busted, or my install is :/
[03:36]
gac410yup [03:37]
SvenDowideitmmm, and ATTACHURL should be taken out back and shot
we should make its eval use the web&topic that its wrtten on, not the requested one
[03:37]
pharveyargh, attachurl uses basetopic?! [03:39]
SvenDowideitalways has
its the most pointless macro ever
mmm, USERSTYLEURL is used dead last in the css?
making it also pointless?
SvenDowideit discombobulates
oh, of course, the css i'm applying uses HTML
whereas some nupty thought 'lets define custom css classes for each of them'
[03:39]
pharveypharvey thought in CSS the last-one-wins (assuming equal selector specificity) [03:44]
SvenDowideitthats the problem [03:44]
..... (idle for 20mn)
oh dear. [04:04]
gac410Now what did you find. [04:07]
SvenDowideitin the 2004 version string names of webs linked.
so System linked to System.WebHome
and that kicker
you can't define a custom WebLeftBar taht applies to all webs that don't have one
argh! and um, one i reported that people have trouble reproducing
goto http://localhost:8080/foswiki/bin/edit/System/WebPreferences
get the oops
the 'OK' link goes to.... WebHome
there's quite a number of oops screens that give up too easily
[04:07]
gac410Yeah - a lot of the oops screens go to webhome. Noticed it with the testing I was doing for the add/remove user
**Really** annoying that you can't get back to where you were.
[04:11]
SvenDowideitSvenDowideit wants a soduko to admin on the Main.SitePrefs
ya
[04:12]
gac410Add my button on Foswiki:Development/ImplementAddMeToAdminButton [04:13]
FoswikiBothttp://foswiki.org/Development/ImplementAddMeToAdminButton [ ImplementAddMeToAdminButton ] [04:13]
gac410in configure, since it's reasonably protected, dyt i's safe to just m/^(.*)$/ untaint a filename. CDot's checkers for Htpasswd file have taint errors. [04:15]
SvenDowideityou mean to make sure no-one scripts a js exploit into the filesystem directory? [04:16]
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/psQiog
[foswiki/Release01x01] Item11563: Change default .htpasswd encoding - GeorgeClark
[04:16]
***GithubBot has left [04:16]
FoswikiBothttp://foswiki.org/Tasks/Item11563 [ Item11563: Implement ChangeDefaultHtpasswdEncoding ] [04:16]
gac410Nah - I can't imagine that attack. Just being lazy and want to fix the taint issue pharvey found before we forget about it. [04:17]
SvenDowideiti can imagine that attack - and blooming debian developers actually look for it at times [04:18]
gac410So... Someone gets root access to the file system, and changes a directory name to <script>...</script> and configure displays that somehow? /me doesn't understand it. [04:21]
SvenDowideitthe first worry is taht someone manages to create a softlink to a file they do have write to
as the wiki has often got liberal-er perms to create a topic in a web
and then....
[04:22]
gac410I''m still confused. This is the field $Foswiki::cfg{Htpasswd}{FileName} - The checker checks to see if create is allowed. and gets a taint error. [04:22]
SvenDowideitthus brining an avenue to grab the configure pwd
on - i read 'dyt i's safe to just m/^(.*)$/ untaint a filename'
and my answer is 'er, sounds dodgey'
ok, so the risk profile is not 'any random file'
[04:23]
gac410Okay - yes in foswiki proper. But in configure checker for what the admin entered into the Htpasswd filename - a simple untaint before checking write User is the admin, so they already can do evil [04:24]
SvenDowideityup, so not untainting a filename
you're untainting an admin configure web input
different kettle of bananas - sorry
[04:25]
gac410No - Anything referenced in $foswiki::cfg is from the file, not from the webui. Check happens on read, not before write. So value really should be untainted already. I have no idea why that one place is getting taint errors.
If $Foswiki::cfg{anything} is tainted, we'll have all sorts of issues.
[04:26]
SvenDowideitmmm
I'm setting WIKIWEBLIST in Main.SitePrefs and FINALIZING it
[04:31]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/nCTXiQ
[foswiki/master] Item11563: Change default .htpasswd encoding - GeorgeClark
[04:32]
***GithubBot has left [04:32]
SvenDowideitbut its being blown away with the Default one [04:32]
ok, so get this: [04:40]
gac410yeeesssss [04:40]
SvenDowideitWIKIWEBLIST is defined in System.DefaultPrefs and Main.SitePrefs, and is FINALIZED in Main.SitePrefs
I then define System.WebTopBar, which is used forall webs
when i then view a topic in Sandbox
the top bar is rendered using .... the value in System.DefaultPrefs
which i would have thought should never be true
[04:40]
gac410So System web doesn't use settings from Main.SitePrefs yikes [04:42]
SvenDowideitappears to be the case
we've had odd things like that wrt SKIN, but i always assumed it was the System WebPref - and didn't look hard
[04:42]
Babarstupid me... been wondering why my changes were doing nothing...
was editing the wrong checkout
[04:44]
gac410SvenDowideit: I can't recreate it. Set ASDF = default in DefaultPreferences, view in System.Blah. Then in Main.SitePreferences set ASDF = Main [04:45]
SvenDowideitdoh :) [04:45]
gac410Finalized or not - seems to work as expected. [04:46]
SvenDowideitand then you're putting the %ASDF% into a topic in System web that is brought in via templates to view ?
it might be specific to the way that pattern skin includes the webtopbar
[04:46]
gac410Well. Put it into a System topic yes.
Not via templates though.
[04:47]
SvenDowideitSvenDowideit cries into his spilt milk
as these things need chaning, but will have to wait for 1.2.0 :/
actually, the setting doesn't even work on other Main topics, just on the SitePrefs one
v spookey
i'll look at it some other time :/
crud, i'm going to need to fix this one this week too
oh well
[04:47]
gac410Okay - I added %INCLUD{"TestBlah"}% which expands %ASDF% to WebTopBar Then viewed Sandbox.WebHome Still working fine. [04:50]
SvenDowideitwell, that'll make this fasciniatin :/
ta - no idea wtf
[04:51]
gac410running release114+ [04:51]
SvenDowideiti'm running a 1.1.4.tgz
er
Preference settings local to your site should be set in Main.FoswikiPreferences? (this topic is pointed to by
what does that text mean ....
[04:51]
gac410Huh??? wherezitsaydat [04:52]
SvenDowideitSvenDowideit recons he's toasted the rpm's
DefaulatPrefs topic
[04:52]
gac410Main.SitePreferences. Never heard of Main.FoswikiPreferences [04:52]
SvenDowideitmeans that the cfg is s/TWiki/Foswiki/ somewhere
i'm guessing
[04:53]
gac410a long standing typo. I'll check/fix - about to check in another small doc change. [04:53]
SvenDowideitnope, not you
i think its a cfg from the conversion of the rpm code
[04:54]
gac410Yeah - not in 11 release branch [04:54]
SvenDowideitum
do we not protect the Main.AdminUser topic?
[04:55]
gac410Nope
wanname to fix
[04:56]
SvenDowideiti'm currently in 'test' mode - so i'm not even reporting, just blurting out :) [04:59]
BabarSven: you need to install few more modules onthe build server
saw my messages?
[04:59]
SvenDowideitI _should_ go back and make millions of tasks later :/
Babar, no, i saw nothin :/
[04:59]
gac410I assume ALLOWTOPICCHANGE can be AdmingGroup I'll just update it as a doc change. [04:59]
SvenDowideitya [04:59]
Babarlike... perlcritic, Locale::Maketext::Lexicon, ... [04:59]
SvenDowideitmmm, is there an ssh proxy?
one that proxies based on requested hostname?
[05:00]
Babarpharvey: said the same a month ago :)
you can do that with ssh config
[05:01]
SvenDowideitBabar, raise a task for pharvey and me to write one [05:01]
Babarlike: host *.cms ProxyCommand ssh lxplus nc ... is the kind of thing I use :) [05:02]
SvenDowideiti'm using mod_rpoxy to redirect requests that come in through my dumb adsl gw to the right vhost on the right vm [05:02]
Babarto write one?! [05:02]
SvenDowideitya :) [05:02]
Babaroh, you mean the other way around [05:02]
SvenDowideitso what i'd like, is that you ssh to sven_trunk.fosiki.com [05:02]
Babarbut you could still do what I said [05:02]
SvenDowideitwhich goes to my ssh_proxy [05:03]
Babaryou can't really do that on the server side [05:03]
SvenDowideitthat then bounces the req to the vm [05:03]
Babarbut you can easily do that on the client one [05:03]
SvenDowideitso you're saying that the ssh req does not contain the destination host? [05:03]
BabarMITM? [05:03]
SvenDowideityeah, if i get you ssh access to 2 bits
basically, yes, i want to implement my own MITM
[05:03]
Babaryou could also limit my ssh access to that host [05:04]
SvenDowideitas i am for http
oh, i know, but booooooo
[05:04]
Babarwith keys and command [05:04]
SvenDowideitwhy should you know that you're being bounced - I'm trying to hide my network impl from you!
given that you can ssh through a NAT
this ssh_MITM could do just that again
[05:04]
Babarsh through NAT? I'm guessing you're abusing the names :) [05:06]
SvenDowideitmy GW does NAT port forwardning
so all 22 req's goto one IP
then I have a stack of different A records pointing to it
[05:06]
Babaryou mean PAT? :)
and a stack of apache vhosts
[05:06]
SvenDowideitbeats me - all i know is that it works for http, but that ssh is too dumb
no, worse :)
one mod_proxy on that ip
[05:06]
Babaroh my goodness [05:07]
SvenDowideitand lots of real other servers and vms that get proxied
but i'm not telling you :)
[05:07]
Babarthe problem with ssh is the same as with SSL so HTTPS in your case [05:07]
SvenDowideittruely useful for the multi-os testing i'm hacking with [05:07]
Babarthe good old chicken n egg [05:08]
SvenDowideithttps is a woeful POS, ssh is good >:} [05:08]
Babarlike, you can't establish a secure connection without using keys, and you can't choose the keys without knowing the host, but you can't send the host without a connection [05:09]
SvenDowideitexcept, its possible to port forward things
so the DSL GW is a MITM between you and my ssh endpoint
[05:09]
Babarno, you're confusing things here
port forwarding is level 3
ssh is level 7
or 5
[05:10]
SvenDowideiti'm being sloppy, but i'm saying 'i have code, i have packets and they go in one ear and out the other'
what level of TCP/IP abstraction is really only a matter of code
but i tank you for reminding me that i'd have to use much more pain than i'm willing :)
[05:10]
Babarbut still, the main diff with your mod_proxy is that the MITM can accept everything, decode it, and then forward it
in fact, you could do that... in a ugly way
Babar did that once
[05:12]
SvenDowideit:) [05:13]
Babarlemme check [05:13]
gac410Hm. how does the ssh know how to lookup into known_hosts [05:14]
Babarthe CLIENT does that
as I said, it's easy to do that on the client :)
with ProxyCommand
[05:14]
gac410okay [05:14]
SvenDowideity, i use the config files alot
but tahts because I'm supposed to know my network
means I basically need to give you ssh access to a relay ssh box, that then depending on the requested hostname you sshed to would open a new connection to the real server
[05:15]
gac410repeat after me. NAT is evil... [05:17]
Babaryes, exactly [05:17]
SvenDowideitgac410, i agree, but what other choice does a shite home user in australia have [05:17]
Babarif you do that, then you can play with command="" in the authorized_keys (if you want to allow only key login) [05:17]
SvenDowideityup [05:17]
Babarotherwise, you can also use the login shell [05:17]
SvenDowideittrue
i wonder if either have access to the hostname you enetered on the commanline to get there
[05:17]
gac410I'm not disagreeing. Unfortunately NAT required far too often. [05:18]
SvenDowideitso it can choose between the 2 [05:18]
Babarcommand does, through... SSH_HOST iirc [05:18]
SvenDowideitooo, neat, so the answer to my q is - its simple, do XXX :)
pharvey, there you go :)
SvenDowideit needs to try Rex soon
[05:18]
pharveyActually, https can do multiple vhosts on the same IP with server-name-indication extension (but that's IE7+) [05:19]
SvenDowideithttps://metacpan.org/search?q=Rex [05:19]
Babarsorry, command does, can't remember the variable. login shell does too, through SSH_ something [05:19]
SvenDowideithttps://metacpan.org/module/Rex
Babar, principle is all we need :)
[05:19]
pharveythis isn't rex as in, REXX scripting language right? [05:20]
SvenDowideitno
its like vagrant but in perl
[05:20]
pharveyw00t [05:20]
Babarpharvey: but that also requires the certificate has all the vhosts [05:20]
SvenDowideiter, i really never groked what vagrant or puppet do
so ... one of those
[05:20]
GithubBot[foswiki] foswiki pushed 2 new commits to Release01x01: http://git.io/iPuTyg
[foswiki/Release01x01] Item11383: Update release notes - GeorgeClark
[foswiki/Release01x01] Item11383: AdminUser topic should be protected - GeorgeClark
[05:20]
***GithubBot has left [05:20]
SvenDowideithttp://rexify.org/ [05:20]
gac410wow - have not herd REXX mentioned in years. I used to use that language a lot [05:20]
SvenDowideitstupid name [05:20]
FoswikiBothttp://foswiki.org/Tasks/Item11383 [ Item11383: General documentation task for 1.1.5 release ] [05:21]
pharveyI only know it because it's what AmigaOS used (my first 32 bit computer :) [05:21]
SvenDowideit:) [05:21]
pharveywell, its thing was called AREXX [05:21]
SvenDowideity, based on the real thing by ibm [05:21]
GithubBot[foswiki] foswiki pushed 2 new commits to master: http://git.io/cCWRag
[foswiki/master] Item11383: AdminUser topic should be protected - GeorgeClark
[foswiki/master] Item11383: Sync ReleaseNotes01x01 from releas11 - GeorgeClark
[05:21]
***GithubBot has left [05:21]
BabarSvenDowideit: puppet / chef are configuration managers / provisionners
vagrant is a virtual machine "ordonnancer"
[05:21]
SvenDowideitthat helps me soooooooooo little :) [05:21]
Babarso vagrant creates and configures the VM
configures as in at the VM level: NAT, network, etc...
puppet / chef install the applications on the VM
[05:22]
SvenDowideitso why do i want 2 tools to do that?
in that case, i hope that rev does both
cos i'd like something a little simplistic that i can make a foswiki plugin to kick things :)
[05:22]
Babarhum... Rex seems to do none of those things :) [05:23]
SvenDowideityay?
it uses libvirt to make vm's
it has some cross-os pkg mgmt tools
https://metacpan.org/release/Rex
[05:23]
Babarok, Rex does more or less what puppet / chef does [05:25]
SvenDowideithttps://metacpan.org/module/Rex::Commands::Virtualization
very simplistic create vm
i'm going to assume that its mostly 'less' tho
[05:25]
Babarok, then it can do very simplistic basic stuff that vagrant does :)
Rex looks interesting though
but chef / puppet are for more bigger projects
from what I see, this doesn't scale
[05:27]
SvenDowideitfor what i wanted to do - which is a foswiki plugin to manage my suite of openstack things, its nice to have a perl option [05:28]
Babaranyway... modules...
you need prelcritic
some Devel::
[05:28]
SvenDowideitscale - can that be fixed, or design mess? [05:28]
Babarand Locale::Maketext::Lexicon
the all idea for chef and puppet is that all clients regularly check if they're up-to-date
[05:29]
SvenDowideitok, so debian is still crap :)
root@quiet:/home/sven# apt-get install perlcritic
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package perlcritic
[05:29]
Babarhere it seems you have to run Rex [05:29]
SvenDowideitah, we never trusted the client :) [05:30]
Babarhttps://metacpan.org/module/Rex
argh
stupid OS-X
[05:30]
SvenDowideitaltiris patch and inventory mgmt hits your clients hard, constantly :) [05:30]
Babarhttps://metacpan.org/module/Rex
RHO!
[05:31]
SvenDowideitroot@quiet:/home/sven# apt-cache search perlcritic
libtest-perl-critic-perl - module to use Perl::Critic in test scripts
er, i'm going to go get lunch, apparently my brain is mush
[05:31]
Babarlibperl-critic-perl
don't be fooled the same way pharvey was
[05:32]
SvenDowideitit means that the meta data is poor for that module
and i guess i should report that :/
[05:32]
Babarhttp://irclogs.foswiki.org/bin/irclogger_log/foswiki?date=2012-02-23,Thu&sel=884#l880 [05:33]
pharveyI used to find it funny that cpan2deb couldn't make its own DhMakePerl, but they fixed that :) [05:33]
Babarand please add Locale::Maketext::Lexicon to my list :)
ok, rebooting on linux, I just hate os-x too much
[05:34]
gac410g'night all [05:38]
***gac410 has left [05:38]
............. (idle for 1h0mn)
pharveypython is making me sad :( [06:38]
flexibeastpharvey: Why is that? [06:41]
pharveytoo many web frameworks :) [06:44]
flexibeast*chuckle*
Whereas you feel Perl has a clear winner?
[06:47]
SvenDowideitcruelty! [06:49]
flexibeastHm, haven't heard of that framework .... ;-) [06:49]
SvenDowideitSvenDowideit thinks! aha!!
mmm, ok, i'll rename.
[06:50]
flexibeastSpeaking of perlcritic, that would make a good module: Perl::Critic::Cruel. [06:51]
SvenDowideitcruelti. [06:51]
flexibeastIt would make remarks a la Basil Fawlty. [06:51]
SvenDowideithehe [06:51]
pharveyI feel perl's frameworks have more obvious specialisations, as with ruby too, but meh
pharvey also trying very hard not to base his entire opinion of the python language on just the few codebases he has to maintain :P
[06:54]
SvenDowideitoh dear, i commented on a linkedin poll in the morning, and somewhere during the day it hit linkedin's frontpage news [06:57]
pharveyin a good way? [06:58]
SvenDowideitoh, i think my comment would be hiddne
but it means there are trillions of comments, and each one is emailed to me
[06:58]
pharveyyou cannot escape the social graph! [06:59]
.................. (idle for 1h29mn)
AlexanderStHi! Does anybody work with the PublishPlugin here? [08:28]
flexibeastNo, although i have been checking it out .... [08:32]
***flexibeast has left "QUIT :Leaving." [08:37]
..... (idle for 20mn)
Rich_MorinI have no idea if this is relevant, but you mentioned Perl::Critic, so... http://www.meetup.com/San-Francisco-Perl-Mongers/events/51343902/ [08:57]
...... (idle for 25mn)
FlorianPDoes anybody know were i can find typemaping.txt? (It is used in solrplugin)
<----- needs to look more carefully, Found it
[09:22]
......... (idle for 42mn)
CDotRich_Morin: interesting.... looks like a significant improvement over CPAN [10:06]
stasheckHi there
I'm a beginner in foswiki
got it installed from Debian packages (courtesy of Sven)
it works dandy, most of the time
the biggest gripe I have is that the editor help is always visible
[10:11]
***ChanServ sets mode: +o MichaelDaum [10:13]
MichaelDaumfree tickets for cebit 2012: http://foswiki.org/Community/FoswikiCeBIT2012 [10:14]
stasheckI remember that sometime before editior help was hidden by default, and showed only when "help" button was used
but now it's always on
is there a way to hide it?
is it a bug or a feature?
[10:14]
CDotstasheck: IIRC the visibility of the editor help is controlled by a cookie. Try deleting your cookies, see if it disappears. [10:26]
FlorianPMichaelDaum: Maybe you remeber me i tried to get solr working; It was a little bit tricky but now it is working find and it looks awesome. I have just one question: When i type in a search string a little line is spinning around like autocomplete is use but nothing shows up. how can i enable autocomplete or disable the spinning line [10:28]
MichaelDaumFlorianP, right now there's no easy way to disable autocompletion in SolrSearch [10:31]
stasheck@CDot: on it [10:31]
MichaelDaumthere might still be a problem with your setup, finding out why it doesnt return any result.
FlorianP, it either doesnt return any result because your server is too slow, or it doesnt return valid results.
the backend for autocompletion should look something like this url: http://localhost/bin/rest/SolrPlugin/autocomplete?topic=System.SolrSearch&term=test
try the link manually entering it into the address bar
it should return a proper json object
[10:31]
stasheck@CDot: nope, it's still there
it's there even for users that are logging in for the first time (my foswiki runs on company's ldap auth info)
[10:35]
PeterSvendsenHi al, I have made a search in the web to find all ppt files that contain raning.ppt (traning material), it works fine it finds all the files.. but the output is to big.. it seems that when it finds a ppt file that match it also presents all other files in the topic.... and it it e.g. finds 2 hits that contain *raining*.ppt it makes the header dobble.....the function looks like this
%SEARCH{ "attachments[name~'*raining*.ppt']" type="query" nonoise="on" format="$percntATTACHMENTLIST{topic=$quot$topic$quot web=$quot$web$quot header=$quot| *File type* | *File name* | *File comment* | *Topic where file are attached* |$quot format=$quot| $fileIcon | [[$fileUrl][$fileName]] ($fileSize) | $fileComment | $fileTopic |$quot }$percnt" }%
[10:40]
flexibeastIs anyone currently successfully using NotificationPlugin? [10:45]
.... (idle for 19mn)
If i've found a small (but fatal) syntax error in a plugin, should i just open a bug task describing both the problem and the solution? [11:04]
ArthurClemensflexibeast: yes please [11:12]
flexibeastArthurClemens: Thanks, will do. :-) [11:12]
........ (idle for 35mn)
NotificationPlugin is really broken. :-( [11:47]
...... (idle for 26mn)
PeterSvendsenCan anybody see why the following search function writes the header 2 times if there are 2 hits in the search function?
%SEARCH{ "attachments[name~'*raining*.ppt']" type="query" nonoise="on" format="$percntATTACHMENTLIST{topic=$quot$topic$quot web=$quot$web$quot header=$quot| *File type* | *File name* | *File comment* | *Topic where file are attached* |$quot format=$quot| $fileIcon | [[$fileUrl][$fileName]] ($fileSize) | $fileComment | $fileTopic |$quot }$percnt" }%
[12:13]
flexibeastPeterSvendsen: Off the top of my head, it looks like you've not got a close quote for the 'format' parameter? [12:16]
PeterSvendsenflexibeat thanks :) do you have any idea why I got displayed other files then the .ppt files only? [12:22]
flexibeastPeterSvendsen: Well, the query itself looks okay; but you're specifying the 'format' parameter twice? i wonder if that's somehow messing things up? [12:30]
ArthurClemensPeterSvendsen: why are you using ATTACHMENTLIST inside a SEARCH?
%ATTACHMENTLIST{}% itself performs a search
[12:31]
PeterSvendsenflexibeat and ArthurClemens now it works..... yes the attach.. is inside the search function.. .not it looks like this: %SEARCH{ "attachments[name~'*raining*.ppt']" type="query" nonoise="on" header="| *File type* | *File name* | *File comment* | *Topic where file are attached* |" format="$percntATTACHMENTLIST{topic=$quot$topic$quot web=$quot$web$quot extension=$quot ppt $quot format=$quot| $fileIcon | [[$fileU [12:40]
flexibeast.... that makes my head spin! [12:41]
ArthurClemensbut why the SEARCH?
you can pass param includefilepattern, or use param extension
in ATTACHMENTLIST
[12:41]
PeterSvendsenthe search... can not remember exactly.. I may have seen an example in the foswiki [12:42]
ArthurClemensthis is redundant and complex
%ATTACHMENTLIST{includefilepattern="raining" extension="ppt" format="format="| $fileIcon | [[$fileUrl][$fileName]] ($fileSize) | Submitted by $fileUser on $fileDate | $fileComment |<span class='foswikiGrayText'>[[$fileActionUrl][manage]]</span> |"
"}
excuse me
%ATTACHMENTLIST{includefilepattern="raining" extension="ppt" format="| $fileIcon | [[$fileUrl][$fileName]] ($fileSize) | Submitted by $fileUser on $fileDate | $fileComment |<span class='foswikiGrayText'>[[$fileActionUrl][manage]]</span> |"}%
[12:43]
jeskhmmmm
can anyone give me a hint how to reset the admin password?
[12:48]
SvenDowideitgoto configure :)
or, the command line
and edit your foswiki/lib/LocalSite.cfg
delete the line that contains.... {Password}
[12:48]
jeskI dit already :)
s,dit,did,
[12:49]
PeterSvendsenArthurClemens I tried your proposal.. gives 0 hits - %ATTACHMENTLIST{includefilepattern="raining" extension="ppt" format="| $fileIcon | [[$fileUrl][$fileName]] ($fileSize) | Submitted by $fileUser on $fileDate | $fileComment |<span class='foswikiGrayText'>[[$fileActionUrl][manage]]</span> |"}% [12:49]
jeskbut where to set it again? [12:50]
SvenDowideitjesk, configure
as in the web UI
[12:50]
jeski'am blind, in bin/configure I can't find category where to set it again [12:51]
SvenDowideitah :)
hit save think
someone made it a little obscure
[12:51]
jeskaaaaaaaaaaaah! :)
that did it! thanks :)
[12:52]
ArthurClemensPeterSvendsen: try without includefilepattern first [12:53]
PeterSvendsenArthurClemens Same :( [12:54]
ArthurClemensok, you have to add topic="*" [12:55]
PeterSvendsenArthurClemens this works... updated to %ATTACHMENTLIST{extension="ppt" topic="*" includefilepattern="raining" web="Main" header="| *File type* | *File name* | *File comment* | *Topic where file are attached* |" format="| $fileIcon | [[$fileUrl][$fileName]] ($fileSize) | $fileComment | $fileTopic |"}% [13:00]
JackSpamhi there
can someone help me with this error message
ERROR: (404) Invalid REST invocation - /TestRenderPlugin/render does not refer to a known handler
[13:09]
ArthurClemensPeterSvendsen: great [13:09]
JackSpami tried using the renderplugin and just copied the example into my topic [13:09]
PeterSvendsenArthurClemens thx for your help [13:09]
CDotJackSpam: my guess is your plugin doesn't compile. Check System.InstalledPlugins. [13:19]
JackSpamk, i will look into that. thanks
hm.. it is listed in there and stated as installed&enabled
[13:19]
CDot: if you are currently on and if you have the time.. where do i edit the edit template for the ActionTrackerPlugin? [13:28]
CDottemplates/edit.action.tmpl [13:29]
JackSpamthanks again :) [13:30]
..... (idle for 24mn)
FlorianP<--- loves the move function for topic, saves a lot of time :-) [13:54]
..... (idle for 23mn)
JackSpamCDot: is there predefined template for the edit template? because the file only contains the macro %UNENCODED_TEXT% [14:17]
BabarArthurClemens: oh, I'll update the gist
I managed to run the unit tests on OS-X last night
[14:17]
CDotJackSpam: actionform
the string 'action' anywhere in a template name is a HUGE clue
[14:18]
BabarArthurClemens: https://gist.github.com/1917781 reload once more :) [14:19]
FlorianPMichaelDaum: Is it possible to prevent file with a certain extension from being indexed? [14:21]
MichaelDaumFlorianP, from being indexed or from being displayed on the search interface? [14:22]
FlorianPMichaelDaum: From being indexed [14:22]
MichaelDaumthe latter is easily possible using the extrafilter option [14:22]
FlorianPin SolrSearchBaseTemplate? [14:22]
MichaelDaumy [14:22]
JackSpamCDot: ok thanks [14:23]
MichaelDaumOnly files with an extension in {SolrPlugin}{IndexExtensions} are indexed.
the rest is just listed as existing but without stringifying it for fulltext search
FlorianP, the extrafilter can also be set using the SOLR_EXTRAFILTER preference variable
[14:23]
FlorianPMichaelDaum: As always, thanks for your quick help :-) [14:25]
MichaelDaumyw :) [14:26]
PeterSvendsen/QUIT [14:32]
***Babar sets mode: +oooo AndreU ArthurClemens Colas ColasHome
Babar sets mode: +oooo CDot gac410 Lynnwood Lavr
Babar sets mode: +oooo MartinCleaver padraig_lennon SvenDowideit terceiro
[14:33]
padraig_lennonHi MichaelDaum.. [14:37]
MichaelDaumHi Padraig [14:38]
padraig_lennonJust wondering if there was much involved in adding the model window to your MetaCommentPlugin? I think it would be great to have it by default when saving a topic.. I'm constantly running into issues where users doubleclick on the save button when creating an auto-generated topic...
thus creating a number of empty topics..
[14:40]
MichaelDaumyou mean this "Wait a sec, I am about to do this and this ..." bubble? [14:41]
padraig_lennonYes exactly.. [14:41]
MichaelDaumthat's pretty easy to make use of: see System.JQueryBlockUI [14:42]
padraig_lennonSo its already bundled with foswiki... Hmm.. interesting.. Anyone else think this would be a useful addition (optional?) to foswiki?
Have to head to a meeting here. back in a few mins..
[14:42]
MichaelDaummeetings are cool [14:43]
padraig_lennonMaybe in your world :) [14:43]
MichaelDaumheh certainly not [14:43]
.... (idle for 18mn)
FlorianPMichaelDaum: Is it possible to make a new media catergory in the media-facet? If yes what needs? ( i now to typmape.txt (i added my catergorys there)) [15:01]
MichaelDaumtypemap.txt should be spot on
as you see there are video and image cats in there already
[15:02]
FlorianPMichaelDaum: I added the line <doc, docx, dot => Word > but there is no change in the media facet. so nothing else has to be done? [15:05]
MichaelDaumyou'll need to reindex all word attachments so that this thing gets into the index
first restart solr
then reindex
[15:05]
gac410CDot: commented on your comments to ProtectConfigureUsingHtdigestByDefault. As we ship sample config files, I'm not sure how this results in that much more editing than is already required. [15:06]
CDotgac410: I'm thinking beyond the "typical case". Say you have an admin running IIS.... what impact does it have on them? [15:06]
FlorianPMichaelDaum: thx i am idiot a was thinking about everthing exept restarting solr; so thx for your help again^^ [15:06]
CDot(IIS is an extreme example; but there are many shades of brown trousers) [15:07]
gac410ugh. yeah IIS. I do try to forget about that. in which case the only solution is template auth. I need to reread the tm* code again as at first review it looked like it was including the password on every post.
And as much as I want to accommodate all installs, minimizing any passing of passwords is really important, esp. for the configure superuser password.
And I don't think it's right to make everyone live with a sub-optimal solution so that iis has a better out-of-the box install.
So what are the shades of brown. The solution works for apache. I think the config changes are no more difficult than our current shipped examples, ApacheConfigGen, etc. The other shades are
nginx, or plack (?) probably only used by admins fully capable of editing.
hosted sites - The example bin-htaccess.txt can be defaulted.
[15:08]
....... (idle for 30mn)
CDotWhen I set up multi-site, I use htaccess to separate access controls in different pub dirs. But that needn't affect this
it's only the concept of shipping a default hidden file I'm a bit uncomfy with
[15:43]
gac410hm. well we used to ship a hidden .htaccess in one of the directories. but yes I understand - though not sure how else to handle it other than implemeting template auth and session cookies for configure.
Yeah - it was bin/.htaccess.txt so it wasn't an active config file but it was hidden. I moved it to root bin-htaccess.txt to be consistent with all the other example files.
btw - for the add/removeUser from/to group action, I am coming to believe that it is indeed a bug. The redirectto handling is completely handled by Foswiki.pm - except the Register script doesn't call it properly. So I think fixing it for 1.1.5 is very low risk.
Just add the correct calls to $session->redirect( $session->redirectto( $session->getScriptUrl( ...
[15:48]
......... (idle for 40mn)
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/2iCGpg
[foswiki/master] Item11576: add redirectto to Register script - GeorgeClark
[16:33]
***GithubBot has left [16:33]
FoswikiBothttp://foswiki.org/Tasks/Item11576 [ Item11576: Add support for redirectto to the addUserToGroup and removeUserFromGroup register actions. ] [16:34]
mtempestgac410: around? [16:47]
gac410yup [16:47]
mtempestI've been browsing through the documentation looking for typos and the like. [16:48]
gac410find any big ones? [16:48]
mtempestNothing big so far
I have found a few small ones.
Way back in 2010 you changed EditingShorthand when you added %SANDBOXWEB%
http://trac.foswiki.org/browser/trunk/core/data/System/EditingShorthand.txt?annotate=blame#L424
[16:48]
gac410Ah - yes SANDBOXWEB - That one ended up a mess. It was trunk only, but got semi-merged into release11 by various plugins syncing from trunk
I've been trying to make it all consistent again for 1.1.5
[16:50]
mtempest'k
I'll fix the shorthand topic.
[16:50]
gac410So any use of Sandbox should be SANDBOXWEB - except for some exceptions - that I can't recalll Probably missed some though.
Yeah - exeptions anything like Foswiki::Sandbox should not be updated. (My first pass was a bit aggressive :-) )
[16:51]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Sandbox [16:52]
mtempestI just wanted to know if there was a specific reason why the example TML for "forced links" is [[Sandbox.My unspaced topic]], and the "rendered" version is Main.Wiki groups [16:53]
gac410Wow - nothing that I can think of - Did I mess that up that badly? [16:54]
mtempestmtempest looks at trac again [16:54]
gac410Hm.... though the example should probably be working - So I'd dump Sandbox in that case. [16:54]
mtempestAh - I see - it was the search-and-replace that put your name on it :)
The example was actually broken before then.
I'll fix it :)
[16:55]
........ (idle for 38mn)
MartinCleaverMartinCleaver agrees with SvenDowideit: node.js is too much fun [17:33]
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/bEgl7A
[foswiki/Release01x01] Item11576: add redirectto to Register script - GeorgeClark
[17:47]
***GithubBot has left [17:47]
FoswikiBothttp://foswiki.org/Tasks/Item11576 [ Item11576: Add support for redirectto to the addUserToGroup and removeUserFromGroup register actions. ] [17:47]
....... (idle for 33mn)
BabarSvenDowideit: and what is wrong with the unit tests?! Why are they failing??? [18:20]
gac410strangeness that the issue seems to come and go [18:20]
.... (idle for 15mn)
Babarseems to come a lot lately [18:35]
...... (idle for 27mn)
mtempestOn my very vanilla developer pseudoinstall, on System.ManagingWebs, I see "<span class=" instead of the coloured "Hierarchical webs are currently en/disabled" text
f.o shows the right thing.
Does anyone else see that?
(i.e. see the wrong thing on their own install)
It isn't just my browser. I see the same thing if I use wget
[19:02]
gac410mtempest: it's okay here - did you svn up recenlty? iirc CDot had removed the HierarchicalWebs setting from configure... thinking it was enabled by default. I put it back [19:04]
mtempestI svn up'ed a few hours ago [19:05]
gac410Are HierarchicalWebs enabled or disabled on your system?
gac410 tries to recreate
[19:05]
mtempestmtempest checks
It is enabled.
[19:05]
gac410Ooh... yeah I see it here. Hidden in the twisty [19:06]
mtempestyup [19:06]
gac410single quote issue - change then and else to double quote. Fixes the enabled display - have to try disabled.
Hm. %RED is missing the end-%
[19:09]
mtempestI saw that too. I'll fix both things. Thanks for pointing out the quoting. [19:11]
gac410Wow - good find. That's been broken since 2009
Amazing how many little things like this slip through.
[19:12]
mtempestmtempest nods [19:15]
.... (idle for 18mn)
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/drTgBw
[foswiki/Release01x01] Item11383: Miscellaneous doc updates - MichaelTempest
[19:33]
***GithubBot has left [19:33]
FoswikiBothttp://foswiki.org/Tasks/Item11383 [ Item11383: General documentation task for 1.1.5 release ] [19:33]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/wG4r_A
[foswiki/master] Item11383: Miscellaneous doc updates - MichaelTempest
[19:34]
***GithubBot has left [19:34]
padraig_lennonHey... Is it possible to use a EDITTABLE in a view template? [19:44]
....... (idle for 32mn)
Scrap that... Got around it by using the include parameter.. [20:16]
................ (idle for 1h18mn)
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/Dn-vVA
[foswiki/Release01x01] Item11383: Fix up links, and other tweaks - GeorgeClark
[21:34]
***GithubBot has left [21:34]
FoswikiBothttp://foswiki.org/Tasks/Item11383 [ Item11383: General documentation task for 1.1.5 release ] [21:34]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/nCCOtw
[foswiki/master] Item11383: Fix up links, and other tweaks - GeorgeClark
[21:46]
***GithubBot has left [21:46]
........................ (idle for 1h57mn)
gac410Hm. The addUser / removeUser group API runs apparently without errors, when configured with BaseUserMapping. [23:43]

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