#foswiki 2011-09-27,Tue

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

WhoWhatWhen
***pharvey has joined #foswiki
kip3f has quit IRC (Quit: kip3f)
[00:12]
gac410CDot: If you check the logs later, could you look over Timothe's suggestions in Item11136. I'm leaving it waiting for release for now. [00:18]
FoswikiBothttp://foswiki.org/Tasks/Item11136 [ Item11136: Spurrious config item changes reported by configure ] [00:18]
pharveyMartinCleaver: AFAIK username as E-mail address is supported. There's some configure setting you need to change (to map loginname to wikiname?) [00:20]
gac410hi pharvey [00:21]
pharveyhowdy
MartinCleaver: {Register}{AllowLoginName}
[00:21]
MartinCleavery, and no other users see that, right? [00:23]
pharveyAFAIK when they register (or, when you create the accounts), you need to give them a loginname (email) + wikiname (user topic). But IIRC they still only get one username field when they login
MartinCleaver: I'm only vaguely aware of this feature, I don't use it on my own wiki. The others should know more :-)
[00:25]
MartinCleaverit's been so long since I used it that I had thought it made made the WikiName into an email address --
thanks - I'll have to try it!
:)
[00:27]
.... (idle for 16mn)
Here's a question - I'm using AutoViewTemplatePlugin - when I create a new topic of a given type/form it does not recognize the new topic to be using that form, so the EditTemplate doesn't apply
but I want it to apply
so, shouldn't it apply by default?
(not because I want it, because it makes sense that if it should apply during edit it should equally apply create)
[00:44]
pharveyMartinCleaver: you are correct, it should. I remember having this problem, is there a task open?
a temporary work-around is to add ?template=The.EditTemplate
[00:53]
MartinCleaverNo, I have looked for one. I'm trying to fix the issue at the mo.
MartinCleaver will try that
[00:54]
pharveyreally needs a task + unit test
skin templates are way too magical
Item8249 looks related
[00:54]
FoswikiBothttp://foswiki.org/Tasks/Item8249 [ Item8249: AutoViewTemplatePlugin: changing the form does not switch the EDIT_TEMPLATE ] [00:55]
MartinCleaverMartinCleaver nods [00:56]
pharveyperhaps re-open that task [00:56]
MartinCleavernot really the same (?) [00:57]
pharveywell, if you create a new one, please reference it. I have a feeling we're doing a $topicObject->get('FORM')->{name} which of course will return nothing on a not-yet-created topic [00:57]
MartinCleavery, that's exactly what we are doing [00:58]
pharveyalso true if you switch forms, you'll get stale form name instead of the one you switched to [00:58]
MartinCleaverI just hacked the form name in, and it works fine thereonin [00:58]
pharveyso both these scenarios need better handling [00:58]
MartinCleavery, the 2nd is MichaelDaum's 8249 [00:58]
pharveyit seems we never addressed the problem
at least not in AutoView
maybe Micha fixed it in AutoTemplate
[00:59]
MartinCleaverY, good point - I should switch to that and see if it works any differently
ok - I have to go
thanks pharvey
[01:01]
***MartinCleaver has quit IRC (Quit: MartinCleaver) [01:06]
..... (idle for 24mn)
Lynnwood has quit IRC (Quit: Lynnwood) [01:30]
gac410Hm. Looking at the requirement to mask ip addresses in foswiki logs - Wonder if transforming the ip character string into a crc-32 and using that number would be sufficient obfsucation. [01:41]
pharveyI like the idea of a hash. Is crc32 any easier than md5 or sha1? [01:50]
gac410Well crc-32 give you a 32 bit field which maps back to an ip address without folding, etc. sha or md5 would have to be folded or truncated. [01:51]
***kip3f_ has joined #foswiki [01:54]
pharveythat's compelling, but I wonder if crc32 is easily reversible
in that case
[01:56]
gac410yeah - was wondering about that - hence my question ;-)
I suppose just taking the first 8 hex digits of the md5 would be okay too -
[01:57]
pharveyhrm, there's a big paper about manipulating unimportant bits in some arbitrary data to arrive at a desired crc32 value
truncating a different hash seems more interesting
[01:58]
gac410It would be easier to randomize them but for debugging purposes it would be better that a given IP always transformed to the same string. [02:00]
pharveyFoswikiBot: corelist Digest::SHA
I agree
[02:00]
FoswikiBotpharvey: Digest::SHA was first released with perl 5.009003 (released on 2006-01-28) [02:00]
gac410FoswikiBot: corelist Digest::MD5 [02:01]
FoswikiBotgac410: Digest::MD5 was first released with perl 5.007003 (released on 2002-03-05) [02:01]
pharveyI guess we don't want to force perl 5.10 just yet :P
I'd say truncating md5 is probably good enough... we can make it configurable I guess
[02:01]
gac410well it's easy enough to install Digest::SHA - and if you want reasonable apache passwords SHA is better anyway [02:02]
pharveywe could just make this feature depend on Digest::SHA - out-of-the-box Foswiki won't be obfuscating IPs
It's just that everything I read about md5 screams "there's no excuse to be still using md5" :)
[02:03]
gac410yeah - CRC is not core either. SHA has a better chance of being there
So if I can make perl object magic work, I want to implement a Foswiki::Logger::PlainFile::Obfuscating that implements the "log" method, whacks the ip address field, and then calls the SUPER method.
[02:03]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Logger::PlainFile::Obfuscating [ (Foswiki login) PerlDoc ] [02:05]
gac410I think that makes sense? [02:05]
***kip3f_ has quit IRC (Quit: kip3f_) [02:13]
................. (idle for 1h22mn)
pharveygac410: sounds good [03:35]
gac410Works good. Probably poor practices .. and for now I'm assuming the 5th parameter is always an IP address. But it works [03:35]
pharveyI am consistently dizzied by the number of competing best practices in perl :) [03:36]
gac410Need to talk to cdot - is his plan to allow future log reformatting. The logger joins the fields together without any indication of what is what.
yeah, well I have great aspirations for mediocre
If $Foswiki::cfg{Log}{Obfuscating}{MaskIP} is true, then it replaces the IP with x.x.x.x otherwise it replaces the ip with the first 8 hex digits of the md5 converted back to dotted-decimal
Oh .. and if the log record is an authentication error, it doesn't obfuscate - i figure someone possibly attacking does not deserve to be hidden. That way tools like fail2ban have a real IP to work with.
I'll check it into trunk for cdot to throw eggs at. ;-)
[03:36]
pharveycool :) [03:43]
.... (idle for 18mn)
d'oh: A umask of 1777777777777777776002 is required :) [04:01]
gac410huh? [04:02]
***GithubBot has joined #foswiki [04:02]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/ZkR84w
[foswiki/master] Item10637: Implement an obfuscating logger - GeorgeClark
[04:02]
***GithubBot has left [04:02]
FoswikiBothttp://foswiki.org/Tasks/Item10637 [ Item10637: Allow IP addresses to be supressed from logs ] [04:02]
pharvey{RCS}{overrideUmask} is unchecked but the value checker is reporting a problem
"A umask of 1777777777777777776002 is required to support the configured Directory and File masks of 2775 and 2664."
[04:02]
gac410strange.
That code's been in trunk for ages - what is going on?
2755 and 2644 - where did the 2 come from. defaults are 0755 and 0644 - octal.
[04:03]
I doubt the code makes any sort of sanity checks on valid permission settings - They are all expert parameters. It mainly makes sure that if you run under Suexec, the restricted umask gets dealt with. [04:15]
pharveyrunning with group sticky bit on directories [04:17]
gac410well the code is certainly broken by that. I've never set those bits. I assume it needs to be entered as 02755 and 02644 in the fields- but things are still messed up. [04:19]
pharveyindeed 02775 is set, but still borked. Shall look into it later [04:21]
gac410okay thanks pharvey - I don't think I had any thoughts about the extra bits when I worked on that code. Why sticky bits? [04:25]
pharveywe have a shared development instance, and constantly re-chowning data & pub makes me tired [04:25]
gac410Ah - I had a cron job where I worked that did the chown every 10 minutes or so ... The suexec issue caused new directories to be created with the wrong permissions.
I don't think the sticky bits apply to umask, so code needs to mask them off before doing the umask calculation.
If you don't get to it, open a task and I can try to get to it tomorrow.
[04:29]
***gac410 has left [04:32]
............. (idle for 1h3mn)
foswiki_irc8 has joined #foswiki [05:35]
foswiki_irc8hi everyone... i just installed foswiki on my ubuntu box using the apt-get repo instructions. i setup a subdomain on my server: wiki.mydomain.com, and wonder if there's an example conf file i can use to modify. [05:36]
..... (idle for 20mn)
***foswiki_irc8 has quit IRC (Ping timeout: 252 seconds) [05:56]
..... (idle for 20mn)
CDot has joined #foswiki [06:16]
.... (idle for 18mn)
VerboEse|Off is now known as verboese [06:34]
...... (idle for 29mn)
dnavarro has joined #foswiki
ModAcOst has joined #foswiki
[07:03]
MichaelDaum has joined #foswiki
MichaelDaum has quit IRC (Changing host)
MichaelDaum has joined #foswiki
ChanServ sets mode: +o MichaelDaum
denisr has joined #foswiki
[07:12]
MichaelDaumhey guys, got a configure question
why does it barf "directory insufficient permission: 0755 should be 0775"
that is allow group read-write-execute rights. that's bogus imho.
basically 0700 would be better for security reasons
why do we need world-readable on the server, that is everybody with a login can read the files no matter which other perms are set in foswiki itself?
that's fatal in a sso env
next: the store tab gives me another error umas 022 is not compatible ... wot=
?
isnt that bullshit?
[07:27]
pharveyMichaelDaum: it's validating your umask against the actual file permissions you have set in data & pub [07:40]
MichaelDaumso? [07:42]
pharveyactually it's saying you've got a $Foswiki::cfg{RCS}{dirPermission}/filePermission that doesn't match what you have on disk
I guess if you want 0700 you need to tell that to RCS
{RCS}{dirPermission}
etc.
I guess if the error message is confusing to you, this means the error message desperately needs improvement :) Maybe a link to a permissions SupplementalDoc
but probably a hint to update/correct {RCS}{dirPermission} would be enough
[07:42]
MichaelDaumah ok...tweaking both dirPerms, filePerms and going thru the actual perms on the dirs now starts making sense [07:46]
pharveymaybe "0755 should be 0775" could be better re-worded, "0755 but expected 0775 according to {RCS}{fooPermission}" [07:48]
MichaelDaumdata/TWiki missing ... well of course it is missing in *all* of my installs [07:49]
pharveydoes that happen even if TWikiCompat is not enabled? [07:51]
MichaelDaumy
MichaelDaum disabled and removed
[07:52]
pharveysounds like we have a checker that lives in core but belongs in TCP
MichaelDaum: needs-a-task :P
pharvey created Item11148
[07:53]
FoswikiBothttp://foswiki.org/Tasks/Item11148 [ Item11148: Configure does't handle sticky group permissions ] [07:55]
pharveyperhaps you can hijack that task [07:55]
***pharvey has quit IRC (Quit: ChatZilla 0.9.87 [Firefox 3.6.22/20110905191701])
Alexander__ has joined #foswiki
MartinRowe has joined #foswiki
[07:56]
MichaelDaumrenamed Item11148 [08:02]
***McAldo has joined #foswiki [08:14]
McAldohello [08:15]
***CDot has quit IRC (Quit: Leaving.) [08:20]
........ (idle for 36mn)
Colas has joined #foswiki [08:56]
OliverKrueger has joined #foswiki
OliverKrueger has quit IRC (Changing host)
OliverKrueger has joined #foswiki
ChanServ sets mode: +o OliverKrueger
OliverKrueger sets mode: +oooo Colas ColasHome MartinRowe McAldo
OliverKrueger sets mode: +oo tsnfoo uebera||
[09:06]
McAldois there a subroutine to call code before create a topic?
i want to check if a topic exist
this must call when a topic create with a form, too
[09:21]
***pharvey has joined #foswiki [09:22]
pharveyMcAldo: Foswiki::Func::topicExists [09:23]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Func [ (Foswiki login) PerlDoc ] [09:23]
McAldopharvey, yes. i found this function [09:23]
pharveyk [09:23]
McAldoah ..., i edit the wrong plugin file
:/
[09:24]
SvenDowideitargh.
i've been distracted
top of current mind stack == federatedwiki :/
[09:38]
***foswiki_irc5 has joined #foswiki [09:50]
pharveyDistractions? What are those?
pondering the doomed-ness of sorting on QuerySearch expressions, even worse, sorting on indirect (OP_ref) properties
makes me wonder if a CouchDB approach wouldn't be so bad after all: once you start "caching" artifacts of a particular view into the documents, you might as well go the whole way and dynamically generate views as needed
and as much as I admire neo4j, some proof that the http rest API is "good enough" for a chatty thing as a Foswiki Store needs to be obtained
transactions over rest seems immature though
[09:55]
...... (idle for 26mn)
MichaelDaumfederatedwiki ... sounds very gitish
more than that I like the edit interactions
MichaelDaum wished foswiki had a clear notion of what a paragraph is
[10:27]
***OliverKrueger sets mode: +o pharvey [10:28]
.... (idle for 15mn)
foswiki_irc5 has quit IRC (Ping timeout: 252 seconds)
OliverKrueger has quit IRC (Quit: OliverKrueger)
[10:43]
SvenDowideit20:27 <@MichaelDaum> federatedwiki ... sounds very gitish
very, and very puxzzling
there's a 'loadl edit' tickbox that has allowed my to get a local edit that is different from the server side, but the code doesn't have a way to tell me
[10:51]
***verboese is now known as VerboEse|Off [10:52]
MichaelDaumMichaelDaum wonders how to decide which of the 10k pages comming in to my personal federatedwiki are _not_ spam [10:52]
SvenDowideitkeeps giving me the local version
giggle
I'm struggling to figure out how one might even visialise
same pain as git itself - so i git pull, now i get to eyeball all 10GB of changes?
[10:52]
MichaelDaummore realistic is to define a subspace that is meant to be merged based on an invitation or so ... (invitation is soooo 2011)
pulling changes from a git upstream only updates the store first, not the checkout area
[10:54]
SvenDowideitmmm, so like i did with my store2 github?
i told pharvey to merge his changes into my repo?
(invite ~~ i added commit for him)
[10:56]
MichaelDaumsending over a token like doodle [10:56]
SvenDowideitthats not _that_ differen from my pulling his already rebased to my repo changes into my repo
SvenDowideit knows not what doodle is
[10:56]
MichaelDaumhttp://doodle.com/ [10:57]
SvenDowideiti went there, and it didn't tell me how to interpert 'sending over a token like doodle'
so i hoped you'd explain
[10:58]
MichaelDaumoh I wasn't aware that you never doodled before (hihi)
it lets you set up a poll
[10:59]
SvenDowideitreally? the web page talks of scheduling, not poll [11:00]
MichaelDaumthen you import a set of email addresses and you click on contact invitees ... each one gets an email with a personal link into the poll which has got a token id to identify the invitee and map em to the set of perms he has got. [11:01]
***OliverKrueger has joined #foswiki
OliverKrueger has quit IRC (Changing host)
OliverKrueger has joined #foswiki
ChanServ sets mode: +o OliverKrueger
[11:01]
MichaelDaumnot very secure of course, but who cares for doodle security. [11:02]
pharveybeen abusing git-subtree in some experiments
as an alternative to git submodules
I was about to say that you could possibly use it to branch/push/pull/merge a subdirectory in git as if it were a submodule for the purposes of confederating
but I can't do it with a straight face
anyway, first step is a git store that replaces rcs
we'll get right on that, after I do UTF8 support, right? :P
[11:02]
SvenDowideitgit store i recon will happen in store2.0
utf8 i'm unlikely to touch
at least, not without it being a full time permanent paid job with danger pay
[11:05]
pharveyI've just got to make a non-destructive test, that doesn't mutilate the localsite.cfg
"just"
and then I wanted startup & shutdown on test suites
and then everybody said no
and then I looked at using Test::More & Test::Class :P
[11:06]
SvenDowideitSvenDowideit goes back to federation [11:08]
***mark_doe has joined #foswiki [11:09]
pharveybtw SvenDowideit am I allowed to lament the loss of lexical scoping of oldskool args vs newfangled %args in the new methods :P [11:10]
SvenDowideitonly if i feel generous :p [11:12]
***VerboEse|Off is now known as verboese [11:14]
MichaelDaumBabar, you are there? [11:19]
***MartinCleaver has joined #foswiki
MartinCleaver has quit IRC (Changing host)
MartinCleaver has joined #foswiki
[11:22]
MartinCleaverMartinCleaver rends backlog [11:26]
SvenDowideitMartinCleaver: wrt email log [11:26]
***kip3f has joined #foswiki [11:26]
MartinCleaver-in [11:27]
SvenDowideitpretty easy code change to TemplateLogin imo [11:27]
***Alexander__ has quit IRC (Ping timeout: 276 seconds) [11:27]
MartinCleaverso it's not currently capable?
comparatively, what does the current support do?
[11:27]
SvenDowideittemplate login uses the loginname, whatever that is set ot
the current code _does_ allow you to set login name to email address, but that is weak, due to users changing their email when they leave a company
(iirc, you only need to change the cfg regex
[11:32]
BabarMichaelDaum: I am [11:34]
MartinCleaverCan the existing system handle any change of login name (e.g. mrjcleaver -> martincleaver) while maintaining linkage to the same WikiName (e.g. MartinCleaver)
?
[11:34]
SvenDowideitbeats me
i don't think anyone ever coded up a 'change loginname' functionality
[11:35]
MichaelDaumBabar, as things look like we will be having the Foswiki GA on 18-20. Nov ... is it possible to host that at CERN? [11:36]
SvenDowideitand tbh, that would be pretty messy, as loginname->cuid xform should be fast [11:36]
BabarMichaelDaum: sure [11:36]
MichaelDaumcool stuff [11:36]
MartinCleavery, I agree. Well, I suspect that for the proof of concept we're presently working on we can't justify building the change login name. But it's good to be able to make the login based on email addresses. [11:37]
MichaelDaumokay I will discuss this within the board and then we can send out invitations [11:37]
MartinCleaverthanks SvenDowideit
MichaelDaum: I had this chat with pharvey last night re:AutoViewTemplate http://irclogs.foswiki.org/bin/irclogger_log/foswiki?date=2011-09-27,Tue&sel=15#l11 -- I just tested AutoTemplate and it seems to have the same issue
[11:37]
OliverKruegerSvenDowideit: are you in control of the email configuration for the foswiki.org domain? [11:41]
***Alexander__ has joined #foswiki
Alexander__ has quit IRC (Client Quit)
kip3f has left
[11:45]
OliverKruegerSvenDowideit: if so, may I ask you to create a board@foswiki.org with our addresses? [11:51]
***Alexander__ has joined #foswiki [12:02]
Lynnwood has joined #foswiki
OliverKrueger sets mode: +o Lynnwood
OliverKrueger sets mode: +o MartinCleaver
OliverKrueger has quit IRC (Quit: OliverKrueger)
[12:11]
..... (idle for 22mn)
pharveypharvey concedes that neo4j feels too java-ry [12:33]
***pharvey has quit IRC (Quit: ChatZilla 0.9.87 [Iceweasel 6.0/20110815162918])
Alexander__ has quit IRC (Quit: ChatZilla 0.9.87 [Firefox 6.0.2/20110902133214])
[12:33]
....... (idle for 33mn)
gac410 has joined #foswiki
leik has joined #foswiki
[13:09]
gac410MichaelDaum: IIRC, Kenneth was pretty insistent back last time we visited file permissions that "ease of installation" should trump "secure out of the box" We can go through and change all the manifests to 700, but I suspect that will be ugly. [13:18]
MichaelDaumoh does it hamper ease of installation? why? [13:18]
gac410For one thing on any hosted site where the web server itself runs with different ownership / permissions than the cgi scripts suexec environments [13:19]
***uebera|| has quit IRC (Excess Flood) [13:19]
gac410The group permissions allow the server to access files [13:19]
***uebera|| has joined #foswiki [13:20]
gac410I'm sure this is deja vu all over again and it will start another permissions battle. However pharvey issue with broken umask checking if sticky bits are set is a real bug that needs to be fixed. [13:21]
MichaelDaumthe situation on a hosted site (presumably using suexec and / or vhosts) is even more insecure as any other customer on the same host can read your wiki, right? [13:21]
gac410I don't disagree, but if the web server cannot read pub, things kinda go downhill fast. [13:22]
MichaelDaumI am by no means heading towards any such battle, dont get me wrong here.
if foswiki/barebones comes with 775/644 so be it. can't help with many other decisions anyway.
[13:23]
gac410The real fix unfortunately is to change every manifest in core and all extensions. All the checker is doing is warning if files vary from our default, [13:24]
MichaelDaumfor enterprise setups however things are different, much different. and fileperms is one of em
yea, did not think of manifests
[13:24]
gac410Actually in the enterprise servers I was involved in, permissions didn't matter because the servers were single use VMs and it took an act of god to get shell access.
anyway - I'd like to un-hijack that task. Fixing pharvey's code problem is "simple matter of code". Changing default permissions is venturing into religious and philosophical discussions :-)
[13:25]
MichaelDaumright, let's split it.
I'd be happy to see Kenneth on some religious fight ... at least some sign of activity from him.
[13:28]
gac410yeah - I think he's gotten pulled away lately. He does comment on tasks though marked waiting for him.
we do really need to get 114 out. there are some really important fixes pending
[13:31]
***Lynnwood has quit IRC (Remote host closed the connection) [13:33]
.... (idle for 15mn)
verboese is now known as VerboEse|Off [13:48]
Alexander__ has joined #foswiki [13:55]
Alexander__Hi there, can anyone explain the very_clean option in WysiwygPlugin? [13:55]
MichaelDaumto all javascript core developers: do enable $Foswiki::cfg{JQueryPlugin}{NoConflict} = 1; ... always
jscalendarcontrib is broken for that reason
[13:57]
gac410Is that just developers or everyone? Do we need a checker to warn if jscalendarcontrib is enabled [13:58]
***GithubBot has joined #foswiki [14:01]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/gUW-5Q
[foswiki/master] Item11149: fixed date widget when using jQuery in no-conflict mode - MichaelDaum
[14:01]
***GithubBot has left [14:01]
FoswikiBothttp://foswiki.org/Tasks/Item11149 [ Item11149: jscalendar broken when using jquery in noconflict mode ] [14:01]
MichaelDaumgac410, people tend to use a naket $ when doing jQuery. That's not recommended. [14:03]
gac410gac410 confused a bit. So enabling NoConflict allows developers to catch the issues? Or NoConflict allows jscalendarcontrib to function ... [14:04]
MichaelDaumthe former [14:05]
gac410ah - okay thanks.
btw - fixed pharvey's issue - needed to mask off sticky bits before calculating required umask in checker and in Foswiki/Engine
[14:06]
MartinCleaverFor an unsaved topic, how should a plugin determine which form is in use? [14:07]
Alexander__MichaelDaum: Did you get libxml-easy-perl for Solr from CPAN? [14:07]
MichaelDaumcpan [14:07]
Alexander__k [14:07]
gac410MartinCleaver: Shouldn't that be stored in the meta object passed to the handlers? [14:08]
MartinCleaverGood question.
MartinCleaver loks
looks, even
[14:08]
MichaelDaumAlexander__, my guess: some of your custom plugins introduced a tainted string ... which then gets picked up internally thus propagating the taintedness [14:08]
***Lynnwood has joined #foswiki
Lynnwood has quit IRC (Changing host)
Lynnwood has joined #foswiki
[14:10]
GithubBot has joined #foswiki [14:17]
GithubBot[foswiki] foswiki pushed 1 new commit to Release01x01: http://git.io/lpMI8g
[foswiki/Release01x01] Item11149: merged trunk - MichaelDaum
[14:17]
***GithubBot has left [14:17]
Alexander__MichaelDaum: We just deactivated all custom plugins...still not working ;) [14:18]
***GithubBot has joined #foswiki [14:32]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/tBTp5A
[foswiki/master] Item11148: Mask off sticky bits from umask calcu - GeorgeClark
[14:32]
***GithubBot has left [14:32]
FoswikiBothttp://foswiki.org/Tasks/Item11148 [ Item11148: Configure does't handle sticky group permissions ] [14:32]
gac410MichaelDaum: I fixed pharvey's issue. Also the bug he found was only in trunk, not in release branch. So updated task to trunk only. [14:33]
MartinCleavergac410: the meta object is passed in on the *Handler calls. But, Auto*TemplatePlugins do all their work during initPlugin
e.g. https://github.com/foswiki/AutoTemplatePlugin/blob/master/lib/Foswiki/Plugins/AutoTemplatePlugin.pm
around L49 - it checks the disk for the topic. But there is no topic for during create.
oh - I guess Foswiki::Func
[14:34]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Func [ (Foswiki login) PerlDoc ] [14:37]
gac410Yeah - there is no meta object during initPlugin yet I don't think anyway. Anyway going over my head here I guess. [14:38]
MartinCleaverthx gac410 [14:42]
LynnwoodHas anyone else run into this bug of late: Tasks/Item9836 [14:43]
FoswikiBothttp://foswiki.org/Tasks/Item9836 [ Item9836: =JavascriptFiles/foswikiPref= doesn't always get expanded ] [14:43]
LynnwoodI've got a brand-new installation using NatSkin and i'm running into it.
from discussion on that task, it appears this is pretty rare.
The fix posted there involves patches to TwistyPlugin which i'd rather not do if it will just get over-written the next time i update.
I'd welcome any feedback anyone might have.
thanks in advance
[14:43]
MartinCleaverMartinCleaver hasn't [14:45]
Lynnwoodit doesn't appear to be an issue of script loading sequence... [14:49]
well... it doesn't appear that JavascriptFiles/foswikiPref.js is getting loaded at all. i suppose that could be an issue. [14:57]
***wdenk2 has joined #foswiki [15:02]
gac410Lynnwood: directory and file permissions, and puburlpath set correctly? [15:03]
Lynnwoodgac410 - good questions. i'm pretty sure they are but will check. [15:03]
***wdenk1 has quit IRC (Ping timeout: 248 seconds) [15:04]
Lynnwoodi'm also checking settings for JQueryPlugin to see if this script is listed as one to load [15:04]
gac410gac410 disappears again [15:05]
Lynnwood...only the grin remains... ;-) [15:05]
***denisr has quit IRC (Quit: Parti) [15:17]
LynnwoodOK, i see that NatSkin templates are full of addToZone("body"... calls.
It's not clear to me that the core implementation of VarADDTOZONE knows what to do with body references.
although... if that's the case, then i'd think a LOT more would be broken.
[15:29]
Babarwhy wouldn't the core know what to do with body references?
that's what you're supposed to use for CSS
[15:30]
Lynnwoodnot "head"? [15:31]
Babarsorry
CSS should be head, JS should be body
[15:31]
Lynnwoodi just don't see any references to "body" zone in core VarADDTOZONE docs [15:31]
BabarBabar never remembers... [15:31]
Lynnwood:-) [15:31]
BabarMicha coded both, so he should know :) [15:31]
Lynnwoodin place of "body" "script" is use [15:32]
Babarah right
it's true it was renamed
[15:32]
Lynnwoodwould be nice if it still recognizes body, even if slated for deprecation
and probably is... since i would think NatSkin would just blow up since it uses the body ref a lot
[15:32]
***uebera|| has quit IRC (Ping timeout: 240 seconds)
MartinRowe has quit IRC (Quit: Leaving.)
[15:43]
Alexander__ has quit IRC (Quit: ChatZilla 0.9.87 [Firefox 6.0.2/20110902133214])
Colas has quit IRC (Ping timeout: 258 seconds)
MichaelDaum has quit IRC (Remote host closed the connection)
ModAcOst has quit IRC (Remote host closed the connection)
[15:52]
....... (idle for 31mn)
gac410Lynnwood: ADDTOZONE translates body to script. Has a warning message that is commented out. [16:28]
***uebera|| has joined #foswiki
uebera|| has quit IRC (Changing host)
uebera|| has joined #foswiki
[16:41]
MartinCleaverMartinCleaver saves Tasks.Item11150 [16:48]
FoswikiBothttp://foswiki.org/Tasks/Item11150 [ Item11150: Auto*TemplatePlugins can't see Meta of being-created topics ] [16:48]
..... (idle for 20mn)
***uebera|| has quit IRC (Excess Flood)
uebera|| has joined #foswiki
[17:08]
dnavarro has quit IRC (Quit: Leaving)
uebera|| has quit IRC (Changing host)
uebera|| has joined #foswiki
[17:14]
ArthurClemens has joined #foswiki [17:25]
.......... (idle for 49mn)
MartinCleaverIs there some sort of warning system for checking parameters passed, such that if the dev writes incorrectly templatetopic when Foswiki uses a well-known standard topictemplate that it warns somewhere? [18:14]
MartinCleaver is losing it [18:20]
***Lynnwood has quit IRC (Remote host closed the connection) [18:26]
mark_doe has quit IRC (Remote host closed the connection)
Lynnwood has joined #foswiki
Lynnwood has quit IRC (Changing host)
Lynnwood has joined #foswiki
[18:35]
LynnwoodMartinCleaver: I can remember running into that problem before.
what i had to do was add a "template" parameter.
cause until the topic is saved with the form, it doesn't know what view/edit template to use.
[18:39]
...... (idle for 26mn)
MartinCleaverLynnwood: can you remind me (of a page that explains) the difference between templatetopic and template? [19:06]
Lynnwoodtemplate url param is same as VIEW_TEMPLATE or EDIT_TEMPLATE and i _think_ it is mentioned in same plae.
palce
ugg. place
just a sec
[19:08]
MartinCleaverso what is templatetopic?
k
[19:08]
Lynnwoodtemplatetopic specifies the template to be used for creating the new topic.
e.g. the more "common" understanding of templates
here you go: http://foswiki.org/System/CommandAndCGIScripts#A_61edit_61
it mentions both paramters
[19:09]
MartinCleaverthx [19:10]
Lynnwoodand watch the "gotcha" on referencing the edit template:
if the actual topic is called MyFormEditTemplate, the form element would be like this:
<input type='hidden' name='template' value='%WEB%.MyFormEdit' >
[19:10]
***ArthurClemen has joined #foswiki
ArthurClemens has quit IRC (Ping timeout: 252 seconds)
[19:20]
........... (idle for 51mn)
MartinCleaver has quit IRC (Quit: MartinCleaver) [20:11]
MartinCleaver has joined #foswiki [20:19]
MartinCleaverwoah. that indeed is a gotcha.
(thx Lynnwood
)
[20:20]
Lynnwoodnp [20:21]
***MartinCleaver has left
MartinCleaver has joined #foswiki
MartinCleaver has left
MartinCleaver has joined #foswiki
[20:24]
MartinCleaverWe should find a way to make this template skintemplate topictemplate templatetopic stuff less confusing
perhaps deprecate template altogether
e..g. skinframe and boilerplatetext
MartinCleaver supposes its a bit late now
[20:26]
Lynnwoody, it's a confusing bit of terminology [20:28]
MartinCleavermakes for a terrible learning experience [20:28]
Lynnwoodbut yes, also, it's pretty deep in there [20:28]
MartinCleaverperhaps just aliases with good names
This http://foswiki.org/System/CommandAndCGIScripts#A_61edit_61 is ambiguous -
the new topic creation section doesn't say whether the parameters listed is instead of the regular edit list
[20:28]
Lynnwood: whereabouts is this written: "if the actual topic is called MyFormEditTemplate, the form element would be like this: <input type='hidden' name='template' value='%WEB%.MyFormEdit' >" ?
it's true, but how horrid.
MartinCleaver has been using TWiki for a decade this year.
[20:38]
LynnwoodMartinCleaver: I'm afraid i just know it from the spec for EDIT_TEMPLATE which acts the same way
it is a horrid little practice
never understood it
[20:41]
MartinCleaverman, such cruft.
it's this sort of thing that gives a platform a bad reputation
it's too easily misunderstood and forgotten
MartinCleaver didn't need those apostrophes
MartinCleaver looks for a topic in development on which to complain
Doubtless its something to do with {TemplatePath} having the literal Template in $web.$skinSkin$nameTemplate,
no… $web.$nameTemplate,
where $name=MyFormEdit appended by Template
still horrid
[20:42]
***OliverKrueger has joined #foswiki
OliverKrueger has quit IRC (Changing host)
OliverKrueger has joined #foswiki
ChanServ sets mode: +o OliverKrueger
[20:56]
MartinCleaverHi OliverKrueger [20:57]
***OliverKrueger sets mode: +oooo ArthurClemen gac410 Lynnwood MartinCleaver
OliverKrueger sets mode: +o uebera||
[20:57]
OliverKruegerHi MartinCleaver [20:57]
MartinCleaverI've been looking at Auto*TemplatePlugin
and that it doesn't recognize a new topic of a given type/form as needing the appropriate EditSkinTemplate
Asking Meta for the metadata of the newly created topic doesn't work - there is nothing on disk
[20:57]
OliverKruegerWhen I wrote the plugin, I wasnt using edit templates. Maybe its just buggy.
OliverKrueger has to look at the code.
[20:59]
MartinCleaverhttp://foswiki.org/Tasks/Item11150#r1
https://github.com/foswiki/AutoTemplatePlugin/blob/master/lib/Foswiki/Plugins/AutoTemplatePlugin.pm
[20:59]
***t35t0r has joined #foswiki
t35t0r has quit IRC (Changing host)
t35t0r has joined #foswiki
[21:00]
MartinCleaverThe problem applies equally to both plugins [21:00]
***sezuan has quit IRC (Ping timeout: 244 seconds) [21:02]
OliverKruegerDo you suggest a different hook other than initPlugin? [21:03]
MartinCleaverWell, this plugin isn't directly called, is it. It just intervenes during load.
I don't know of another handler that gets called the same way.
And it's a little weird, because it wants the meta data of an unsaved topic
[21:04]
OliverKruegerI'm not sure either, if any other handler is called early enough to inject the template stuff.
the plugin was created with "view" in mind. "edit" came later.
[21:05]
t35t0ranyone know how to embed java applets in foswiki ? [21:06]
OliverKruegerUsing it on non-existent topics was not a usecase I had in mind. [21:06]
MartinCleaverjust embed the html for an embed, t35t0r [21:06]
t35t0rMartinCleaver, that doesn't work [21:06]
MartinCleavery, fair enough, its an edge case, OliverKrueger
but an important one all the same
[21:07]
t35t0rThis is what I've got in a regular html page : http://structbio.vanderbilt.edu/~pattans/jmol.html [21:07]
OliverKruegerMartinCleaver: yes. it should be supported. [21:08]
MartinCleaverSo I just can't figure out how to how to get to the meta data [21:08]
OliverKruegerneed to play around with the code. Havent touched it for "years". ;) [21:08]
t35t0rMartinCleaver, ..the regular html works, in foswiki I put : http://nopaste.snit.ch/82381 , didn't work
I also tried <literal> without all the <!-- <pre> --> stuff
[21:09]
OliverKruegerthe meta data is not needed per se. Its just one source for "which form is used". [21:09]
t35t0r<literal></literal> [21:09]
MartinCleaverY, Foswiki is a big system. Easy to be busy on other stuff. [21:10]
OliverKruegert35t0r: If I am correct, there is a toggle in bin/configure, which can turn on/off such html stuff in topics. (for security reasons) [21:10]
***sezuan has joined #foswiki
OliverKrueger sets mode: +o leik
[21:11]
MartinCleaverso, would the info be available in a traversable data structure from within initPlugin? [21:11]
OliverKruegerMartinCleaver: there are two possible sources for the form, correct? 1) in the WebEditTemplate topic and 2) in the formtemplate url param. [21:12]
MartinCleaverIf the new topic is built with form MyForm, it will build content from MyFormTemplate (not WebEditTemplate) and should be edited in MyFormEditTemplate
where "build content from" == have default content and form from MyFormTemplate
[21:16]
OliverKruegerI was talking about the "built with form MyForm" part.
and the question, where MyForm comes from.
I think, this is the only relevant information for AutoViewTemplatePlugin.
(in "exist" mode)
[21:17]
MartinCleaverwell, the issue seems to stem from defaulting to WebTopicEditTemplate - if a form is implied through the use of a template for the topic we want to use that form.
I'm trying to describe it
[21:22]
OliverKruegerMaybe I'm just too tired. ;) Which TZ are you in?
ping Babar
[21:23]
Babarpong Oli [21:24]
OliverKruegerHi Babar [21:24]
BabarHallo Oliver [21:24]
OliverKruegerDo you know, if we can make use of CERNs special hotel rates? [21:24]
MartinCleavertangentially related but ohh - is this still true: http://foswiki.org/System/TemplateTopics says "Whenever you create a topic ending in the word "Template", it is automatically added to the list of available template topics in the "Use Template" drop down field on the WebCreateNewTopic page." - what if you call your edit template and view templates MyFormEditTemplate and MyFormViewTemplate - do they still get listed by
WebCreateNewTopic? That could be ugly.
[21:24]
Babaroh right, I was supposed to enquire... [21:24]
MartinCleaverMartinCleaver is in GMT-5 [21:25]
OliverKruegerBabar: I havent asked before. ;) [21:25]
BabarOliverKrueger: no, but I did :) [21:26]
MartinCleaverSo, indeed, where does my form get set? [21:27]
OliverKruegerMartinCleaver: in addition to that, you can define templatetopic and formtemplate as html form params.
btw: which day is the best choice for taking the guided tour? ;)
[21:27]
Babarwait
Micha said 18-20 November?
[21:28]
OliverKruegerFri or Mon?
Thats Fri-Sun.
yes.
[21:29]
BabarI have to check the machine planning [21:29]
OliverKrueger:D [21:29]
MartinCleaverok - so if I define templatetopic to MyTemplate, and MyTemplate uses MyForm I'd expect AutoTemplate to pick MyEditTemplate for it as a default. I would not expect to have to also set template=MyEdit [21:30]
Babarbut I think it will be the start of the Heavy Ion running, so not much can be visited [21:30]
MartinCleaver(and I'd expect template=MyEditTemplate to bloody work as well, but that's a separate point) [21:30]
OliverKruegerMartinCleaver: I think, I should take a deeper look at the whole process tomorrow. [21:31]
Babarok, mail sent. I'll let you know of the outcome [21:33]
OliverKruegerBabar: thanks. [21:34]
MartinCleaverThanks OliverKrueger [21:34]
OliverKruegerMartinCleaver: will you be here tomorrow? [21:35]
MartinCleaverMost of the time, yes
GMT-5 (Toronto, Canada)
[21:35]
OliverKruegercool. maybe I'll get back to you for q's. [21:36]
MartinCleaverI have a meeting around 7:30pm GMT
but other than that I should be
:)
[21:36]
OliverKruegerGMT+1 (Berlin, Germany) here. [21:36]
MartinCleaverk
thx
[21:37]
***OliverKrueger has quit IRC (Quit: OliverKrueger) [21:37]
ArthurClemen has quit IRC (Ping timeout: 260 seconds) [21:42]
....... (idle for 33mn)
MartinCleaver has quit IRC (Read error: Connection reset by peer)
MartinCleaver has joined #foswiki
MartinCleaver has quit IRC (Changing host)
MartinCleaver has joined #foswiki
[22:15]
gac410 has left [22:24]
...... (idle for 27mn)
MartinCleaver has quit IRC (Ping timeout: 260 seconds) [22:51]
leik| [22:52]
...... (idle for 26mn)
***MartinCleaver has joined #foswiki
MartinCleaver has quit IRC (Remote host closed the connection)
[23:18]
MartinCleaver has joined #foswiki [23:33]

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