#foswiki 2015-02-17,Tue

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

WhoWhatWhen
gac410good luck with grid. I've never tried either of them. They are MichaelDaum's extensions iirc. Good stuff, but sometimes complex. [00:07]
RiskRewardComplex? (groan) [00:07]
gac410Glad linux migration went well. I tried to upgrade the vm to ubuntu LTS 14.4 ... it worked, but was complicated too. The apache config doesn't work. Apache 2.4 requires all config files be named with .conf suffix. So SitesAvailable/000-Foswiki had to be renamed to 000-Foswiki.conf
Took me a couple of hours to figure that one out.
[00:09]
RiskRewardWell done. There's always something. [00:09]
gac410re GRID. I can't say for sure it's complex. I've not used it. Some of his extensions have lots of dependencies, part of the NatSkin eco-system. Others are simple and work easily. [00:10]
RiskRewardWell, it installed OK. Two optional dependencies (Solr and DBsomething). Man page is helpful, and table filtering seems to work out of the box. [00:22]
.... (idle for 18mn)
gac410Yea the Solr and DB contribs are definitely optional. Solr is search for very large sites, DB is problably DBCacheContrib ... Offloads topic data into a database IIRC... I've never used it. [00:40]
........ (idle for 35mn)
RiskRewardOh dear! Just found a problem on my new linux setup. When I click submit on a form, nothing happens! Anyone know how to debug? [01:15]
gac410Any / all forms? Or one specifically? [01:16]
RiskRewardI have two, both have stopped working. [01:16]
gac410hm. Are you using firefox? Use the network debugger to see what happens? [01:17]
RiskRewardYep, I'm on firefox [01:17]
gac410When you click on a form, it should do a POST [01:17]
RiskRewardHow do I pull up the network debugger? (forgotten) [01:17]
gac410tools Developer Network? [01:18]
RiskRewardOK, it does two gets and a post. [01:19]
gac410Is there a return code from the POST? [01:20]
RiskRewardYes, 302 [01:20]
gac410Do built-in forms, like Foswiki user registration work?
And are there any errors in the logs. /var/log/apache2/ or in working/logs/
[01:21]
RiskRewardUser registration takes a while, but works. Only one thing in Network window: 200 POST.
Some errors in /var/log/apache2/error.log
[01:23]
gac410Can you pastebin http://pastebin.com or just a on-line summary here?
er... one-line
my 1.1.9 system is toast. Trying to restore it now. :(
[01:25]
RiskRewardReading the error log, looks like user registration error was just because of fake email address. Am tailing log now, and will try a formplugin submission to see what happens.
Nothing showed up in apache2 error log when I clicked submit.
[01:28]
gac410How about the foswiki logs. working/logs [01:29]
RiskRewardNo. Only SMTP complaints regarding fake email address for fake user. [01:31]
gac410hm. I'm not sure what might be happening.
Could you pastebin your form
[01:33]
RiskRewardAs a test I'm using the Sanbox.FormPluginExamples. There's a Holidaylist section on that page that used to work. [01:36]
gac410okay... let me install FormPlugin ... I've not tried it before.
Did you install Regexp::Common? And has "rest" been removed from the list of AuthScripts ?
[01:37]
RiskRewardMaybe this is something I missed in the move from windows to linux. How do I do it?
Is it: sudo apt-get install libregexp-common-perl ?
[01:40]
gac410regexp::common ? apt-get install libregexp-common-perl I think so yes [01:42]
RiskRewardOops, already have it. [01:43]
gac410and AuthScripts is in Security & Authentication Login tab
Probably need to remove rest from the list
I can't install Regexp::Common on my system currently. Been running a system update. since last night. Compiling webkit-gtk is taking hours :(
[01:43]
RiskRewardOK, rest is there, I'll try removing it. [01:45]
gac410That was probably causing the 302. Redirecting the rest to get a login. [01:45]
RiskRewardWhat about restauth? [01:45]
gac410That should stay there. [01:45]
RiskRewardStill getting 302 on the POST [01:47]
gac410Ah. you might need to kill the fastcgi tasks, or just restart apache. The config uses fastcgi by default. [01:48]
RiskRewardRestarting apache didn't fix it.
sudo service apache2 restart
[01:49]
gac410yea that should be enough.
The 302 is definitely an issue. You can't redirect POST ever. redirect will covert it to a GET.
What is the "Location" in the 302 That is what it's trying to redirect to.,
[01:49]
RiskRewardhttp://wiki.dandi-sydney.local/Sandbox/FormPluginExamples [01:51]
gac410Are you using "short URLs" So is it redirecting from bin/view/Sandbox to /Sandbox?
Or is the hostname wrong dandi-sydeny.local from some-other-hostname?
[01:52]
RiskRewardCan only see short URLs on screen. Not sure where this is set. It's based on the Foswiki Virtual Machine [01:53]
gac410What did the POST URL look like going into the redirect Exactly what's being changed.
The redirect is probably being done by Apache configuration, and the URL is wrong because of Foswiki configuation. First lets ignore the form look at a regular view page.
[01:53]
RiskRewardOK, I'm looking at a vanilla topic. What next? [01:55]
gac410hover over one of the other topic links on the page. Is the url in the URL bar different from where the link would take you [01:56]
RiskRewardYes. The link includes "bin/view" [01:57]
gac410okay. edit your configuration. In the path tab
General Path Settings {ScriptUrlPaths}{view} Should be "empty" ... no spaces, nothing...
That will remove the bin/view from the url. That should speed up some things as well and improve Anchor performance
[01:57]
RiskRewardOK, currently says "$Foswiki::cfg{ScriptUrlPath}/view$Foswiki::cfg{ScriptSuffix}" [01:59]
gac410Yup. double-clikc it and hit backspace
and then save that.
[01:59]
RiskRewardDone [01:59]
gac410FastCGI *should* auto-restart the handlers when the timestamp on LocalSite.cfg changes. but to be certain, restart apache [02:00]
RiskRewardDone.
FormPlugin example in sandbox is working now! About to try our custom form.
Custom form working now! Wow, thanks!!
[02:00]
gac410great. yeah the redirect and short URLs is a royal pain to configure. Hopefully 1.2 is going to make this better. [02:03]
RiskRewardNow to try and remember what I was actually trying to achieve today :)
Thanks so much for your help.
[02:05]
gac410sure glad to help [02:05]
....................................... (idle for 3h12mn)
VickiBrownHello people. I have either found a bug in Foswiki access control or I'm doing something stupid.
This page: http://wiki.cfcl.com/BAAPT/BrainScanning has access controls:
* Set ALLOWTOPICCHANGE =
* Set DENYTOPICCHANGE =
It should therefor be editable without password.
Unless I'm forgetting something in the configuration??
[05:17]
gac410hm I don't think you should set ALLOW. Also, if edit is in the AuthScripts list, I think passwd will still be required at the script leve. [05:19]
VickiBrownI don't think I should set ALLOW either (it was an experiment when DENY didn;t do the override I expected).
I'll take a look into AuthScripts!
[05:25]
gac410Allowing "guest edit" might be risky. Also need to allow rest, and save I thinhk [05:26]
VickiBrownI removed edit from AuthScripts, took out ALLOW…=
still getting a login promopt
[05:30]
gac410Are you using Apache auth, or Template auth? [05:30]
VickiBrownTemplate auth
I can create a shared ID/password for the group that needs access to this page, but that's not, ultimately, the right action. We need to be able to open gesut access to specific pages
[05:30]
gac410hm, I've never tried guest edit.
Let me see if my 1.1.9 system is working. I can try it.
Okay, Foswiki 1.1.9. AuthScripts. I removed edit, rest and save. Then edited a topic and added " * Set DENYTOPICCHANGE = " and saved it. Then logged out.
Then as guest, hit Edit. Wysiwyg / TMCE came up fine.
Saved fine. Stupid question. You are entering it in Wysiwyg as a real bullet, or in Plain Text editor as 3 spaces * Set ... And also view the topic metadata, make sure that there are not auth settings in the meta.
bin/view/Web/Topic?raw=all
And if you are using mod_perl, restarted apache. Fastcgi, ran enough transactions for the tasks to detect the config change and reload, or restart apache
Yikes. 1.1.x does not include DENYWEBCHANGE = WikiGuest by default. So removing edit from AuthScripts totally opens up edit on all topics.
So if you do this, make sure you disable edit by WikiGuest by default on all your webs.
That's one of the defaults we changed on the upcoming Foswiki 1.2
[05:31]
VickiBrownYorg.
FYI, I never use WYSI.
Can I do ALLOWTOPICCHANGE = WIkiGuest
[05:47]
gac410Yes, but that will allow ONLY WikiGuest. Deny = empty should work fine.
Foswiki 1.2 makes it a bit clearer by permitting "*" as a wildcard so ALLOWTOPICCHANGE = * But not in 1.1.9. That one still needs the empty DENY rule
You could also Set DENYTOPICCHANGE = NobodyGroup That should also deny nobody, or allow all.
hm... nope. That doesn't work.
[05:48]
VickiBrownI've restarted Apache. Nothing in Meta settings.
ALlow WikiGuest still asks for login
I've apparebntly set something somewhere that requires a login for any edit attempt
I just don't know what I did
[05:51]
gac410Double check your LocalSite.cfg Make sure that AuthScripts is not defined twice. That was a very old bug
1.1.x though should detect / clean duplicate settings.
Foswiki 1.1.9 See Foswiki/Meta.pm. You can set sub MONITOR_ACLS { 1 } and foswiki will print out all the decisions leading up to an access decision.
[05:53]
VickiBrown: almost 1am here. I need to pack it in for the night. good luck. [06:02]
***gac410 has left [06:02]
.... (idle for 17mn)
VickiBrownthanks [06:19]
Drat. If someone knows where foswiki prints stderr if I set MONITOR_ACLS {1} I would be much obliged. [06:30]
...... (idle for 29mn)
***ChanServ sets mode: +o CDot [06:59]
..... (idle for 22mn)
CDotVickiBrown: you mean, where the prints go? [07:21]
.......... (idle for 48mn)
***ChanServ sets mode: +o MichaelDaum [08:09]
........... (idle for 52mn)
jastVickiBrown: stderr usually ends up in the web server's error logfile [09:01]
............... (idle for 1h11mn)
GithubBot[distro] cdot pushed 1 new commit to master: http://git.io/NbcC
distro/master ca83156 Comment: Item13181: sort the keys for FormTypes in Foswiki.spec so that a string comparison in JS works. Make the PERL type comparison a bit more tolerant of formatting
[10:12]
***GithubBot has left [10:12]
...................................... (idle for 3h7mn)
ChanServ sets mode: +o gac410 [13:19]
...................... (idle for 1h48mn)
ChanServ sets mode: +o Lynnwood [15:07]
........... (idle for 50mn)
ChanServ sets mode: +o CDot [15:57]
........ (idle for 37mn)
GithubBot[distro] Jlevens pushed 3 new commits to master: http://git.io/NAHn
distro/master a117576 Julian Levens: Item13135: Now using sub-directory not structured .git/exclude/info
distro/master 250b2a6 Julian Levens: Merge branch 'master' of https://github.com/foswiki/distro
distro/master 1961a43 Julian Levens: Item9693: Add space before %ATTACHURL% to display myco.gif
[16:34]
***GithubBot has left [16:34]
.................. (idle for 1h25mn)
GuilainCI'm trying to understand why my wikidrawplugin install doesn't work, so if someone has 5 min for explain the use of the RANDOMIZER line 476 (https://github.com/foswiki/WikiDrawPlugin/blob/master/lib/Foswiki/Plugins/WikiDrawPlugin.pm) it will be appreciate [17:59]
...... (idle for 28mn)
gac410, I've change the status to "close" for the Item9884, because i've found it solved, hoping i do the well thing [18:27]
gac410Hi GuilainC As long as the patch is in the released version of the extension, then yes it should have been marked closed. Thank you. [18:29]
GuilainCok, should be fine... even if deb package some to be more and more broken [18:38]
gac410yeah. I suspect we really need a new debian maintainer. I've not heard from SvenDowideit, though he's online here most of the time. [18:39]
GuilainCand gac, have you done a main git repository agregating all of them (distro + all small extension) ?
I think so, that's why i take my two hand, and try first to understand how it worked....
[18:40]
gac410We have a repository for the release, and then one for each of the non-default extensions. [18:40]
GuilainCmy aim is to be able to have an debian install "out of the box" of quality
you don't have something that all.git which agregate into submodule all repo ?
exact ?
[18:41]
gac410So if you clone https://github.com/foswiki/distro.git pseudo-install will install each non-default extension by running a git clone of each extension,. [18:42]
GuilainCah... [18:42]
gac410We didn't do submodules, because there are so many extensions, many that are not released, or old / obsolete. [18:42]
GuilainCok,finaly i'm just need the all file not git history [18:43]
gac410We started out with an _allFoswiki umbrella repository, with a submodule for every extension that existed. But it was becoming too complex'
So you end up with nested repositories using pseudo-install, but not submodules or subtrees.
[18:43]
GuilainCI want to make an big dependencie between in one side the dependencie file from the master branch,and in the other side from the debian package
and make pairwise comparison
(I wan to make a big dependencie *check*..."
[18:43]
gac410There is a rather long list of debian package related issues http://foswiki.org/Tasks/DebianPackage probably others as well, but those are the ones that have been "classified" [18:46]
GuilainCso Download/NightlyBuilds is only make from the distro.git repo ? [18:47]
gac410Yes.
That's all "alpha quality" ... and it builds only if the unit tests all pass.
[18:47]
GuilainCi take a look of all of that, for the moment, i've to say, that i don't have many trouble with debian package, but the missing dependencie is for me a nightmare, i'm not knowing enough foswiki for knowing which perl package I've to install...
ok, could we precise it ?
[18:47]
gac410Each extension should have a file named DEPENDENCIES which lists requirements, but by CPAN name, not debian or rpm
We've worked some on the distro dependencies. Foswiki 1.2 has an updated requirements page http://trunk.foswiki.org/System/SystemRequirements
Ping SvenDowideit Are you around?
[18:49]
GuilainCis not a problem, because the perl package under debian take into their description the CPAN name [18:51]
gac410most of the time :D [18:51]
GuilainCso what i've done, for each, is simple as apt-get search Text::Unidecode
yes most of the time, but for the moment, i've only do that..., there should be perhaps a better way, but it's work ! :)
[18:51]
gac410I think Sven's packaging code converts using the formula of libtext-unidecode-perl for ex. But not certain what he does. The tools are all in git distro
(I think).
[18:52]
GuilainCok
and then, i've done minor fix on wikidrawplugin, but not mark as a task, should first make a task ?
and to be precise, I hope I've make a fix, and not a bug
[18:53]
gac410They are buried down in the tools directory somewhere Yes. best to have a task. [18:54]
GuilainCI'm not a developper :) just a script kid'
GuilainC clonning distro.git
[18:54]
gac410WikiDrawPlugin is marked "Coordinate with Author" It's one of SvenDowideit's extensions. So I'd suggest opening a task and seeing if you can get his attention for permission to fix. [18:55]
GuilainCdully noted
you see this kind of topic Community/DebianPackagingTaskTeam is very good, but need some cleaning, there is some information very out of date
[18:56]
gac410yes. Some of the early efforts have become very stale. Please fix what you can. [18:58]
GuilainCI will try !
gac410,
you work on configure script isn't it ?
[19:01]
gac410well a bunch of us do. More Crawford (CDot) and MichaelDaum [19:05]
GuilainCok, have you plan to change the advice of permission settings ?
755 for dir and 644 for file
?
because for me is an non sense to speak about permission without speaking of the uid and gid which execute, read, and sometime write
[19:06]
gac410That advice was established way before my time. iirc they used permissive settings to help with install in the widest range of hosted configurations.
Every distro is a bit different on uid/gid. apache www-data www , not to mention nginx, lighttpd, and other alternative servers.
And the users on AFS don't even want us to do permission checks, since those file systems have different approaches.
755 / 644 seems a compromise (but not all that secure) that lets foswiki run on initial out-of-the-box after unzip / tar -x
[19:08]
GuilainCyes you right, but it's write as an error
I think is more an warning
[19:10]
gac410The reason it's an error is because foswiki will create new files with the same permission. Need to use advanced settings in Store to override the umask if you want to change the permissions. [19:11]
GuilainCah ok
:)
don't think about that
[19:12]
gac410I guess the tests are not sophisticated enough. I think we warn if too much permission, and error if not enough permission. Ie if a write will fail, then the permission issue is a error.
But the code has gone through many hands / changes, so it may have drifted away from that a bit :)
[19:12]
GuilainCyes, I understand, for me, it's just boring me when i request /bin/configure, everything is not "green" :) so at the end, I could pass over an important error
i'm just discovering dependencies_installer.pl in the tools directory, interesting
[19:14]
gac410I've never tried it. or maybe I did once. IMO it's way too complex - tries to do everythign for everyone. Some of the tools it uses cpanplus? are deprecated now.
It has not been maintained in a long time.
last changes were back in 2010, except for some trivia (fixed shebang, perltidy)
it's probably way out of date.
[19:15]
GuilainCok... : / [19:17]
gac410gac410 suspects we should drop it from the release, unless someone decides to validate & fix it. [19:18]
***VickiBrown has left [19:20]
GuilainCmore i read, and go deeper into foswiki, more i think that a "bit" clean up is needed, suppres all is not use the last 2 or 3 years
and everybody will win time and brain health
[19:24]
gac410lots of needs, not enough energy or volunteers. [19:25]
GuilainCHow can i put my point of view and comments relative to http://trunk.foswiki.org/System/SystemRequirements ?
is there a comment section ?
a sorry, should I make a comment/discussion section ? comment:discussion topic ?
[19:26]
gac410That's a distribution document. You can maintain it in git in your checkout, or create a task to propose your changes.
The topics in System can't be maintained via the web. Need to use git and commit changes.
[19:27]
GuilainCargh.... the concept of using git for making collaboration on wiki is not my cup of tea ! [19:28]
gac410yeah. it has been a long time discussion on how to edit System documentation. It's mainly just that web that we need to have under "release control" [19:29]
GuilainCI will submit my suggestion in the debianPackage somewhere, in this case, i'm just polluting a part ;) and not spreading anywhere [19:30]
gac410trunk.foswiki.org is more difficult even, as that is a git clone, and is refreshed every 15 minutes from git [19:30]
........................ (idle for 1h57mn)
GuilainCgac do you know which host, build the deb package ? [21:27]
gac410, hope my task is correct http://foswiki.org/Tasks/Item13264
in the sens of well written
[21:33]
.... (idle for 19mn)
after take a look of all the file in core/tools/pkg I'm not be able to tell how the debian build script get the dependencies.... [21:52]
...... (idle for 28mn)
RiskRewardHi, I'm trying to think of a clever way to create a whole lot of topics at once. I'm uploading our supplier information (about 50 suppliers). Each supplier would be represented by a topic, with their details in an attached dataform. Anyone free to discuss? [22:20]
jmk0curl or wget
and some shell scripting
[22:21]
RiskRewardI was thinking of writing a Python script to process a CSV with the info, and outputing txt and txt,v files for foswiki. [22:22]
jmk0curl -D some-cookie-file -d "username=WIKIUSER" -d "password=WIKIPASSWORD" -k http://yourhost.com/wiki/bin/login/Main
curl -b some-cookie-file -k --data-urlencode "text@source-data-file" -d "topicparent=SOMEWIKITOPIC" http://yourhost/wiki/bin/save/WEB/TOPIC
[22:23]
GuilainCcurl ! [22:24]
jmk0curl -b some-cookie-file -k "http://yourhost.com/wiki/bin/view/Main/WebHome?logout=1"
that's it, really. You don't need the -k unless you're using https with funky certs
[22:25]
GuilainCother way (not sure, never use) http://foswiki.org/Extensions/MultiTopicSavePlugin [22:26]
RiskRewardThanks. I'm going to look up Curl. [22:30]
Any tips on where I can learn more about the cookie file? [22:37]
jmk0it's just a file to store the cookies for your session in. You don't create it, curl does that for you with that first command
-D creates it, -b uses the created one IIRC
[22:41]
RiskRewardHow about the format of "text@source-data-file". Is that the pre-prepared txt file for the topic? So do I need a directory of those files, and get the script to loop through? [22:44]
jmk0yep [22:45]
RiskRewardSo I still need python (or similar) to work through my CSV file of data and create all the txt files? [22:45]
jmk0probably [22:45]
RiskRewardDo I need to create txt,v files too? [22:45]
jmk0no [22:46]
RiskRewardOK, I'm set. Thanks for your help! [22:46]
jmk0the only advantage to you for using curl this way is that you don't need to mess with the wiki metadata
np
[22:46]
.... (idle for 15mn)
***mephinet has quit IRC (Remote host closed the connection) [23:01]
RiskRewardAnother quick question: in the curl line above, where the topic gets saved, do I need to replace TOPIC with the name of the topic? i.e. it needs to change with each txt file as the script loops, right? [23:03]
jmk0yes
assuming you want each file in a separate topic :)
replace WEB and TOPIC to the wiki web and topic names you want to save the file contents to
[23:03]
RiskRewardSo could use "topic=..." earlier in the script, and $topic in curl? [23:04]
jmk0i don't understand what you mean [23:06]
RiskRewardSorry, I mean: TOPIC=TOPIC0001
export TOPIC
curl -b some-cookie-file -k --data-urlencode "text@source-data-file" -d "topicparent=SOMEWIKITOPIC" http://yourhost/wiki/bin/save/Sandbox/$topic
In looping bash script
[23:07]
jmk0ok, let's say you have a set of files in /tmp/moo/*.txt with a cookie file in /tmp/cookies. You want these new pages to be named after the text files in /tmp/moo and you want the parent topic to be WebHome... you'd do something like:
for i in /tmp/moo/*.txt ; do curl -b /tmp/cookies --data-urlencode "text@$i" -d "topicparent=WebHome" http://yourhost.com/wiki/bin/save/Sandbox/`basename $i .txt` ; done
[23:09]
RiskRewardSweet! [23:12]
A different question: I'm trying out Michael Daum's %GRID{}% plugin. When it reports the wikiname of a topic's creator, it replace the 'period' with _2e. Think it has something to do with UTF-8 or similar. Any idea if I just have a configure setting wrong? [23:21]
jmk0that I can't answer :) [23:21]
RiskRewardSure. I've posted it as a question on the plugin's foswiki.org page. We'll see what happens. [23:23]

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