#foswiki 2012-04-25,Wed

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

WhoWhatWhen
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/6xnrnQ
[foswiki/master] Item9935: Don't need umask override - GeorgeClark
[00:34]
***GithubBot has left [00:34]
FoswikiBothttp://foswiki.org/Tasks/Item9935 [ Item9935: Detect and resolve umask issues in Foswiki core ] [00:34]
............................................. (idle for 3h41mn)
***gac410 has left [04:15]
......................... (idle for 2h1mn)
ChanServ sets mode: +o MichaelDaum [06:16]
....... (idle for 34mn)
PeterSvendsenHi all, I have looked into the VotePlugin and would like to mix it together with the BlogAddOn.. so every time there is a new entry in the blog the users can vote... (I'm going to use the blog as idea collection).... .... but how would you propose to solve it and how to solve the issue to make a list of the top votes? I looked in the BlogTemplate? but is seems a bit complex for my skills so if anybody could give me a hint I [06:50]
CDotPeterSvendsen: sounds like you want someone to do it for you. But if you do that, you will miss out on all the learning! [06:57]
PeterSvendsenCDot no no I would like to do it... but need a minor hint, not to break the good work done... and since I'm going to work in the blogtemplate which in my view looks a bit complex I would like a hint if possible not to break the blog... [07:02]
CDotsorry for doubting you - and sorry, I have never played with that template :-( [07:03]
........ (idle for 39mn)
PeterSvendsenNo problem :) [07:42]
.............. (idle for 1h7mn)
foswiki_irc9hi guys, got an issue with webnotify, for some reason when it send out the email, the links in the email come up all wrong. file:///C:/cuba.test.com/foswiki/cuba.test.com/foswiki/bin/view/Main/WebChanges
thats an example of it
[08:49]
HenroRitchieHi - Anybody familiar with the DATABASE plugin and MySQL queries? [08:56]
CDotHenroRitchie: I did some work on it a long time ago. And I speak SQL. What's your question?
foswiki_irc9: That looks like there may be a problem with the initial path setup in cofnigure.
[09:02]
AlexanderStMichaelDaum: Hi Michael, i´m just checking out your TimeTracker made with the MetaDataPlugin. I´m struggling with the view template. the metadata table is not getting rendered
and i do not have to possibility to add new effort
[09:03]
HenroRitchieHi CDot - I am using a form to get values from the user, and then inserts the values into the table [09:03]
AlexanderStJSCalenderContrib is installed [09:03]
HenroRitchie%DATABASE_SQL{description="foswikidatabase" sql="INSERT INTO sitetable (site_name,site_description) VALUES ('%URLPARAM{"site_name"}%','%URLPARAM{"site_description"}%')"}% insert two lines
and it should only be one
[09:04]
CDottwo "lines"? you mean it inserts two records into the table? [09:05]
HenroRitchieyes - sorry , it inserts two records into the table [09:05]
CDotCDot checks how DatabasePlugin is implemented
ah, thought so, it uses a commonTagsHandler :-(
[09:05]
MichaelDaumtry SqlPlugin instead [09:07]
CDotCDot was just going to suggest that
the DatabasePlugin code is a mess. My recommendation is to stay away from it.
[09:07]
HenroRitchieaaa yes ok - I am familiar with sqlplugin, will try that now. Why then does it seem that Database plugin is more recently maintained? Or it could just be that MichealDaum did such a good job first time round that it doesn´t require any updates [09:11]
MichaelDaum;)
I looked at DatabasePlugin first as I needed something along the lines. And then decided: shit this needs a rewrite.
[09:11]
HenroRitchie:-D
That line had me and the other engineers laughing :)
[09:13]
foswiki_irc9CDot i had a look and path setting seems fine [09:16]
anything else that controls how the links are sent out? [09:21]
HenroRitchieCDot: SQL plugin still inserts two lines
two records
[09:30]
ArthurClemensfoswiki_irc9: you could check configure or lib/LocalSite.cfg if there is any value that has the C:/ path in it [09:38]
HenroRitchieCDot: Found a work around, not ideal but it works. Seems that %URLPARAM% has something to do with SQL inserting two records into the table [09:50]
ArthurClemensthe value in URLPARAM may contain commas [09:56]
HenroRitchienot at the moment - it is only text, like ¨t1¨
nope seems that the work around doesn´t work as predicted
I have a 302 error on the POST
[09:56]
.... (idle for 15mn)
MichealDuam: how does the decode parameter in SQL plugin works? decode=¨url¨ when using a urlparameter to provide the value to insert into the table?
Just someting that I picked up now - When the URLPARAM is empty the query only insert one record into the table, when there is text (i.e. not empty URLPARAM) it inserts two recored into the table
[10:16]
GithubBot[foswiki] foswiki pushed 2 new commits to master: http://git.io/qS4Tug
[foswiki/master] Item11530: preparing release - MichaelDaum
[foswiki/master] Item11530: changelog - MichaelDaum
[10:19]
***GithubBot has left [10:19]
FoswikiBothttp://foswiki.org/Tasks/Item11530 [ Item11530: initial checkin ] [10:19]
...... (idle for 28mn)
foswiki_irc9any more advice on why my mailnotify links are coming out as /cuba.test.com/foswiki/cuba.test.com/foswiki/bin/view/Main/WebChanges [10:47]
ArthurClemensfoswiki_irc9: the preceding underscore does not look right
preceding slash I mean
perhaps you can put the your LocalSite in a private paste bin?
[10:55]
.......... (idle for 45mn)
foswiki_irc9arthurclemens that is th the correct web address and that is the link i get when take it from notes [11:41]
............ (idle for 59mn)
MichaelDaumyay. nice inline editing & drag'n'drop: http://www.impresspages.org/ [12:40]
......... (idle for 42mn)
CDotf*ing PHP [13:22]
.... (idle for 15mn)
MichaelDaumf*ing javascript I'd say
in many ways TML is more PHP than markdown
SvenDowideit, what can I do for you wrt http://foswiki.org/Development/SettingAndGettingVariablesUsingMacros
MichaelDaum not sure what exactly the concern is
[13:37]
gac410CDot: Is there a reason that WsywygPlugin merges adjacent <verbatim> blocks? It's also eating whitespace between them ... multiple blank lines between verbatims gradually disappear, one per save [13:42]
CDotgac410: I'm surprised to hear it does that; I didn't intend it to. I suspect it's more likely to be tmce that merges the DIVs that the blocks get converted to [13:43]
gac410I was going to remove, but it's clearly intentional
Nope. There is even a unit test
[13:43]
CDothum. Maybe I was being tidy.
TBH the old sieve-brain hasn't retained the reason for that
[13:43]
gac410And TMCE seems to loose classes on save. It's not in wysiwyg. Class="foswikiHidden" is nasty.
Hidden in the editor. so you can't changeit. Then it gets "lost" on save, so there are multiple verbatims, which then get merged into one.
The wysiwyg code is smart enough to not merge if class is different. But TMCE looses the classes.
[13:44]
CDotthe TMCE "clean up" is a mystery to me; pharvey did some work with it, not sure if could cast more light [13:51]
gac410Yeah. You were the luck one for me to see online first :D
Applying a hidden style with wysiwyg editing is a bit of a pointless move. WYDSIWYDG I guess.
I was pretty baffled trying to edit the System.DefaultRegistration for a while.
[13:52]
CDottrying to maintain TML meta-data (such a verbatim) through a WYSIWYG editor is pretty fraught. Sometimes I think a custom editor that generates TML would be easier :-( [14:04]
GithubBot[foswiki] foswiki pushed 1 new commit to master: http://git.io/-eQU5w
[foswiki/master] Item11529: preparing release - MichaelDaum
[14:17]
***GithubBot has left [14:17]
FoswikiBothttp://foswiki.org/Tasks/Item11529 [ Item11529: initial checkin ] [14:18]
........ (idle for 35mn)
andreliMichaelDaum: http://foswiki.org/Development/ClientSiteEditorInNatEditPluggable [14:53]
MichaelDaumhehe
thats a feature _request_ not a _proposal_ of a solution
[14:54]
andreliMichaelDaum: I just filled in the form on http://foswiki.org/Development/FeatureRequest [14:56]
MichaelDaumandreli, did you try to integrate markitup already? [14:56]
andreliNot in NatEdit, and first trials focus on formfields in context view [14:57]
MichaelDaumah ok
to prove a solution worx out we need:
(1) move the current javascript editor to the side
(2) plugin markitup in some way
(3) properly integrate tinymce along the same lines
(4) have one other 3rd party component matching the game
like codemirror
http://codemirror.net/
or ace http://ace.ajax.org/
too bad rokpad isnt free http://www.rockettheme.com/extensions-joomla/rokpad
[14:58]
andreliThe current editor has not necessarily be pushed aside. It would just become one possible editor, and when it comes to the current process of getting NatEdit to core, probably the default editor.
We could support the creation of a MarkitupContrib
[15:05]
MichaelDaumby "move to the side" I mean more something like: move it out of the way not to get in conflict with another impl. [15:06]
andreliok [15:06]
gac410CDot: a general regex question. I *might* be able to fix some strangeness in Wysiwyg conversion by using \h "Horizontal" whitespace matching instead of \s for any whitespace. It then collapses only tags appearing on the same line.
Can you think of any downside to the \h I've never seen it used before.
foo... never mind. That fixes the unit test but the live tests are still collapsing tags. wth ???
[15:13]
HenroRitchiehi gac410 - I have another issue :( are you familiar with the sql plugin? [15:17]
gac410no not at all on that one :(
gac410 is totally baffled by wysiwyg conversion. The unit test HTML2TML test clearly does NOT collapse tags. But clicking Wikitext button to recover TML on the editor does. Apparently using the same code.
[15:17]
Babarnice :) [15:21]
HenroRitchiegac410: ok thanks in any case [15:22]
Babaralso, \s or \h are not so nice when using utf8 :) So if you want, feel free to use [ \t] ;) [15:22]
gac410well \s is throughout the code. so wysiwyg will be fun once we move to utf8. [15:22]
Babarit works, don't worry :)
it's just it matches even more than what you think
[15:27]
gac410AhHa... When TMCE submits the HTML for conversion back to TML, it appears that <p> ... </p> have been removed for some reason. So wysiwyg roundtrip tests are fine. But TMCE is eating some markup.
And without the explicit whitespace, the "nodes" are adjacent, and are collapsed.
[15:31]
HenroRitchiegac410: when I combine a SQL plugin query with a formplugin form on the same page I get a 302 error in firebug - could this be the same issue that I had yeasterday? [15:32]
gac410I doubt it. 302 can be generated by either apache or foswiki. By setting the url path correctly, the apache cause is fixed. [15:33]
HenroRitchieok thanks - it still seems like the variables on pages create some sort of problem [15:34]
gac410the 302 isn't really an error. Someone is telling the browser to use a different page. It can be normal. [15:34]
HenroRitchieI wish there was a step by step compiler so that I can see where the problem comes from [15:41]
gac410If you look at the POST (or GET) input, does it have a bin/view in the path? If so, then apache will do the redirect.
If the input looks correct (ie is a valid shorter url) then it's probably not an apache rewrite rule.
[15:42]
Guest67543TWISTY isn't working the way I'd like. Specifically, if I follow a link into a hidden section, I think the enclosing section(s) should open up. Is this impossible, a Bad Idea, etc? [15:44]
gac410Guest67543: I agree, following a anchor into a hidden section probably ought to open the twisty. But I would have no idea how to do that. :( [15:50]
HenroRitchie:) fixed my problem.... oi that took 8+ hours [15:53]
ArthurClemensHenroRitchie: so what was it? [15:56]
***Guest67543 has left [15:57]
HenroRitchieIt had something to do with one of the following parameters in the form - validate="off" formcssclass="foswikiFormSteps" elementcssclass="foswikiFormStep"
not sure which one
[15:58]
CDotgac410: in the dark recesses of the echoing cavern I claim as my memory, I found a vague glimmer of a recollection. IIRC, the folding of adjacent verbatim was a response to TMCE generating each new line of a formatted text block as a unique HTML block. Without the merge, the blocks would end up as a whole load of individual verbatim blocks, one for each line. [16:01]
gac410Ah... I'll keep an eye out, but It doesn't seem to do that any more. But I'm horribly confused by some of the stuff I'm encountering. [16:02]
HenroRitchieArthurClemens: By process of elimination it was validate="off" [16:03]
gac410I think the compare of class= attributes is broken as well. if I have <verbatim class="blah" and <verbatim> The class difference is not detected. But the unit test behavior and live tmce behavior is just "different" and I don't know why. [16:04]
ArthurClemenshmm, that would mean that validation passes the data to the database? [16:04]
HenroRitchieYes seems so - I can do more testing at a later stage - i first need to get this site running asap. Where do I go from here? Log a support question? [16:06]
CDotHenroRitchie: logging a support question probably won't help; you are talking to all the people who would normally answer those questions already. [16:07]
HenroRitchie:) yep I know - let me repharse the question - is this really an issure and do we/you want to keep track of this issue, if yes - what would be the next step? [16:08]
CDota task; assuming you can phrase the question in such a way as it is fixable :-)
CDot isn't clear what the issue actually is
[16:09]
HenroRitchiethe issue is (but needs to be confirmed) formplugin with sqlplugin passes the validation to the database [16:11]
gac410And better yet, an example that we can use to actually recreate the issue is immensely helpful. [16:11]
HenroRitchiea working example is easy to provide
and that might not even be the case for sqlplugin only, but it might also be the case for database plugin
thanks for the help - I need to go - will follow up tomorrow
[16:11]
gac410One of several issues CDot, But _collapseOneClass( $node, 'TMLverbatim' ); ignores other classes that might be different. So if you have two verbatims, one class=html, and one class=tml, they get collapsed.
It only compares for a common TMLverbatim, and doesn't examine any other contents of the class=
[16:19]
CDotthat's prob. because when I wrote it, there only *was* one class
.... and then the nac mac feegles attacked
[16:20]
gac410Still can't figure out how the other classes get "lost" though.
So result is you end up with a single <verbatim> with NO classes defined.
[16:21]
CDotIIRC it discards the class. When it was written, <verbatim> didn;t support any class attributes. [16:22]
gac410Ah. That would splain it
gac410 goes back to pulling hair
[16:22]
CDotyou have hair? wow!
CDot pulled all his out years ago
[16:22]
gac410gac410 can understand it ...
What's driving me crazy is that the TranslatorTests don't really recreate the issues.
Taking the exact same HTML, debugged from the tmce call to convert, and using it in a translator test, does collapse the verbatims, but does not discard the class=
[16:23]
CDotit's really tough to write complete translator tests, because the round trip really needs to take TMCE into account
TMCE does all sorts of horrible things. You really have to look at the HTML that TMCE sends to WysiwygPlugin
during the save step
[16:28]
gac410Right. I did. Well - using "Wikitext" button so I don't have to keep reverting. [16:29]
CDotCDot usually looks at the POST request [16:29]
gac410Print the very initial input to sub convert. Which should be the same as the POST [16:29]
CDotshould be, yes [16:29]
gac410then paste that into the html => field of TranslatorTest, and run to get the tml
but I still get unexplainable differences.
[16:30]
.... (idle for 16mn)
TMCE is eating <p> tags. So TML-> creates <p><pre ... verbatim stuff></pre></p> But TMCE returns it without the enclosing <p>.. </p> loosing the whitespace.
The </verbatim><verbatim> wrap onto the same line, and disappear. :(
ugh. And testing for s#</$tag>(\h*)<$tag>#$1#gs is DOOMED because the class= difference is on the opening <verbatim> which is not considered in the test.
[16:47]
***ChanServ sets mode: +o MichaelDaum [17:03]
..... (idle for 23mn)
leguin.freenode.net sets mode: +o uebera|| [17:26]
......... (idle for 43mn)
gac410Anyone here actually updated tmce to a new version? The instructions in Foswiki:Development/TinyMCEPlugin seem to be missing some important steps. Namely how to merge in the unzipped files. [18:09]
FoswikiBothttp://foswiki.org/Development/TinyMCEPlugin [ TinyMCEPlugin ] [18:09]
............ (idle for 57mn)
gac410never mind. Instructions are fine, my comprehension skills on the other hand ... [19:06]
***HaraldJoerg1 has left [19:17]
......... (idle for 40mn)
foswiki_irc3Trouble with ApacheConfigGenerator and URL re-writing
short URLs are working, and manually constructing viewfile URLs works fine
but rewrites are not taking place, and rewrite logs are not being written
working on an ubuntu server and foswiki 1.1.4
mod-rewrite is loaded and enabled
foswiki.conf is being read, and removing it breaks foswiki
I'm not sure if this is a foswiki problem, but I'm stumped
[19:57]
gac410Just to be sure, you are using Foswiki:Support/ApacheConfigGenerator (There is a new experimental version - you shouldn't be using the NewACG one.) [20:02]
FoswikiBothttp://foswiki.org/Support/ApacheConfigGenerator [ ApacheConfigGenerator ] [20:02]
foswiki_irc3I've tried both, but yes, I'm using the old ACG [20:02]
gac410Unless someone made a recent change, ACG has been used a lot of times with short urls, without issues. At this point it's really well tested.
(Not that that comment helps you any ;) )
[20:03]
foswiki_irc3I'm sure I'm the one messing it up, I just can't figure out what I've done wrong
I'm not an apache whiz
[20:03]
gac410Did you install using the debian packages? or tar/gzip [20:03]
foswiki_irc3I think it was all apt-get
but the initial install was done by our IT people
[20:04]
gac410okay. so I think the apache config should have an Include for the Foswiki.conf ... but not sure - I'm definitely not Debian/Ubuntu literate. [20:04]
foswiki_irc3it loads everything in conf.d/
and that's where foswiki.conf is
I've loaded it explicitly from the same folder as apache.conf, and it made no difference
[20:05]
gac410oh... okay. Not sure what would stop mod_rewrite. To log, the server needs to be able to write to the file location requested. And you need to bump the rewrite log level. [20:06]
foswiki_irc3I set the level to 9 or 10, and nothing
I should double check the log permissions
[20:07]
gac410You should get LOTS of output with that log level. [20:07]
foswiki_irc3i know! [20:08]
gac410And if mod_rewrite was not available, I'd expect the apache startup to generate errors on the RewriteRule statements [20:09]
foswiki_irc3error log is root:adm, and rewrite.log is root:root, and rewrite.log was created by the server - I just gave it the path [20:09]
gac410But it's empty. [20:09]
foswiki_irc3Yup, 0K [20:09]
gac410(or is it logging now?)
I don't recall, but didn't think the file would be created unless it was being written to.
[20:10]
foswiki_irc3it's been 0K through several apache restarts and tests
There might be a wider logging problem
I recall having trouble with cron logs too
but cron works
[20:11]
gac410you set RewriteLog "/absolute/path/to/rewrite.log" ??
I think the logfiles are "just files" ... it doesn't use syslogd or anything like that normally anyway.
[20:12]
foswiki_irc3RewriteLog "/var/log/apache2/rewrite.log"
if I get the path wrong, apache fails to start
[20:13]
gac410I'd poke around through other apache config files. maybe some other file is turning off rewrite
if you have server_info or server_status that can show you the config. though mostly that gets turned off for security reasons
[20:18]
foswiki_irc3What about all the AllowOverride none settings?
Are they relevant here?
[20:19]
gac410No. That sets whether or not apache should allow a .htaccess file to override the config. [20:23]
foswiki_irc3thanks, that's what I thought
The only error I get anywhere is during restart, apache complains:
[Wed Apr 25 16:26:59 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
then waits, complains again, the finishes starting
I don't fully understand this error
[20:26]
gac410NameVirtualHosts allows you to use the "hostname" to map to a different server config. ie wiki1.domain.com wiki2.domain.com. Both resolve to same IP, and apache will use two different virtual configs for wiki1 and wiki2
It probably means that you are not using name based virtual hosts.
[20:29]
foswiki_irc3I certainly didn't intend to [20:30]
gac410If you give ACG a hosthame, it will insert the <virtualhost...> statement. [20:30]
foswiki_irc3yes, I skipped that
mine opens with ScriptAlias /bin "/var/www/foswiki/bin"
[20:31]
gac410oh.. okay. So probably somewhere else in the config is a NameVirtualHost statement I think it's safe to ignore it. [20:32]
foswiki_irc3The NameVirtualHost statement was in ports.conf, and commenting it out killed the error without changing anything else, it seems [20:41]
gac410All I can think of is to check all the config files to see if the Rewrite* setting are controlled anywhere else. Other than that I have no idea why mod_rewrite is not working for you. [20:43]
foswiki_irc3gac410: thanks for all your help!
I've ruled out some explanations, at least
[20:43]
gac410sure, glad to help. Sorry I wasn't more successfu, [20:44]
.... (idle for 15mn)
***ChanServ sets mode: +o OliverKrueger
OliverKrueger sets mode: +oooo Lynnwood MartinCleaver terceiro padraig_lennon
OliverKrueger sets mode: +ooo gac410 ArthurClemens AlexisHazell
[20:59]
................. (idle for 1h23mn)
terceiro`./view topic=Foo.Bar` is blazing fast and Foo/Bar served by FastCGI is sadly slow. Any ideas?
Foo.Bar is a topic with a somehow heady search
heavy search
[22:23]
gac410Try the Foo/Bar with debugenableplugins set to disable non-default? See Foswiki:Support/Faq68 [22:26]
FoswikiBothttp://foswiki.org/Support/Faq68 [ How can I determine which plugin might be causing me an issue ] [22:26]
terceironope, same thing with debugenableplugins=(list,of,default,plugins) [22:29]
gac410hm.. well it was worth a try. Do you have an alternate url set up to run with cgi disabled? your.site.com/cgi/view/.... [22:30]
terceirofastcgi disabled, you mean
?
[22:30]
gac410yeah. It's easy to do without disabling for everyone. hang on and I'll paste in the foswiki.org config line.
ScriptAlias /cgi "/path/to/foswikibin"
Use /cgi/view in the url, and it sidesteps fastcgi. Really handy if you are troubleshooting some globals behavior
[22:31]
terceironice, thanks
nope .. same results. Is there anything that would kick in in a proper web request and not in view CLI run?
[22:33]
gac410Nothing that I can think of. ... hm userid? Script runs as admin by default I think, which side-steps auth checking.
add -user otheruser to the script?
[22:35]
terceirohm, yeah, I am logged in on the browser and not specifying a user in the CLI [22:40]
SvenDowideitterceiro, cna you log in as admin in the brwoser? [22:54]
terceiroSvenDowideit: I can [22:54]
SvenDowideitits possible that you are running into the acl test [22:55]
terceiroany pointers? [22:56]
SvenDowideitonly if it is faster :)
and mmm, no, not yet
the super speedup i built for mongodb didn't work well for file based
[22:56]
terceirodo I need to be *the* admin, or a user in AdminGroup is enough
?
[22:57]
SvenDowideitadmingroup should doit [22:57]
terceirodoesn't seem to help [22:58]
SvenDowideitok, then theres more fun for you :/
where did i put that patch
[22:59]
terceiroI just figured out why CLI was faster: the cache; for some reason when I tested with the CLI it was getting cache hits
now CLI is slow agin
[22:59]
SvenDowideitsee the 'more apache magic' post on http://fosiki.com
you're running the 1.1 page cache?
basically - you can modify the patch to measure most things and report the numbers in the headers
which means you can either log to apache log, or use curl -I
[23:00]
terceirothanks [23:01]
SvenDowideitthe other thing that hit me was that the wire speed was off [23:01]
terceiro(yeah, I am using the 1.1 page cache) [23:01]
SvenDowideitSvenDowideit goes to make a feat req
unless rich put one in
[23:01]

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