#foswiki 2015-01-29,Thu

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

WhoWhatWhen
***gac410 sets mode: +v WikiRingBot
gac410 sets mode: +o jast
gac410 sets mode: +o fsfs
[01:16]
........... (idle for 53mn)
GithubBot[distro] gac410 pushed 1 new commit to master: http://git.io/F21O
distro/master fcfa898 George Clark: Item12591: Item12381: Correct manifest issues....
[02:09]
***GithubBot has left [02:09]
................. (idle for 1h20mn)
gac410Hm.. It appears that Javascript is now required for Foswiki. Not possible to edit, or configure without javascript.
I think we need to drop the recommendations that you can use fw without javascript by setting validation to embedded.
[03:29]
.... (idle for 16mn)
GithubBot[distro] gac410 pushed 1 new commit to master: http://git.io/FaUX
distro/master ee75de6 George Clark: Item9693: Javascript required. Link in new docs...
[03:45]
***GithubBot has left [03:45]
................ (idle for 1h15mn)
GithubBot[distro] gac410 pushed 2 new commits to master: http://git.io/FaCo
distro/master e2cc437 George Clark: Item9693: xgettext fails when templates have last newline...
distro/master bd08129 George Clark: Item9693: xgettext run for translations...
[05:00]
***GithubBot has left
gac410 has left
[05:00]
..................... (idle for 1h40mn)
ChanServ sets mode: +o CDot [06:43]
ChanServ sets mode: +o MichaelDaum [06:50]
.... (idle for 19mn)
GithubBot[FastCGIEngineContrib] MichaelDaum pushed 1 new commit to Item13010: http://git.io/FaM6
FastCGIEngineContrib/Item13010 923c602 MichaelDaum: Item13010: adding labels to config items
[07:09]
***GithubBot has left [07:09]
GithubBot[FastCGIEngineContrib] MichaelDaum merged Item13010 into master: http://git.io/FaMH [07:10]
***GithubBot has left [07:10]
.......... (idle for 45mn)
MichaelDaumMichaelDaum found tons of errors in configure
... reported at http://foswiki.org/Tasks/Item13220
to everybody: please test configure ... enable expert options and go thru every config item and hit reset and see what happens ... watch the javascript error console as well as the error.log of your webserver
there's a regression affecting the main site even without saving any changes
[07:55]
............. (idle for 1h1mn)
jomojomo wondering why is the response content-type "text/plain" for JSON responses instead of "application/json"... [08:59]
..... (idle for 20mn)
MichaelDaumjomo, yea. well but should work both. [09:19]
jomoMichaelDaum: sure it works, but makes automates testing a bit hard - it is easier to check: if( $resp->content_type =~ /json/) { debug_print_pretty_json($resp->body->[0]); } - but no problem - it works... ;) [09:22]
MichaelDaumwhere should the content type be fixed?
to return app/json properly
[09:22]
jomoIMHO in JsonRpcContrib/lib/Foswiki/Contrib/JsonRpcContrib/Response.pm [09:24]
MichaelDaumah ok lemme fix it them :) [09:24]
fixed on master branch [09:32]
GithubBot[distro] MichaelDaum pushed 1 new commit to master: http://git.io/FV3Y
distro/master 5834aad MichaelDaum: Item13238: fixed content-type of response
[09:32]
***GithubBot has left [09:32]
.... (idle for 18mn)
jomoas curiosity: list of valid TLDs: http://data.iana.org/TLD/tlds-alpha-by-domain.txt - the {Email}{ValidTLD} contains a small subset ;) [09:50]
..... (idle for 21mn)
foswiki_irc3hello
anything that can be done through php can be done with a perl plugin, right?
I want to include some files froma folder in a page
but with some logic to share only certain files
perl is completely capable of this, right?
[10:11]
jastsure
if PHP can do it, so can pretty much any other language :)
[10:14]
GithubBot[distro] cdot pushed 1 new commit to master: http://git.io/FV4h
distro/master 24abbda Comment: Item13220: JS bugs and spelling errors fixed
[10:15]
***GithubBot has left [10:15]
................ (idle for 1h16mn)
GithubBot[distro] cdot pushed 1 new commit to master: http://git.io/FVyU
distro/master a8356b8 Comment: Item13220: make better sense of the DISPLAY_IF options on the mail.
[11:31]
***GithubBot has left [11:31]
.................. (idle for 1h29mn)
ChanServ sets mode: +o Lynnwood [13:00]
......... (idle for 44mn)
ChanServ sets mode: +o Lynnwood_ [13:44]
.................. (idle for 1h28mn)
jastI've got an interesting problem in a heavily customized wiki: after a save, when redirected to /bin/view, sometimes the resulting page doesn't load some of the plugins, and there's a line in the error logfile complaining about an undefined $session->{plugins}. Adding tracing, I can see that all fields in $session are undef. If anyone has any ideas how I can track this down I'd be rather grateful... [15:12]
TarboxHello! Can someone explain PlainFile store to me? Meta::atomicLock checks for an existing lock, and if it's held by the current user, calls PlainFile to lock the file again, but Meta::atomicUnlock calls PlainFile without any checks. PlainFile's atomicLock and atomicUnlock are not re-entrant, so when I try to delete an attachment, moveAttachment locks the files, then a saveAs call (to update the statistics) during the move locks the files again. When sa
When saveAs completes, it unlocks the files, and when moveAttachment completes, it unlocks the files again and there's an error because the lock doesn't exist. Do I have something configured incorrectly?
[15:25]
jastI figured my issue out, ideas no longer needed :) [15:37]
.................. (idle for 1h27mn)
foswiki_irc1Anyone here familiar with LDAPContrib? [17:04]
Tarboxa bit [17:04]
foswiki_irc1I see this error repeatedly in logs: LdapContrib - WARNING: already refreshing cache
I do not have cronjob, only maxcaacheage set.
[17:04]
Tarboxone moment let me check something. [17:05]
foswiki_irc1I also see cache.db_tmp created
in my LdapContrib folder
[17:05]
TarboxThat's so it can hotswap
Somethread decides to update the cache, sets a flag saying it's creating the cache, loads the cache into db_tmp, then, when it's done, it copies _tmp over to the real one and deletes the flag.
[17:06]
foswiki_irc1never seems to delete the flag I guess.
it's a small cache.
[17:07]
Tarboxdo you have a _tmp that's just there? [17:07]
foswiki_irc1set 600 as MaxCacheAge
I also have cache.db and cache.db.lock
[17:07]
Tarboxyeah something died while it was trying to update and now it's stuck. Delete cache.db_tmp first and cache.db.lock second. [17:08]
foswiki_irc1done [17:08]
TarboxOf course that doesn't tell us why it got stuck. Hopefully it was a fluke and you're okay now. [17:08]
foswiki_irc1I've been having a lot of problems when adding new users
I have to manually refresh the cache.
If I add a user -- does it wait until the MaxCache Age to refresh the cache?
[17:09]
TarboxDepends wher eyou add the user. Inside LDAP? [17:09]
foswiki_irc1Meaning my new user can't log into Foswiki until that age is met [17:09]
TarboxYes correct [17:09]
foswiki_irc1I add in Active Directory [17:09]
TarboxYes.
Foswiki won't recognize any changes to AD until maxcacheage passes.
then it updates itself.
[17:09]
jast"already refreshing cache" happens when you've got a lock file that got stuck
look in working/work_areas/LdapContrib
[17:10]
foswiki_irc1It seems to get stuck a lot. [17:10]
Tarboxjast knows more than me here. [17:10]
foswiki_irc1I just updated to latest [17:11]
jastwhat's your maxcacheage? [17:11]
foswiki_irc1600
so 10 minutes
The cache is 27kb or so
[17:11]
jastwell, the thing is, when the cache expires, on a somewhat more active site it can happen that multiple requests attempt updating the cache simultaneously
and then you enter the murky waters of parallel execution and race conditions :)
[17:11]
foswiki_irc1what do you mean multiple requests? There should only be the maxcacheage controlling the cache I thought [17:12]
jastsomething that may work better for you is setting maxcacheage to something very high, and adding a cronjob that runs .../bin/view refreshldap=on >/dev/null 2>&1
yes, of course
but suppose the cache has just expired
the first time LdapContrib notices that is when someone makes a request to Foswiki and it looks at the cache
[17:12]
foswiki_irc1In the documentation it said if I set the MaxCache to 0 then I should set the cronjob. It didn't mention setting both. [17:13]
jastso it starts an update... but maybe at the same time another request is made and starts an update as just the same time
okay, 0 is better than "something very high"
and if the locking isn't completely error-free, two simultaneous updates may screw up the lock state
[17:13]
foswiki_irc1So does the cache refresh trigger on logon or when the maxcacheage expires? [17:14]
jastlogon has nothing to do with this [17:14]
foswiki_irc1k [17:14]
jast*any* request you make to foswiki, e.g. viewing a page, initializes LdapContrib, whenever something requires user data [17:14]
foswiki_irc1you said when someone makes a request, I thought that was logon or after they log in
ah ok
[17:14]
jastand while LdapContrib inits itself, or when the first user lookup-related thing happens in foswiki, it checks the cache
depending on how your foswiki is set up, simply visiting a page in foswiki can trigger a dozen requests, each of which runs the full Foswiki engine
[17:15]
foswiki_irc1gotcha [17:15]
jastand the cronjob approach pretty much avoids all these issues [17:16]
foswiki_irc1Okay, I'll try that again.
I set MaxCache to 0
[17:16]
jastit's what we do in our wiki setups, though we refresh only once a day [17:16]
foswiki_irc1then cronjob
In our small company 1 day is a long time to wait for a user to be able to log into foswiki
[17:16]
TarboxYou can set up a link to refresh manually. [17:19]
foswiki_irc1thanks for the information jast
yes I've seen that as well.
[17:20]
TarboxDepending on how you add users you might have a place to trigger a refresh as you add the user. [17:20]
................. (idle for 1h20mn)
jmk0I've successfully made my foswiki get to a bit of code that has the comment "Aargh! Should never get here"
UI.pm, round about line 400 (1.1.9 release)
[18:40]
jastjmk0: congrats ;) [18:42]
jmk0thanks. Unfortunately "Unspecified error" isn't a terribly helpful diagnostic :) [18:43]
jaston what kind of URL did that happen? [18:43]
jmk0just a simple view
it's something that happened in my plugin, I'm sure, but tracing it from that information could prove difficult
[18:43]
jasta plugin you wrote? [18:44]
jmk0yes [18:44]
jastis it a lot of code? otherwise perhaps you can link to the code and I'll have a quick look [18:44]
jmk0unfortunately I can't, IP issues :-/ Hopefully will be able to release it later [18:45]
jastI do a *lot* of Foswiki troubleshooting, with a bit of luck I'll spot it immediately ;)
well that's too bad
[18:45]
jmk0I went from a plugin-specific store to a store that is shared with another of my plugins.. and am now getting that message. ugh. [18:45]
jastthe most likely cause is a call to throw that doesn't use one of the standard exception/error classes [18:46]
jmk0and yeah it's a lot of code :) [18:46]
jastto get more diagnostic info, add this to the "should never get here" code block: [18:46]
jmk0I have several throw Error::Simple statements and no other throws. Might be in LibXML though. [18:47]
jast$res->print("$@");
actually might be too late for that... this is probably more reliable: $res->print($_[0]);
[18:47]
jmk0seems like that ought to be in the base code :) I figured there was a way to do something like that but hadn't found answers yet. I guess my perl "camel" is out of date. [18:48]
jastthe upcoming release 1.2 will output details in debug mode
it does basically this:
my $e = shift; use Data::Dumper; $res->print(Dumper(\$e));
[18:49]
jmk0aha. got something now. Thanks. It was what I thought - an exception from LibXML [18:50]
jastokay, so just catch and ignore, right? ;) [18:51]
jmk0:)
is there a fundamental difference between try/catch and eval {} in perl?
[18:52]
jastI *think* modern Perl advocates not using the Error module at all (which is what provides try/catch)
but there doesn't seem to be universal agreement
personally I use eval in my code
[18:53]
jmk0heh
well maybe my perl book isn't out of date, it just hides the whole try/catch business
now i feel compelled to put all my LibXML stuff inside eval{}
[18:54]
jastit's definitely safer...
the joys of exception-based error handling
[18:56]
jmk0thankfully my screw-up only affects the pages that use my plugin :) [18:57]
jastphew :) [18:58]
jmk0copypasta error :-/ [19:11]
.................. (idle for 1h29mn)
Lynnwoodi’m just setting up a new installation (1.1.9) and am trying to update dbcache from shell and am getting (405) Bad Request: REST denied
i haven’t run into that before. I find someone else reporting similar issue on irc.
I suspect it’s not a change in foswiki, but rather apache…
maybe… i think this may be the first i’ve worked with newer version...
or maybe dbcache has been updated and the change made
[20:40]
.................. (idle for 1h28mn)
RiskRewardHi, does anyone know how to make some info in a person's profile publicly visible, and some not?
I'd like to use people's profiles to store information that we need about the user, but that they may not like to share with others (i.e. address, qualifications etc).
[22:10]
jaststore it in two different topics...
Lynnwood: if you're running ./rest directly from the terminal, apache has nothing to do with it
[22:12]
RiskRewardInteresting idea jast. You mean like: RiskReward and RiskRewardPersonal? [22:13]
jastyeah [22:13]
Lynnwoodah yes [22:13]
jastI've been thinking about this kind of thing before myself
thought about writing a plugin that automatically copies a subset of data to a second topic, to make it easier to handle in UI/apps
but so far I haven't had time to actually do it :)
[22:13]
RiskRewardYes, I'm not sure how my query searches would be affected. I use them to build lists of user data (like who is at what phone extension etc).
Maybe I'll create a few manually, and work through the implications. Thanks.
[22:15]
jastgood luck :) [22:16]
jmk0me: "here, update this plugin, it should fix a lot of stuff" ... a few seconds later.... "damn." [22:17]
jastupdates fixing stuff? good one ;D [22:18]
jmk0heh [22:18]
RiskRewardJast, I remember seeing a plugin once that produced a 'history' page for a topic (a bit like Wikipedia). Have you seen it? Maybe a similar approach with the private user data thing would work? [22:21]
jastno, I don't think I have
well, there's a plugin to show history, but the output is dynamically generated, not actually stored anywhere
I suppose you could write a plugin that outputs *some* of the data from a protected topic even if you don't have proper view access to it
adding a new %MAGICQUERY% macro or something like that :)
[22:21]
RiskRewardHmm. Back to Perl (and just when I was getting good at Python!) [22:24]
Did a quick test. Pretty easy to fix the queries: if the topic with private info is RiskRewardPrivate, just exclude *Private from query searches. [22:30]
..... (idle for 24mn)
jmk0welp, after successfully breaking our production wiki, I think it's time to call it a day. (I don't have admin access to it and the admin is gone for the day). l8r :) [22:54]
RiskRewardGee jmk0, nightmare! [22:54]
jastsounds good to me. have a good evening/night! (past midnight here) [22:54]
RiskRewardGood luck tomorrow. [22:55]

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