#foswiki 2012-01-30,Mon

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

WhoWhatWhen
gac410:-( Didn't notice that the email trap wasn't trapping - createNewFoswikiSession resets it and I was sending test emails to example.com :-( [00:00]
pharveygac410, is the code in svn? [00:02]
gac410no - it's a pretty bad hack job right now. [00:03]
kip3fkip3f found a bug in litespeed authentication [00:03]
pharveykip3f, how do you find litespeed generally? [00:03]
kip3fWell, I am used to apache and having full control with a httpd.conf
Right now I'm playing with a site that uses .htaccess files with litespeed,
this is also my first experience using foswiki with .htaccess.
I don't think that the .htaccess files are "100%" compatible
I had to go thru some crazy hoops to get URL redirection working (to have a simpler view URL)
but at least, the way that it works made sense (when I figured it out) ...
[00:04]
gac410Take a look at the Foswiki:Support/NewApacheConfigGenerator It can generate .htaccess files - but that aspect has not been tested I don't think; [00:07]
FoswikiBothttp://foswiki.org/Support/NewApacheConfigGenerator [ NewApacheConfigGenerator ] [00:07]
kip3fkip3f checks his config ...
Riight, I had to put the configuration for the Rewrite rules in the bin directory, not in the root of the foswiki tree
[00:09]
pharveygac410, it may be irrelevant but the 'trickiest' createNewFoswikiSession() test quagmire I had was AcessControlTests and its usage of capture [00:10]
gac410There are things that create new sessions under the covers that can trip things up. registerUser creates a session that clears stuff. Found that out the hard way too ;-) [00:11]
kip3fbut the bug that i just found, really seems incredible. http://kiplubliner.com/litespeedbug/hi?aa=1%3d asks for authentication. But http://kiplubliner.com/litespeedbug/hi?aa=1%3d1 just gives a 403 error. [00:12]
pharveyif you enable SINGLE_SINGLETONS in Foswiki.pm and FoswikiTestCase.pm, it will die for you if there's something doing something naughty like that
well, it's not 'naughty', but you've got to take special care, such as in the AccessControlTests with capture (there, again, it's a Foswiki::UI that itself creates a new foswiki session on top of the one already created for the test)
[00:12]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::UI [ (Foswiki login) PerlDoc ] [00:13]
pharveyanyway, SINGLE_SINGLETONS asserts will try to explode if you do more than one session at a time [00:13]
kip3fBTW pharvey - Just today I decided to publish my SqlPlugin and JQGridPlugin mods to github. Can't wait for MichaelDaum any more. [00:14]
pharveykip3f, nifty :-) Yeah, sometimes he's just busy. Don't take it personally. I'm sure he'll appreciate your contribution [00:15]
gac410$this->registerUser in the unit test framework calls createNewFoswikiSession. So it's not naughty, but just unexpectedly clears things. [00:17]
kip3fPatience is not my best virtue. But if I just put my work on github, then I don't have to be patient anyway :-) [00:18]
gac410pharvey - with my having a full git-svn checkout (and having gone through that pain) can I make practical use of github too? [00:19]
Babargac410: sure
you can push to it "easily" if you want to share code
you already git remote add'ed?
[00:23]
gac410no - using very traditional git-svn. I've ignored github except for following an occasional link to it.
Oh - and pseudoInstall has on occasion installed a plugin from there - when I forget I'm on release11 before doing a pseudoinstall of a non-core extension. That works :-)
[00:24]
Babargac410: so simply: git remote add github github.com:foswiki/foswiki.git ... ah no, you can't push there. you need to fork it :) [00:27]
gac410So register an account on github, so I can fork my own branch for pushing experimental stuff that I wouldn't wan to commit to svn. [00:28]
Babarexactly
wouldn't want to commit to svn, but still would like to share :)
[00:36]
SvenDowideitgac410, http://foswiki.org/Tasks/Item8898 [00:36]
gac410yeah - some of my early attempts at stuff don't deserve svn. [00:37]
SvenDowideitsadly, you have to create the repo too
you can't just push to github and it creates it :)
but its darned useful for a longer term memory of a hack :)
[00:37]
gac410hm. So that's a full copy of master? when pushing experimental code? [00:38]
SvenDowideityup
unless you use pharvey
's oddity
which i need to start doing 'one day'
[00:38]
gac410yeah - I do really like the feature that pseudo-install just pulls from git what it needs. [00:38]
SvenDowideiti feel weird about that one :) [00:39]
gac410The only real advantage then of having the full master checkout is the occasional need to grep across all plugins for stuff. [00:39]
SvenDowideitfor me thats an everyday need
but i realise that my way of working is different
[00:40]
BabarBabar created _All something for that
(don't even remember the name :))
[00:40]
SvenDowideitBabar, giggle
could someone please come here and read&summarise all the web pages i have open?
they're killing my computer, but i would like to know what they say
[00:40]
gac410gac410 decided the easiest way to get feedback from a afterSave handler test case is to just push it to @FoswikiFnTestCase::mails *much* simpler than some monkey patching I was fighting with. [00:41]
kip3fgac410 / SvenDowideit - you are "known to be using git", according to http://foswiki.org/Development/HowToUseGit
sorry for adding another web page, Sven!
[00:43]
gac410yes - I've not really touched svn directly in a year or so - except when building 1.1.4 for release. [00:44]
SvenDowideitkip3f, grin
i'm known for using alot of things >:}
coffeeeeeeeeeeeeee!
[00:44]
BabarSven is using! [00:45]
gac410Sven - as you are poking around building .deb/ .rpm packages, you might check out lib/DEPENDENCIES vs. lib/Foswiki/Contrib/core/DEPENDENCIES. They are similar - but different - one is obsolete I suspect. [00:55]
SvenDowideitoh gads
tanks - didn't realise we had a mush
[00:55]
gac410I suspect the one in lib directly is the real one ... but who knows. We probably choose at random just for jollies ;) [00:56]
SvenDowideiti'll see abooot re-unification [00:56]
gac410I was afraid to touch them - I might have even opened a task. Don't recall now. [00:57]
SvenDowideit:)
i'm not actually here
its my day to look after girls, but one of them dropped a chair on my foot
[00:57]
Babarnot obsolete... I'm guessing it's like for MANIFEST [00:58]
SvenDowideiti really need to be more careful >:} [00:58]
gac410Item9615 [00:58]
FoswikiBothttp://foswiki.org/Tasks/Item9615 [ Item9615: File lib/Foswiki/Contrib/core/DEPENDENCIES appears to be an out-of-date version of lib/DEPENDENCIES ] [00:58]
Babarwe have one global one, and one more dedicated one [00:58]
gac410Well they overlap significantly, and don't agree on versions in places iirc. [00:59]
SvenDowideitBabar, harumpf - i wonder (gets mirror) which ass made sucha a confusing thing without adding docco to each file [00:59]
BabarBabar is just guessing :) [00:59]
SvenDowideitgrin [01:00]
gac410ex:
CGI,>=0,cpan,Required, for base Foswiki (Avoid version 3.37 and versions prior to 3.15 if you can.)
CGI,>=3.15,cpan,Required, for base Foswiki (Versions 2.89, 3.37, 3.43, and 3.47 must be avoided. Most version from 3.15 and onwards should work)
And the version in Contrib/core doesn't have any of the HTML:: dependencies
[01:00]
SvenDowideitcool - no worries, another something that i need to simplify to the sake of post release packagers
so in general, you don't have an issue with shipping the core's personal MANIFEST and DEPs list?
SvenDowideit needs to go pick up girls - back some random time
[01:03]
gac410IMO whatever we ship for MANIFEST should be a complete list of the tarfile contents. [01:04]
SvenDowideitgac410, mmm, that won't help me [01:05]
gac410to ship our includie thing, and then not ship the include targets is useless [01:05]
SvenDowideiti need a list of what should only be in the core, so that i can separate the core things and then grab the rest from each extension
but I can jsut as easily make a second that is the full list
gone :)
basic thing that helps me - tell me what you think its useful for - that way i'll integrate your story with mine :)
[01:05]
gac410l8ers
hm. I wanted a list of what we ship so I could build a delta package, without building releases and diffing the tarfile indexes.
A manifest of what is found from the perspective of the foswiki install, not the SVN tree - where plugins are found traversing up and back down to parallel directories.
it was quite a while ago now but I was pretty surprised the first time I opened the shipped manifest to find out what was shipped.
[01:06]
.......... (idle for 46mn)
hm. Meta::eachWeb() doesn't have a recursive option. You can pass it a "1" and it will list one more level down, but it doesn't traverse any deeper. [01:57]
kip3fIf you add it as a feature, the interface could be that you have to pass it an 'n' [01:58]
.... (idle for 17mn)
gac410yeah not sure - adding a feature like that needs a feature request. Probably better to just implement recursion in the Statistics module.
statistics really needs a replacement.
[02:15]
pharveygac410, IIRC it's to the caller to do their own recursive web traversal thingy... [02:17]
gac410That's what it appears.
Item11478 - looks like statistics doesn't recurse through subwebs. subwebs need to be explicitly included.
[02:22]
FoswikiBothttp://foswiki.org/Tasks/Item11478 [ Item11478: Statistics not generated for subwebs ] [02:23]
.......... (idle for 49mn)
pharveyLooks like I need to fix Item11316 [03:12]
FoswikiBothttp://foswiki.org/Tasks/Item11316 [ Item11316: =Foswiki::Render= inappropriately (ab)uses empty =<p>= tags ] [03:12]
SvenDowideitre statistics [03:18]
gac410hi SvenDowideit [03:18]
SvenDowideiti wrote a plugin that traverses the logs with a query like interface [03:18]
gac410I'm definitely not rewriting statistics. :-D [03:19]
SvenDowideitthat could easily be used to replace generating a useless billion revisons
and tbh I'd love to get someone else looking at the idea of adding multiple query backends to SEARCH
especially from a how the user would see and use it pov
[03:19]
pharveygac410, do you think Item11316 could be risky for Release01x01... I wonder how many people are relying on the existing empty <p/> tag behaviour of the last 12+ years [03:19]
SvenDowideitso not only type='other query language'
but source=other source of info
and then some kind of pluggable UI trick to add another tab to the WebSearch ui
that way we don't rewrite, we just simplify the code
[03:20]
pharveytype="SQL" backend="MongoDB" :P [03:20]
SvenDowideitpharvey er ish [03:21]
pharveyyeah, you want to say what to query, not how. [03:21]
SvenDowideittype=sparl source=yahoo.com [03:21]
gac410pharvey: don't know - using <p> tags correctly would certainly improve our output - but it is a pretty big change. [03:21]
SvenDowideitor something [03:21]
pharveyw00t [03:21]
SvenDowideitSvenDowideit goes again
needs someone to think about it
i've dreamt it for ages, but the user bit worries me
[03:21]
pharveyI really, really want to do a visualisation of prefs that should just be a different query mode for SEARCH... or we could do yet another macro... but unifying formatters :P [03:22]
I guess I can get a fix into trunk for Item11316, and then post to foswiki-discuss. [03:33]
gac410As long as it renders cleanly, I'd say try to keep trunk in sync for these bug type issues. I suspect getting the unit tests to pass though will be fun.
But a question to discuss asking about it couldn't hurt. I assume it would mostly effect "screen scraping" type applications?
[03:35]
pharveyI'm really not sure.
But the content I'm migrating doesn't look like how it did on the old CMS, and the CSS apparently can't easily be tweaked to compensate...
[03:36]
........... (idle for 53mn)
gac410pharvey - I was wrong - Setting the subwebs param to trun on meta eachWeb does recurse down through subwebs - helps if the subweb has a WebPreferences.txt file Doh.
So ... will "fixing" bin/statistics so it recurses all subwebs be a surprise for everyone? Maybe it needs a parameter -subwebs
[04:30]
pharveydunno
what's more surprising is that trunk, out-of-the-box, seems to have broken htpasswd
and I'm confused why the user registration doesn't allow to enter a password any more
it lets me register a user without any password? WTF
pharvey cleans & resets his checkout
[04:41]
gac410did I break something.... or is that CDot's changes to move create of .htpasswd file into confiugre. [04:42]
pharveyit was on a colleague's checkout... my own seems to be working [04:43]
gac410he reworked that so user can register on a system using the system /etc/passwd file for authentication. [04:43]
pharveyperhaps he needs to rebase
his checkout is from 23 Jan, with a CDot htpasswd checkin as its latest rev. So I guess there may have been temporary breakage. Don't panic :)
[04:43]
gac410Fixed statistics - added a "-subwebs true/false" option. If true, then for each web requested, or all webs if no web specified, it will retrieve all subwebs
default false, so statistics script will not suddenly start processing all the subwebs.
[04:54]
pharveycool
somehow I thought we already fixed this... the problem sounds familiar
[05:00]
gac410Now I need to document it and fix up the unit tests.
I fixed the last bug. A subweb if explicitly requested was not processed if trailing slash was missing.
[05:00]
pharveyItem11182 [05:01]
FoswikiBothttp://foswiki.org/Tasks/Item11182 [ Item11182: Statistics not generated for subwebs ] [05:01]
gac410right - for a *requested* subweb. This case was for when no web was specified. [05:01]
pharveyI can't understand how list_tests isn't picking up the monkey-patched/generated WYSIWYG tests... [05:08]
gac410gac410 hides ... muttering about monkey patching... [05:11]
***gac410 has left [05:20]
............ (idle for 59mn)
GithubBot[foswiki] foswiki pushed 3 new commits to Release01x01: http://git.io/TGm1pg
[foswiki/Release01x01] Item11440: Resurrect Selenium tests, use readTopic - PaulHarvey
[foswiki/Release01x01] Item11479: skip rather than empty list_tests() - PaulHarvey
[foswiki/Release01x01] Item11479: Some perlcriticisms, not all. - PaulHarvey
[06:19]
***GithubBot has left [06:19]
FoswikiBothttp://foswiki.org/Tasks/Item11440 [ Item11440: Inside =<pre>= formatted text, =<b>=, =<strong>= tags are lost in WYSIWYG transition ]
http://foswiki.org/Tasks/Item11479 [ Item11479: Add ability to skip tests/suites ]
[06:19]
GithubBot[foswiki] foswiki pushed 3 new commits to master: http://git.io/K1Qyfg
[foswiki/master] Item11440: Resurrect Selenium tests, use readTopic - PaulHarvey
[foswiki/master] Item11479: skip rather than empty list_tests() - PaulHarvey
[foswiki/master] Item11479: Some perlcriticisms, not all. - PaulHarvey
[06:19]
***GithubBot has left [06:19]
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/co3BLA
[foswiki/Release01x01] Item1326: Give Kenneth's newline tests expect_fail - PaulHarvey
[06:31]
***GithubBot has left [06:31]
FoswikiBothttp://foswiki.org/Tasks/Item1326 [ Item1326: Create a list of Selenium tests for web surface testing ] [06:31]
GithubBot[foswiki] foswiki pushed 2 new commits to Release01x01: http://git.io/HS2KXQ
[foswiki/Release01x01] Item1326: Fix malformed set statement in tests - PaulHarvey
[foswiki/Release01x01] Item1326: perltidy - PaulHarvey
[06:45]
***GithubBot has left [06:45]
............................ (idle for 2h16mn)
ChanServ sets mode: +o MichaelDaum [09:01]
.... (idle for 18mn)
harlanIf I have multiple vhosts pointing at the same fw instance, is there an easy way to have the FW instance say "If the URL is A.whatever then the "home" web is X, and if the URL is B.whatever the home web is Y, and for anything else the home web is Z"? [09:19]
Babardepends what you call home [09:25]
harlanif I have a FW instance with 3 webs in it, X, Y, and Z, ...
then http://a.whatever would go to A.WebHome, http://b.whatever would go to Y.WebHome, and anything else would go to Z.WebHome.
That first one should have been X.WebHome.
[09:33]
BabarRedirectMatch / RewriteRules are the easiest way [09:35]
harlanOK, so in my apache config file then? [09:35]
Babaryes [09:36]
harlan'k, thanks. [09:36]
pharveyThere's also virtualhostingcontrib, but I've not used it. [09:37]
harlanI was thinking about that too - it may be good for me in this case, too. [09:39]
Babarbut this conrib is for sharing a foswiki installation with different data/pub dirs [09:39]
pharveyI thought it was meant to match those data/pub dirs (or any part of piecewise customized LocalSite.cfg) with vhosts [09:41]
harlanthere are times we like that. We're curious about the possible security differences between them.
In the old days we used separate subdirs and symlinked some of the webs to provide certain common webs and other private webs.
[09:42]
MichaelDaumharlan, that's what I do with virtualhostingcontrib as well: they share the same System and Applications web but differ otherwise, including a separate VirtualHost.cfg which is loaded on top of LocalSite.cfg. so configuring different "home" webs is right there.
kicks in nicely with solrplugin as well having different index cores per domain
[09:50]
harlanAh, so searches work as expected (ie, no "information leakage")?
and can we share the same Users web if we want, but perhaps use access methods to deny folks access to certain vhosts?
[09:53]
MichaelDaumas you like. symlink is your friend, still. [09:59]
harlanack - thx.
On a different subject, does anybpdy have an idea of the performance difference between using fw via http compared to https?
[09:59]
MichaelDaumvirtualhostingcontrib is real nice. only thing missing is - well - a new release with my patches added, an admin interface and some nice best practice docu for apache and lighttpd [10:00]
harlanI'll be happy to see those. [10:01]
MichaelDaummost people doing foswiki farms have their own management scripts to kick off a new foswiki on their servers [10:03]
pharveyaren't all the kool kids using nginx these days? :) [10:03]
MichaelDaumpharvey, maybe.
and I don't bother being uncool.
[10:04]
pharveypharvey only kidding, can't see us ditching apache any time soon :/ [10:04]
MichaelDaumyou def are not cool anymore using apache ... though most corps require apache for a warm fuzz of going the safe path ... [10:05]
pharveyharlan, https vs http - just get your cache/expires headers right, I had some difficulty getting IE6 to actually cache static content properly when we first activated https.
yeah.
amazing apache is still useful after all these years
[10:05]
MichaelDaumI am pretty sure that ie6 is functional anymore. not been testing it for over 2 years now. [10:06]
harlanI can see that we may be looking or help on this sometime - there is just so much to do.
I'm just so used to apache...
I am happy to try something else though.
[10:07]
MichaelDaumlighttpd was astonishingly easy to get the head around. and now I love its flexibility.
I tried nginx ... finding the right docu to start with. and then decided against it.
[10:08]
harlanI could do that if I used a VM or a jail... [10:08]
pharveyhttps should not be noticeably slower than http requests. I wonder if the port 80 httpd has its own pool of fcgid procs to the 443... I guess in that case you might want to keep an eye on that [10:09]
MichaelDaumpharvey, umpf. nope.
normally you'd redirect any request hitting the vhost at 80 to 443 ... which then has got fcgid configured
[10:10]
pharveyok. It's just that I seem to see more than my configured maxproc perl processes running sometimes... but perhaps I just b0rked my config :) [10:10]
MichaelDaumone of the miracles of apache
apache is like a swiss army knife: can do anything if you get the blade out w/o breaking your fingers
[10:11]
harlan:) [10:12]
MichaelDaumalas it also is as fat as a swiss army knife: not fitting into anybodies pocket w/o you making look silly [10:12]
pharveyah, we don't redirect http -> https - as a public site it was decided that anon visitors shouldn't have to go to https... [10:12]
harlanback in the day I used a belt clip, but I also had the version that was only about 2cm wide...
I just don't see the point of using the really wide ones - too many tools I just don't need.
[10:12]
MichaelDaumtrue. and thats why apache is simply too much. [10:13]
pharveysomebody should finish the psgi work :P [10:14]
MichaelDaumsnap [10:14]
harlandoes it affect performance? I don't care about how much space it takes. [10:14]
MichaelDaumI wont switch from lighttpd to nginx just for the thrill to join the kool kids on the block
only when psgi is there will I switch to something else, which then is much more perl friendly
[10:15]
harlanI['ve used lighttpd on some embedded devices, nothing fancy. NEvere had to do much with it. [10:16]
MichaelDaumgood thing about lighttpd is it can cope with ajax apps much smoother than apache [10:17]
pharveyI like the cleaner config. [10:17]
MichaelDaumapache did always give me some kind of hickups where it seemed to be stuck doing housekeeping on its worker pool or whatever [10:17]
harlanIf any of y'all want to help out with webmaster/FWmaster stuff for Network Time, just lemme know :) [10:18]
pharveyover the years I've eventually developed a mental model for what 'scope' apache rewrite rules have, but sometimes ... it makes me question my sanity :-) [10:18]
harlanwhich is why I have tried to limit my webmastering. I paid those dues with sendmail and friends... [10:18]
pharveyapache 0.6.2 was released april 1995 - it has served the internet well. [10:19]
MichaelDaumr.i.p. [10:19]
harlanntp has been around longer than that...
and it's still going strong and growing/evolving.
[10:19]
pharvey*that* network time, cool :) [10:20]
harlan:) [10:20]
nginx looks pretty clean/easy...
does the config generator for FW support lighttpd and nginx?
[10:26]
MichaelDaumnope only apache [10:27]
harlan'k [10:27]
pharveyI seem to recall some scratchings of nginx notes on support somewhere [10:27]
MichaelDaumvirtualhostingcontrib comes with a lighttpd generator though it is not feature complete [10:27]
harlan'k.
I'm not about to head down that learning curve right now...
[10:28]
***Babar sets mode: +oooo AndreU Colas ColasHome CDot
Babar sets mode: +oooo gmc Lavr pharvey SvenDowideit
Babar sets mode: +o terceiro
Babar sets mode: +v WikiRingBot
[10:31]
....... (idle for 32mn)
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/8QsrHA
[foswiki/Release01x01] Item11440: Prevent test fail w/empty charset - PaulHarvey
[11:03]
***GithubBot has left [11:03]
FoswikiBothttp://foswiki.org/Tasks/Item11440 [ Item11440: Inside =<pre>= formatted text, =<b>=, =<strong>= tags are lost in WYSIWYG transition ] [11:03]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/e1dIew
[foswiki/master] Item11440: Prevent test fail w/empty charset - PaulHarvey
[11:04]
***GithubBot has left [11:04]
..... (idle for 22mn)
pharveyMichaelDaum, I'm wondering if Item11316 should be Foswiki 1.1/patch, I wonder if fixing this bug will cause problems for any site depending on the crappy behaviour ... [11:26]
FoswikiBothttp://foswiki.org/Tasks/Item11316 [ Item11316: =Foswiki::Render= inappropriately (ab)uses empty =<p>= tags ] [11:26]
MichaelDaumMichaelDaum clicks [11:26]
lotsa stuff to read up
what is the conclusion though / where is this heading now?
[11:31]
pharveysorry, the bug report is rambling, I'll fix that.
The task is now to just fix it so we remove empty p tags
and make paragraphs wrapped in <p>....</p>
[11:31]
MichaelDaumdo we finally aim at a proper <p> text goes here </p> renderer ?
MichaelDaum would love to see that
note that it also would ease inline editing
[11:31]
pharveyright - and actually I've been told that the current Foswiki behaviour is unacceptable for some site we're migrating to Foswiki - so this is must-fix :) [11:32]
MichaelDaumyumyum [11:32]
pharveyI'm just wondering if we can easily target patch release... or does it need some care
I'm wondering if anybody is depending on the crappy behaviour... will anybody need to adjust their CSS
[11:32]
MichaelDaumfor getting typographics right proper pees are unavoidable
no css adjustments are required afaics
[11:33]
pharveyand yet we've survived this problem for over a decade :/
ok
[11:33]
MichaelDaumther _would_ be breakage in layout using br instead of p [11:33]
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/jpZhZg
[foswiki/Release01x01] Item11440: add dummy test, avoid silently skipping - PaulHarvey
[11:33]
***GithubBot has left [11:33]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/btKbAw
[foswiki/master] Item11440: add dummy test, avoid silently skipping - PaulHarvey
[11:34]
***GithubBot has left [11:34]
FoswikiBothttp://foswiki.org/Tasks/Item11440 [ Item11440: Inside =<pre>= formatted text, =<b>=, =<strong>= tags are lost in WYSIWYG transition ] [11:34]
pharveyok, so I'll ask for forgiveness later :)
pharvey hax0ring tests
[11:36]
MichaelDaumMichaelDaum added his 2c [11:36]
question: how does the renderer protect input-values that contain ! not to remove it while rendering a for for edit?
while I can find where the ! is removed from the html, I can't see how the value attribute is protected from that ...
[11:49]
pharveyMichaelDaum: I think the contents of <tags> are protected [12:00]
MichaelDaumarent
try <input type="text" value="%FORMFIELD{"Text"}%" />
with Text being !WikiWord !WikiWord !WikiWord
only the first !WikiWord is protected
[12:00]
pharveyprotected from autolinking [12:00]
MichaelDaumthe others loose their ! [12:00]
pharveypharvey mumbles somethin 'bout dom this, dom that :) [12:01]
MichaelDaumrenders as <input type="text" value="!WikiWord WikiWord WikiWord" />
tough the content is 3x !WikiWord
[12:01]
pharveywell, that sounds like a bug.
I guess a temporary work-around is to put <literal> around the macro.
[12:01]
MichaelDaumthats what I am trying to do now in FlexFormPlugin [12:02]
pharvey... unless it's some renderForDisplay madness
nope, that's a render bug
http://trunk.foswiki.org/Sandbox/TestTopic44747
[12:02]
MichaelDaumy
MichaelDaum filing a but report
erm
[12:05]
pharveydon't forget assign component FoswikiRender [12:06]
MichaelDaumk [12:06]
http://foswiki.org/Tasks/Item11480 [12:15]
***kip3f has left [12:20]
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/jLsOnQ
[foswiki/Release01x01] Item2174: newline eating bug variant, annotate - PaulHarvey
[12:34]
***GithubBot has left [12:34]
FoswikiBothttp://foswiki.org/Tasks/Item2174 [ Item2174: WysiwygPlugin removes line breaks ] [12:35]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/I-7YTg
[foswiki/master] Item2174: newline eating bug variant, annotate - PaulHarvey
[12:35]
***GithubBot has left [12:35]
.......... (idle for 49mn)
MichaelDaumwhen did we add registerMETA to Foswiki::Meta.pm ? [13:24]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Meta [ (Foswiki login) PerlDoc ] [13:24]
MichaelDaumwas it foswiki-1.1.0 ?
or later
[13:24]
.... (idle for 19mn)
FlorianPMichaelDaum: HI MIchael its me and the solr plugin again ;-); Solr writes this error if i run solrstart: Caused by: java.lang.ClassNotFoundException: solr.ClassicTokenizerFactory any ideas? [13:43]
MichaelDaumFlorianP, try using the latest apache-solr-3.5.x [13:44]
FlorianPMichaelDaum: so just replace the solr.war in webapps? [13:45]
***laudo has left [13:58]
FlorianPMichaelDaum: i downloaded apache-solr-3.5.0.war an copied it into solr/webapps but the error is still the same [13:58]
pharveyMichaelDaum: we had it in 1.1.0 IIRC, but it wasn't working properly until 1.1.1 (or was it 1.1.2) [14:04]
MichaelDaumpharvey, oic. thanks!
so MetaDataPlugin will only be compatible with $Foswiki::Plugins::VERSION >= 2.2 ... I guess
[14:04]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Plugins::VERSION [ (Foswiki login) PerlDoc ] [14:05]
pharveyMichaelDaum: Item10418 [14:05]
FoswikiBothttp://foswiki.org/Tasks/Item10418 [ Item10418: registerMETA API changes didn't make it into 1.1.2 ] [14:05]
MichaelDaumheck, theres no docu on which occasions this VERSION tag was incr'ed [14:06]
..... (idle for 20mn)
LarsEikSolrPlugin seem to need XMLpath, I've seen someone missing that before....what module is that? [14:26]
MichaelDaumnot XMLpath
this is XML::Easy
::Easy is replaced with path on its way to the browser for whatever reasons. dont ask.
;)
[14:30]
LarsEikthanks [14:32]
gac410Actually the reason is easy .. I think. Any "path information" that might expose file system locations to a remote user is replaced with the literal "path". It probably ought to do a better job redacting and make it clearer. This confusion has happened before.
(Though I'm not sure what value it is hiding the path ... maybe prevents fingerprinting of the os? )
[14:36]
LarsEikI need to instal some java package? [14:40]
Babarjava package? Ah yes, jetty or tomcat, for the core of Solr, right? [14:41]
LarsEikdoc says a jetty engine is with the plugin... but some java is needed on the server I assume [14:42]
Babaryes, to run jetty :) [14:43]
LarsEikSo /var/www/foswiki/tools/solrstart says "ERROR can't find a solr home at /root/foswiki/trunk/core/solr-run"
and foswiki/solr/solr-contextxml contains "/home/www-data/foswiki/solr/webapps/solr.war" which is not my path. If the file is in use.
[14:48]
profElmHello, world! [14:52]
FlorianPLarsEik: You must start solr like solrstart /var........path to foswiki/solr [14:53]
gac410hello profElm [14:53]
profElmI'm really liking this idea of creating a foswiki.
My co-workers would like me to create a wiki for our small tech co. But I was wondering if there was any good practices that I should adhear to?
[14:54]
gac410hm. probably many different approaches... Having a champion or two to seed the wiki with useful information helps get others to adopt. Encourage editing and participation, not "ownership and control" [14:57]
profElmIs there a way that I can create a "recent changes" kind-of thing in the main page of a wiki?
In the main system page, have a recent change to a certain web?
[14:59]
gac410sure. It's just a search. [15:00]
profElmReally? [15:00]
LarsEikDarn, gotta go... no solr for me [15:00]
gac410It can be simple or complex. System/WebChanges - it's a search order=modified. You can use that on any page, and alter fomatting as desidred. http://foswiki.org/System/FoswikiSiteChanges?raw=on is a complex example. [15:03]
profElmgac410, thank you for being so informative! I'll definitely look into it.
RIGHT NOW!
:)
[15:04]
This looks pretty intimidating, but the code isn't TOO bad.
:)
[15:17]
TreibholzI want something like %TICKET{123}% to expand to <a href="http://tiketsystem.foo.bar/show/123>Ticket: 123</a> can I do this with normal variables or do I really need a plugin here? [15:21]
gac410InterwikiPlugin ... could expand Ticket:123
It is enabled by default. See foswiki.org/System/InterWikis
er. Foswiki:System/InterWikis
[15:22]
FoswikiBothttp://foswiki.org/System/InterWikis [ InterWikis ] [15:23]
gac410Copy that topic to Foswiki:Main/InterWikis ... there are customization instructions in the topic. [15:25]
FoswikiBothttp://foswiki.org/Main/InterWikis [ InterWikis ] [15:25]
Treibholzah, I can't do that as regular user? [15:25]
gac410You can use any topic you can modify, And the set statement can also be in WebPreferences, or anywhere in the topic preferences hierarchy
* Set INTERWIKIPLUGIN_RULESTOPIC = %SYSTEMWEB%.InterWikis, YourWeb.InterWikis
[15:27]
Treibholzahhh
thanls
[15:28]
FlorianPMichaelDaum: coping apache-solr-3.5.0.war to solr/webapps didn't solve the problem [15:30]
.................. (idle for 1h28mn)
***ModAcOst has left "Konversation terminated!" [16:58]
........... (idle for 51mn)
vopekarHello! doing profiling via NYTProf via command line ... but having trouble to "display" specific topic with the performance problems , instead it always processes WebHome topic [17:49]
AlexanderStHey, does anybody know what happes if the alphanumerical order within the webnotify topic isn´t corect?
does it matter in any case?
[17:50]
vopekare.g. "sudo -u apache perl -wTd:NYTProf view -topic Intranet.SomeTopic -username AdminUser" on command line it always displays "Intranet.WebHome", do you have any hints ? [17:50]
sebroederI disabled the WYSIWYG-Editor on a whole web with Set NOWYSIWYG = 0 but when I create a new topic I still get the WYSIWYG editor. How can I disable this?
in other words: the settings is only used for the "edit" action (verb in foswiki parlence?) but not for the "create" action
[18:00]
CDotAlexanderSt: it doesn't matter [18:08]
foswiki_irc0anyone here
got a foswiki exception about wide characters
[18:09]
..... (idle for 20mn)
profElmHey guys, is there a way to nest a topic inside a topic? [18:33]
gac410You mean %INCLUDE{"topicName"}% ... look through Foswiki:System/Macros for a list of stuff you can do. [18:34]
FoswikiBothttp://foswiki.org/System/Macros [ Macros ] [18:34]
profElmI think so.
For example, if I made something called procedures.
And then I wanted to say...
Procedures/Online
& Procedures/Offline
[18:36]
foswiki_irc0I've got this error "Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information. Wide character in memGzip" being thrown by Foswiki.pm line 904 on foswiki 1.1.3. Google searching led me to this discussion saying you should use Encode before calling memgzip (http://cpanforum.com/threads/8803). any thoughts on this? [18:37]
gac410That seems to be part of the Foswiki page cache? Actually I'd recommending disabling that - page cache has been a bit buggy. [18:39]
foswiki_irc0if ( $cachedPage && !$cachedPage->{isDirty} ) {
else
i think in this case, it's if the page is not in the cache right?
and we're in else
also, this is while trying to invoke a modified version of CompareRevisionsAddOn that I created a long time ago. used to work in foswiki 1.0.x
and it looks like that function got changed to include this memgzip stuff
the function we're in
[18:40]
gac410tbh, I've not used pageCache, and have no experience with wide characters. I recommend disabling $Foswiki::cfg{Cache}{Enabled} [18:42]
foswiki_irc0ok let me give that a shot and see what happens [18:42]
gac410Also disable $Foswiki::cfg{HttpCompress} [18:42]
foswiki_irc0caching is currently disabled
I tried to disable HTTPCompress...but I'm wondering if I need to restart apache http server after making that change
won't my pages be slower without the compression though
[18:42]
gac410If you are using fastcgi, fcgid or mod_perl, then you need to restart. Otherwise config is read for every request.
I've usually let the web server itself do compression using mod_gzip. I think it's available by default in apache now.
[18:43]
foswiki_irc0let me see if i have that [18:44]
ah looks like i have mod_deflate enabled and it's considered better than mod_gzip
i'll restart apache later today. thx gac410
[18:58]
............. (idle for 1h3mn)
tsnfoopharvey: you around? Is there anyway to make order="created" work under mongo? [20:01]
.................... (idle for 1h35mn)
pharveytsnfoo, I was working on it, but have been dragged to more urgent issues now. It's on my fix-it-last-month-already list.. [21:36]
tsnfooLOL!
I'm currently building a stupidly complex workaround
Not going well :-(
[21:37]
pharveyintroduced in Item11215, to be fixed as Item11364 [21:38]
FoswikiBothttp://foswiki.org/Tasks/Item11215 [ Item11215: Search pager broken when filtering on date ] http://foswiki.org/Tasks/Item11364 [ Item11364: Add unit tests for filterByDate changes in Item11215 ] [21:38]
pharveyif you're desperate you could try reverting Foswikirev:12938 [21:38]
FoswikiBothttp://trac.foswiki.org/changeset/12938 [ Changeset 12938 – Foswiki ] [21:38]
tsnfootsnfoo is looking at the diff [21:39]
Reverting that would be hella easier than my current 72 step workaround, where I build a pipe-separated list of topics concatenated with their timestamps, sort that, split it into a new list, then generate the final output with a FILTER macro.
Which is hell ugly, just to sort something on a timestamp...
:-)
[21:45]
pharveygotta run [21:59]
................ (idle for 1h17mn)
LarsEikfor the logs... had to mkdir /var/www/foswiki/solr/logs directory for solr to start. Started solr by cd to ../foswiki/solr and java-jar start.jar [23:16]
....... (idle for 30mn)
foswiki_irc7Hi, is there a way to show content on the page depending on if the page was attachments or not?
Hi, is there a way to show content on the page depending on if the page was attachments or not?
sorry: "Has attachments or not?"
[23:46]
gac410foswiki_irc7: try %IF{"%QUERY{"length(attachments[NOT lc(attr)=~'h'])"}% > 0" then="$percntINCLUDE{$quotSomeTopic$quot}$percnt"}% [23:50]
pharveyfoswiki_irc7: perhaps something like %IF{"'ASEWEB%.ASETOPIC%'/attachments" then="Has attachments" else="No attachments"}%
or what gac410 said :)
[23:50]
foswiki_irc7thanks, I try those. [23:51]
pharveyso, I would write it as %IF{"attachments[NOT lc(attr)=~'h']" then="... - IF understands everything that QUERY does.
and has a perlish concept of true/false, so usually not necessary to test the length & compare to zero, although it does make it easier to understand perhaps
[23:52]
gac410The one I posted will show the text only if there are attachments that are not hidden. Pharvey's original version tests if any attachments are present, hidden or not. [23:53]
pharveySvenDowideit, did you see tsnfoo is our 3rd mongodb user? Hehe
gac410, started fixing up some Wysiwyg bugs last night. What else should block a 1.1.5?
Anyway, it's just a plugin that can be upgraded separately I guess.
[23:54]

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