#foswiki 2015-06-04,Thu

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

WhoWhatWhen
gac410hey all, I'm going to shut down foswiki.org apache for a while to reorganize some logfile locations. Getting ready to try the utf-8 conversion [00:31]
............. (idle for 1h4mn)
***ChanServ sets mode: +o gac410 [01:35]
........ (idle for 38mn)
gac410foswiki.org bac up
gmc ... you around?
I want to run the utf8 conversion, but I need to do a backup first. Copy is very very slow. cp -a, or tar, probably would take hours to copy the 7 Gig and then the converter needs to run
[02:13]
.............................................. (idle for 3h48mn)
***ChanServ sets mode: +o MichaelDaum [06:02]
....... (idle for 30mn)
ChanServ sets mode: +o CDot [06:32]
....................... (idle for 1h51mn)
GuilainChi all, after upgrade, when try to save change in configure i get this error:
"CGI::param called in list context from package Foswiki::Configure::UIs::AUTH line 44, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/share/perl5/CGI.pm line 436."
if this tell something to someone, please help... if not... I investigate
try Support.Question1540
and... working !
[08:23]
update/comment of Item13443 [08:34]
jomoarrrrgh...
jomo once again is astonished that how the Foswiki CAN DONE complex things quite easily but simple things are almost (maybe) impossible.
Could any Foswiki lord give me an idea how to generate an UNIQUE 4 digit number?
E.g. when creating a topic, need add (to its attached form-field) one 4 digit number, and this number should be 1.) random 2.) unique (e.g. not contained in any other topic)
So, something as AUTOINC (e.g. each number is unique) but i need an RANDOM, not sequential one...
any idea?
[08:47]
..... (idle for 20mn)
GuilainCuse rand function from spreadsheetplugin
or this
http://foswiki.org/Extensions/RandomTopicPlugin
MichaelDaum inside, so should be a good one...
oups forgot RandomTopicPlugin !
[09:12]
jomo:) [09:14]
GuilainCis not what you want to do !
no other idea of using rand function from spreadsheetplugin
GuilainC trying to get working piwik and foswiki :(
[09:14]
jomothe rand produces a random number - ok - but HOW to ensure be UNIQUE? [09:16]
GuilainCif it's for an creation topic
you can add a parameters for the creation something like "onlynew"
which will ensure that the topic you want to create is unique
a good random is always unique :)
for example when you editing an page, the unique id is made by simple the date of edition
is the t=%SERVERTIME{"$epoch"}% added in the url
so take a random + epoch should give you an unique...
don't forget that unique is depend of the lenght of bit you take
unique on 2 digits... is limited to 100 topic :D
[09:16]
jomokk- so, need 4 digit, unique, random (0000-9999) (assume than here no more topics as 9999). [09:18]
GuilainClet me think in an foswiki point of view...
if i were you, i will combine autoinc
for example on two digit
+ rand
or epoch time (depending how you want the "guessablility" of you random)
[09:18]
jomoany random is OK, until it is unique and not sequential... ;)
not need cryptographically safe random :)
[09:19]
GuilainCtwo digit autoinc + rand on two digit
autoinc give you safety on the unicity
or best, add rand="on" in autoinc macro :)
thinking again,
[09:20]
jomoim already using autoinc for the topic names - e.g. the topics are called as such Item0001 .. Item0002 [09:22]
GuilainCone digit of autoinc should be enough
and count/cron job for control if one random number reach the limit of 10 topic
hum think about that, autoinc0 will continue after 9, to 10, 11
(about what i've understand)
so finally, juste make something like that %AUTOINC0%%CALC{"$rand(xxx)"}%
you will start with 4 digits and then if limit is reach go to 5 digits
what do you think ?
[09:22]
jomotrying be more precise: th user press "create new item"... got a form, where he fill some basic things (like when you opening a new Task in the FO Tasks web., at the SAVE i'm using autionc, e.g. the topic got a name such Item0001 Item0002 and so on.. besides this, i need add to the one form-field an 4 digit number what is uniqie and somewhat random.. ;) [09:25]
GuilainChum !
ok now ! I understand that what i suggest is unfunctionnal :) let me some min
I don't think you can avoid to check if existe before submission...
[09:26]
MichaelDaumjomo, have a look at http://foswiki.org/Extensions/MoreFormfieldsPlugin#A_61id_61 [09:27]
GuilainCI think you need to first generate, check if existe and then accept submission..
aaahhh MichaelDaum has an solution for that :D
[09:28]
MichaelDaumthe formfield type "id" takes the numeric part of an AUTOINC'ed topic and stores it in to META
as the core takes care of AUTOINC being unique so will your "id" formfield be
not random ... but unique at least
[09:28]
jomoyes, this way i got an sequential unique nubmer into data-form. ok. The problem is - it is sequential - not random :)
exactly ;)
[09:30]
MichaelDaumunique + random = random & unique [09:31]
jomojust asked - for ideas - write an simple GETRANDOMUNIQ macro in perl is half hour... but.. [09:31]
MichaelDaumonce you have the unique ID you could add a random string to it via %CALC and bingo
another idea would be http://foswiki.org/Extensions/DigestPlugin
and feed it with some unique seed, such as epoch seconds
[09:32]
jomothe client has BAD data model - but this is outside of my reach. Think about as: the user (somewhere elsewhere enter an 4 digit PIN) - based on this PIN i must select the right topic. This is easy. But when creating a new topic, the pin should-not be guessable easily (again, not need cryptographically safe) but if the 1st pin is 2364 the next should not be 2365 or such... thanx anyway for suggestions - will think about them. ;)
and ofcourse it must be unique - because selecting the topic based on the pin.. ;(
[09:36]
GuilainCjomo, if i were you, i will reconsider to use you "pin" (unique) as the topic name, but if you app is already in use... I understand is not applicable [09:39]
jomoanother way is - create a topic with a table with numbers 0000-9999 in random order and somewhat pop out the first/last unused line... [09:40]
GuilainCraaah ! forget to activate piwikplugin... that could explain the 0 visite ! [09:40]
jomonever tried GlobalReplacePlugin it edits topic inplace? [09:41]
GuilainCwhy not, but if you get table, you are the king (you get all the topic name)
never tried (for me)
[09:41]
jomoi can manually create on table with 10000 lines... where each line randm number - and just need somewhat pick the first available line and MARK IT as unavailable...
so somewhat edit the table by foswiki macro..
[09:43]
GuilainCnever hear that (something editing foswiki table) [09:44]
jomomust check the GlobalReplacePlugin - it seems could be a solution.. [09:45]
........ (idle for 37mn)
another unrelated thing - having a web let call it as Some - it has a subweb Some/Subweb - when I set in the Some.WebPreferences the ALLOWWEBVIEW = AdminUser it works and nobody can view the Some web but AdminUser. but the Some/Subweb is still accessible by anyone. It is intetional with a good reason? [10:22]
...... (idle for 27mn)
GuilainCthe access control is by default web separate
not sure of my english here, for me is normal
each web is independant
to my self is very useful :)
if you want change it, you can apply, pref from the upper web
[10:49]
jomoyes i see = in dirrect opposite what the user usually expects... I can live with this, simply closing the subweb too, but what's a point close the parent web, and allow access the subweb? (e.g. the parent doesn't even shown in the WEBLIST - but in the url is clearly visible its name anyway) - don't understand the ratio behind this... [10:54]
GuilainCaccess control is often not what we expect... in all sys (std unix, acl unix, windows acl, etc)
don't forget this variable too : FINALPREFERENCES
[11:04]
......... (idle for 40mn)
jomojomo really need learn javascript...
the unique-random pin is stupidly easy with javascript... the %SERACH retruns all existing pins, passing them to JS, and the JS generate one what isn't in the passed list... 4 lines is JS /and this was my second JS program/ ;)
[11:44]
........... (idle for 54mn)
***ChanServ sets mode: +o gac410 [12:40]
gac410gmc are you around for some questions [12:44]
GithubBot[distro] FoswikiBot pushed 2 new commits to master: http://git.io/vIv4B
distro/master 248f670 Guido Brugnara: Item13252: Translations updated using Weblate (Italian)...
distro/master aaa4355 Guido Brugnara: Item13252: Translations updated using Weblate (Italian)...
[12:54]
***GithubBot has left [12:54]
gac410CDot: Sorry I've not managed to get the utf8 conversion done yet. [12:55]
CDotno owrries, in your own time [12:55]
gac410The server has been really really slow. Backup appears to take hours.
Partly issue is some huge directories of garbage which I've been cleaning up. DebugLogPlugin work_areas had >> 100,000 files and almost a gig.
[12:56]
CDotyikes [12:57]
GithubBot[distro] cdot pushed 2 new commits to master: http://git.io/vIvBS
distro/master 97967b0 Crawford Currie: Item12888: fix unit test problems introduced in the last table-related checkin
distro/master 4a1877b Crawford Currie: Item12888: IMG src= attribute handling fixed (again)
[12:57]
***GithubBot has left [12:57]
gac410And partly the issue is that the server just seems very slow.
I finally installed rsync so I could copy only changed files. Make snapshots easier. and I was getting 10 Kbps using pkg to fetch the package indexes
[12:57]
CDotbad choice mirrors? [12:58]
gac410So that took me 1/2 an hour as well.
I'm wondering if I'm contenting with disk i/o on the host, external to the jail after 0 gmt
Even running tar was extremely slow.
I'm hoping I'll catch gmc at some point for some ideas. I didn't want to have f.o shut down for hours during the conversion run.
At least now with rsync, the backup is faster. only a couple of minutes to copy changed files.
CDot, Did you put a copy of your modified check_encoding back, or is it lost ?
[12:58]
CDotit has slipped through a portal into the dungeon dimensions :-( [13:04]
gac410That's what I was afraid of :( [13:05]
CDotit was just a hack anyway, didn't do much that yours didn't [13:05]
gac410okay. well I'm ready to run the utf8 conversion now. I've got LocalSite.utf-8 files ready to go, and rsync makes backup quick.
is the "real update" going to be a lot slower than using "-i -r"
[13:06]
CDotok. did you check for bogus encodings in the names of attachments? [13:06]
gac410er... no [13:07]
CDotor maybe -i -r does that
yes, i think it does
does -i -r detect any dodgy encodings now?
[13:07]
gac410Yes it does
lemme run it and I'll pipe it to a log so we can grep for strangeness.
[13:07]
CDotk [13:09]
GithubBot[distro] cdot pushed 1 new commit to master: http://git.io/vIvgp
distro/master 78c4f4b Crawford Currie: Item12888: unit test fix
[13:14]
***GithubBot has left [13:14]
gac410btw ... did you leave trace active in table plugin, I'm seeing lots of debug messages from the cronjob runs
cdot home/foswiki.org/convert.log grep -i warn lots of charset warnings.
[13:15]
CDotnot touched TablePlugin [13:17]
gac410hm [13:18]
CDotI left the Table module trace on last night. It's off now.
that's probably what you were seeing
[13:18]
gac410oh. yeah that's what I was seeing.
There are maybe a dozen or so name warnings: like
WARNING: windows-1252 encoding detected in name /usr/home/foswiki.org/public_html/data/Sandbox/TestT�pic.txt
[13:18]
CDotok. That's issued if the encoding detected doesn't match the expectation (which is iso-8859-1 [13:20]
gac410er... 33 names have bad encodings
are there any errors I should grep for?
lots of content warnings, but that is expected.
[13:20]
CDoterm. Yes, you should grep for all errors. Or better, grep -v not-an-error.
CDot is being sarcastic, as he has no idea how to grep for errors
[13:21]
gac410yeah I'll do a process of elimination with -v greps
This doesn't look good: Wide character in print at /usr/home/foswiki.org/public_html/lib/Foswiki/Contrib/CharsetConverterContrib.pm line 31.
[13:22]
CDottsk [13:23]
gac410hm. I think it ended prematurely:
Unknown encoding 'gb18030' at /usr/home/foswiki.org/public_html/lib/Foswiki/Contrib/CharsetConverterContrib.pm line 95.
was last line printed.
[13:26]
CDotwooohooo [13:27]
gac410Bad topic was "Extensions/WebSearch" [13:27]
CDotchinese government standard [13:27]
gac410probably just override gb18030 to be iso-8859-1 That should be a standard topic I think. Strange detection lemme find out what the bad char is.
Looks like it's in the rcs file. Andrzej JJ��asd no non-ascii in the .txt file
[13:28]
CDot#foswiki-admin ? [13:31]
GithubBot[distro] cdot pushed 1 new commit to master: http://git.io/vIvPL
distro/master f896d65 Crawford Currie: Item12888: testcase fix
[13:34]
***GithubBot has left [13:34]
GithubBot[distro] cdot pushed 1 new commit to master: http://git.io/vIvyF
distro/master ecd8b62 Crawford Currie: Item12888: testcase fix
[13:46]
***GithubBot has left [13:46]
........ (idle for 35mn)
GuilainChum, does anyone have test/attempt/made an open graph protocol plugin for foswiki ? [14:21]
gac410I don't know what open graph is. DirectedGraphPlugin implements GraphViz which uses the "dot" language for describing graphics [14:22]
GuilainChttp://foswiki.org/Extensions/LinkedInPlugin seems to implement something (by the %SHARE% macro) but don't know if it use a proprietary api from linkedin or the open graph protcol
oh gac410 ogp is for sharing article in social network
it's enable these one to know title, image, description
[14:24]
gac410gac410 doesn't do social networking :P [14:25]
GuilainCfoswiki have all the details, perhaps a simple template hack could do it
:D me neither...but try to change it
good image example: http://www.yakaferci.com/images/articles/open-graph.png
[14:25]
gac410MichaelDaum: Question1611 ... Do you know if ClassificationPlugin is one of those that expects utf-8? I've started trying to answer the question.
Asking questioner if their foswiki is set to utf-8 or not.
[14:33]
MichaelDaumcan't repro the bug
works fine here with an utf8 site charset
[14:36]
gac410yeah my guess is they have a non-utf-8 charset.
CharsetConverter on foswki.org finished a dry-run finally, without errors
Checked: 97677 files (33 renamed) Converted 32249 Topics
[14:38]
jmk0something that came up last night after nearly everyone had bailed: what can you do if your %SEARCH results, with multiple="on", yield matches that include an opening HTML/WIKI tag but not the close tag (as it's on a following line)
in my case i'm using format=" * $item $text" which results in a <verbatim> tag in the middle of one result and all subsequent results are formatted as if verbatim applied
[14:44]
gac410processing with regexes can be very very difficult. as you have discovered :)
I saw your question, but had no idea how to answer
and was up to eyeballs trying to wrangle f.o server into submission. ping gmc are you around at all?
[14:47]
jmk0welp. [14:49]
gac410jmk0: With forms, there has been a gradual move from regex to form based processing. At one point, regexes were all that were available. Moving to structured data makes things much easier.
I know that doesn't help your issues :(
[14:54]
jmk0no, it doesn't. In fact, if regex support is removed entirely as you seem to be hinting at, what I'm doing will no longer be feasible [14:58]
gac410no no no.... no plans to remove that i've every heard
Lots of stuff still use it, but it is just more difficult to accomplish than with structured data.
What I've often seen is "structuring" the targets of the regex, for ex. |table|contents| then grep has a clearer start/end to pull from.
[14:59]
jmk0and if that table has a multi-line verbatim block? [15:09]
MichaelDaumthats not a good way to store your assets ... is what gac410 is saying [15:10]
gac410hm I'm pretty sure there are ways to get a regex to cross line boundaries in the search. But it's been many years since I fought with this. [15:10]
jmk0not the way multiple="on" is implemented [15:11]
gac410back in 2010 when I was gainfully employed :D [15:11]
jmk0Search.pm:823: @multipleHitLines = reverse grep { /$pattern/ } split( /[\n\r]+/, $text ); [15:12]
gac410ugh. yeah I guess that kills it :(
Do you actually need to get the multiple lines, or are you trying to just stop the <tag> from being interpreted.
[15:12]
jmk0i do not need the multiple lines. I think the tag should either be auto-escaped or auto-closed [15:14]
gac410ah. hm I wonder if you can %ENCODE the results to deactivate the tag. [15:14]
jmk0I tried, it broke as well [15:14]
gac410How did you do the encode? format="$percntENCODE{....}$percnt" [15:18]
jmk0yep [15:18]
gac410The <verbatim> was still active after the ENCODE ... that's strange, it should have entity encoded < > [15:21]
jmk0what I get is %ENCODE{...formatted text... <verbatim>}% .... [15:24]
gac410So the verbatim is killing the closing }% of the ENCODE. [15:26]
jmk0apparently [15:26]
gac410format="$percntENCODE{$quot$item $text$quot}$percnt"
gac410 can never get straight when to $quot and when to \"
[15:26]
jmk0nope
same results, except now with "
[15:28]
gac410hm Maybe delay the quot $dollarquot ...$dollarquot [15:31]
jmk0lol [15:32]
gac410gac410 pulls hair on this stuff.
don't laugh. I've seen stuff like $dollardollarquot
[15:32]
jmk0i shouldn't laugh at that? :-) [15:33]
gac410usually when I get to them it's tears, not laughter :D [15:34]
........ (idle for 37mn)
jmk0ok. %SEARCH{"%CRUNKREGEX%" web="TestWeb" topic="TestNo*" type="regex" multiple="on" format=" * $item $text"}%
given that, if the regex in %CRUNKREGEX% matches a form field value, but nothing else in a topic's text, $text will be replaced with the entire text of the topic
is this intentional?
probably because of Search.pm:837 $text = pop(@multipleHitLines) if ( scalar(@multipleHitLines) );
[16:11]
gac410jmk0: I'm going to guess that it's a bug. But $text is indeterminate It's defined as formatted topic text. which doesn't include meta
I'm definitely not the best guy to talk to regarding search
CDot: ... I'm starting a Support "Utf8MigrationConsiderations" topic. How's that sound for now
hm Acutally searching for utf8 mentions, don't want to duplicate
[16:21]
...... (idle for 29mn)
CDotI tried to gather all the UTF8 topics in Development under one roof
however I suspect it's all pretty useless, and we know far more now than anyone in the past :-(
[16:53]
gac410I've started Support/Utf8MigrationConsiderations [16:54]
CDotshouldn't it be "UnicodeMigrationConsiderations"? [16:54]
gac410Trying to put it into context of what a user will look for. Our docs all talk about converting encoding to utf-8 so ... [16:54]
CDotI guess it doesn't make much difference for most people. [16:55]
gac410The dev topics all are focused on how to make foswiki internally work. I wanted the support topic to say, okay, you've seen the recommendation to migrate to {Store}{Encoding} = utf-8
yeah semantics
Right now I feel pretty good that I can do the migration tonight.
gmc you there yet?
[16:56]
CDot: what's it 5pm your time or thereabouts. I wonder if we should shutdown foswiki.org apache now and run the conversion while you are around ... if you'll be there for a while.
or best to wait to midnight gmt.
[17:05]
CDot6pm
7pm in germany
[17:06]
gac410what are your feelings on how it will go later. comfortable at this point? [17:07]
CDoty, comfy. We really need that check_encoding script, though
I'd rather develop it now, while we still have mixed data to work with
[17:19]
gac410okay. I was getting comfortable using the convert script with -i -r Seems to do about the same thing doesn't it? [17:20]
CDoty, but it requires an install of the CharsetCOnverterContrib
I guess that's OK.
[17:23]
gac410Maybe "safer" to include a check_encoding script in 1.2 , but don't want to add Encode::Detect to the dependencies I don't think.
Are you still editing Utf8MigrationConsiderations
I want to paste in a example of running the convert script, along with some annotated messages.
And I need to get my updated messages pushed to the contrib. I think it's important to have a "all done" message - I didn't recognize that it was failing with that gbxxxx characterset.
[17:24]
CDotfinished editing [17:30]
.... (idle for 16mn)
GuilainCarf, get an other perl crash with harvestplugin
involving Cache/FileCache.pm
hum why there so many Cache/FileCache.pm
in lib/, in CPAN/lib and one by perl
which one should we used ?
[17:46]
gac410hm directly in lib/ probably installed by an extension? MichaelDaum is known to do that :( lib/CPAN/lib probably included in foswiki distribution, and is considered "last resort"
Foswiki 1.2 will ship NO cpan, but michaelDaum adds them in his extensions.
[17:51]
GuilainCok, so the idea is 1) by OS perl install, 2) in lib/ 3) in lib/CPAN/lib
don't want to launch a terrific troll ;) !
but it's perhaps a non foswiki error, behavior of perl and @INC has changed since perl 5.18
and in my @INC some path are written but there is no such directories...
[17:53]
gac410and Foswiki 1.2 also changed behavior of @inc :( Really @INC changes in 5.18 ? yeesh [17:55]
GuilainCGuilainC 's investigating [17:55]
gac410Missing paths in @inc are rather normal I think [17:55]
GuilainCaccording to release note of debian jessie, if path is not reachable, perl stop with error
versus ignore it
"
The perl behaviour changed in such cases with Perl 5.18; from 'perldoc
perl5180delta':
"require" dies for unreadable files
When "require" encounters an unreadable file, it now dies. It used to
ignore the file and continue searching the directories in @INC [perl
#113422]."
[17:56]
GithubBot[CharsetConverterContrib] gac410 pushed 1 new commit to master: http://git.io/vIJP0
CharsetConverterContrib/master f14e681 George Clark: Item13442: Fixups for Foswiki.org migration
[17:58]
***GithubBot has left [17:58]
GuilainCis exactly what i have, an die [17:58]
gac410unreadable. is that due to a missing directory, or a file in a directory that you don't have permission to read [17:59]
martin_101Hi there, been installing foswiki 1.2.0 beta. when surfing to doamin.tld/bin/configure I see the text of the foswiki/bin/configure-file.
I think there should be executed something, right?
[18:02]
GithubBot[CharsetConverterContrib] cdot pushed 1 new commit to master: http://git.io/vIJ1X
CharsetConverterContrib/master b128469 Crawford Currie: Item13442: minor tweaks
[18:03]
***GithubBot has left [18:03]
GuilainCyes that why I was thinking that could coming from the unreachable directory I have in my @INC
hi martin_101, your server server perl script as text ?
[18:03]
martin_101yes [18:04]
GuilainCif yes, check carefully your apache configuration
if you are under apache
[18:04]
martin_101I am under apache and debian [18:04]
GuilainChum well debian :)
jessie ?
actual stable ?
[18:04]
martin_101yes, jessie [18:04]
GuilainCok, where did you put the config file of apache ?
(I supposed you have used ApacheConfigurator (something like that)
[18:05]
martin_101the specific one for foswiki I put in /etc/apache2/sites-available/foswiki.conf [18:05]
gac410martin_101: How did you configure apache. You should use http://foswiki.org/Support/ApacheConfigGenerator, and select Foswiki 1.2, and Apache 2.2 or 2.4 depending upon which apache is installed. [18:06]
martin_101Yes, I used the configurator [18:06]
GuilainCjust make "a2ensite foswiki" [18:06]
martin_101it is 2.2 [18:06]
GuilainCor an symbolic link in the conf-enabled to the conf-available [18:06]
martin_101it is already enabled [18:06]
gac410Ah a2enmod cgi ? [18:06]
martin_101and the link ist present [18:06]
GuilainCif you are under jessie, is 2.4
GuilainC spends two days to upgrade his jessie server, changing many things due to incompatibility between apache2.2 and apache2.4 ;)
ok, so to be sure, you have an link to the foswiki conf file in /etc/apache2/conf-enabled/
[18:06]
martin_101link exists.... [18:08]
GuilainCok [18:08]
martin_101... and a2enmod cgi helped [18:08]
GuilainCserver restart ? [18:08]
martin_101of course [18:08]
GuilainCso gac410 has right !
oh you know how many "of course" I need to correct/solve my mistake ! :)
[18:08]
martin_101but not yet done, now I have a "Software error: Can't locate JSO module [18:09]
GuilainCso everything works ? [18:09]
gac410For 1.2 beta, you should start from your default webhome view url, and then follow link to configure
very important if you want bootstrap to detect your desired url configuration.
Very different from the fw 1.1.x install process
with foswiki 1.2, it will be mostly operational even without a configuration
[18:09]
martin_101Thank you for your help. I am a step further, now I got a new error message:
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information. Can't locate Filepath in @INC (you may need to install the File::Copy::Recursive module) (@INC contains: path path path-linux-gnupath path path-linux-gnupath path path-linux-gnupath path path . path)
[18:14]
gac410See http://foswiki.org/System/SystemRequirements01x02 [18:15]
martin_101thanks gac410! [18:15]
gac410Expand the Ubuntu / debian requirements. There is an apt-get example to install all the perl prereqs
just below the table
[18:16]
martin_101STrike! [18:18]
GuilainChum gac410, please pick out an doubt in my mind... 1.2 Beta2 is not released ? [18:19]
gac410no. We've been struggling with the utf8 conversion.
I was going to do it this weekend, but unit tests had some issues. CDot checked in a bunch of changes, so if they pass, I'll build
I'll feel better if we can get foswiki.org fully converted to utf-8
[18:19]
martin_101So now I am running into the thing gac410 has foreseen:
Warning Foswiki is running in 'bootstrap' mode, which means that there is no existing configuration (LocalSite.cfg is missing or is unreadable).
[18:20]
gac410That's good. There should be a link in that banner ... follow it to configure and save configuratino
We do this so bootstrap can figure out if your url is foswiki/bin/view/... or bin/view/... or just site/Main/WebHome
When you follow the link to configure it caries over information about whether its's a "short url config" or not
[18:21]
martin_101it is domain.tld/bin/view and I am not allowed to access :( [18:22]
gac410not allowed to access???
Apache error?
[18:23]
martin_101Forbidden and it redirects me to / [18:24]
gac410In ApacheConfigGenerator, be sure you picked Foswiki 1.2, not Foswiki 1.1 [18:24]
martin_101Yes, apache error
yes, I did.
[18:24]
gac410Hm. Check your Apache configuration. Do you have a <dir match> for bin/configure ?
The config generator is supposed to *not* restrict bin/configure if you generate for Foswiki 1.2
[18:24]
martin_101No dirmatch
Ah, there is something in the manual
[18:25]
gac410The word "configure" should not appear in your Apache configuration when running Foswiki 1.2 [18:27]
martin_101It does in the FilesMatch-part:
<FilesMatch "^(configure)$">
[18:28]
gac410hm That sounds like it was generated for Foswiki 1.1. Or maybe a long time ago before we updated ACG
You should be able to just delete that whole FilesMatch block. configure is just another script now, like view, or any of the other bin scripts
[18:29]
martin_101No you are right. I used the 1.2 generated file and because I could not access configure I went through the gerator again and copied some parts into the config.
Ok, I commented them out, restarted apache and now I am back to the "Forbidden" stat again.
[18:30]
gac410Forbidden??? [18:31]
jmk0no can has. [18:31]
martin_101Yes.
That was the reason why I changed the apache-config with some pieces of 1.1
[18:31]
gac410if bin/view works, then bin/configure should as well, they are exactly the same [18:32]
martin_101bin/view does not work any more [18:33]
gac410Ah.. then maybe commented out too much.
Unlike Foswiki 1.1, there is nothing special about configure in Foswiki 1.2. Treat all the bin scripts identically
Just a <Directory "/var/www/foswiki/bin"> Allow, Options +ExecCGI -FollowSymLinks SetHandler cgi-script etc.
Or whatever your path to the bin directory is
[18:33]
martin_101<Directory "/srv/foswiki/bin"> AllowOverride None Order Allow,Deny Allow from all Deny from env=blockAccess Options +ExecCGI -FollowSymLinks SetHandler cgi-script # Password file for Foswiki users AuthUserFile /srv/foswiki/data/.htpasswd AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith). Cancel to register if you do not have one.'
Sorry
<Directory "/srv/foswiki/bin">
AllowOverride None
Order Allow,Deny
Allow from all
Deny from env=blockAccess
Options +ExecCGI -FollowSymLinks
[18:40]
gac410That all looks completely normal [18:41]
martin_101SetHandler cgi-script
AuthUserFile /srv/foswiki/data/.htpasswd
AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith). Cancel to register if you do not have one.'
AuthType Basic
ErrorDocument 401 /System/UserRegistration
</Directory>
[18:41]
gac410okay. nothing unusual there. When you try tld/bin/view you get forbidden? [18:43]
martin_101Yes. [18:43]
gac410Can you look at your apach2 error log? Does it say aything useful?
tail /var/log/apache2/error_log or something like that
[18:43]
martin_101AH01630: client denied by server configuration: /srv/foswiki/bin/view [18:44]
gac410Did you symlink anyting in your install?
Might need +FollowSymLinks
[18:44]
martin_101Where should I put +FollowSymlinks? I do not remember having symlinked something but I'd like to try [18:45]
gac410change the line: Options +ExecCGI -FollowSymLinks
to Options +ExecCGI +FollowSymLinks
[18:46]
martin_101apache2ctl restart - still the same.
I am using https.
[18:47]
gac410can you pastebin your whole apache config http://pastebin.com Set expiration short ( 10 minutes) and "unlisted" options
https vs http should not make a difference.
and post back here the URL (or send me a pm with it)
dumb question, but /srv/foswiki/bin/view is really the path to the file.
And the URL is just bin/view, don't put in the /srv/foswiki
[18:48]
martin_101http://pastebin.com/bRMkMLnW
I changed the actual domain in the file.
[18:54]
gac410that's fine. I was going to suggest that ;0
hm. I'm not seeing anything that looks wrong. Apache config issues can be so frustrating.
[18:58]
martin_101the path is correct and leads to a file starting with
#! /usr/bin/env perl
[18:59]
GuilainCmartin_101, what say the log [18:59]
martin_101the apache error log? [18:59]
GuilainCnormally you have the module which give the error [18:59]
gac410try commenting out or deleteing all that BrowserMatchNoCase stuff. That will cause a "Denied byh server config [18:59]
GuilainCjuste after the timestamp
yes apache error log
[18:59]
martin_101When I relaod the site it says:
AH01630: client denied by server configuration: /srv/foswiki/bin/view
[19:00]
GuilainCfor example i've this : [Thu Jun 04 10:21:40.419315 2015] [cgi:error] [pid 21854] [cli
cgi:error is the most interesting
no AH...
(is interesting too but...)
[19:00]
martin_101It is the only error showing up in the error.log when opening the URL in the browser. [19:02]
gac410AH01630: client denied by server configuration is common and really annoying [19:02]
GuilainCyes gac410, that's why to get more details by any way [19:02]
gac410martin_101: are you sure you are not using Apache 2.4 That seems like a 2.4 issue [19:03]
martin_101oops, you are right: [19:04]
GuilainCyou have an apache 2.4 martin_101 [19:04]
martin_101apache2ctl -v Server version: Apache/2.4.10 (Debian) [19:04]
GuilainCand you have done an 2.2 config file [19:04]
martin_101ouch [19:04]
gac410<RequireAll>
Require all granted
Require not env blockAccess
</RequireAll>
is the 2.4 syntax, not the Allow from all, Order Deny, allow, ... etc.
[19:05]
GuilainCtake your config url and change to 2.4 [19:06]
gac410It's really annoying that Apache changed such a fundamental syntax :P [19:06]
martin_101*blush* [19:06]
gac410In theory mod_access_compat makes it backwards compatible, but I've not had great luck [19:06]
martin_101Hoooray!!!
Guilain and gac, thank you!
[19:12]
gac410Glad to help.
Is this a new wiki, or will you be migrating data from Foswiki 1.1.x
[19:13]
martin_101a new [19:14]
gac410okay great. Then the defaults - PlainFileStore and utf-8 encoding are good to go.
Beta 2 will make some major internal changes, but of no real consequence for sites already on utf-8 encoding.
[19:14]
martin_101thanks for the tipp [19:27]
............. (idle for 1h2mn)
jmk0hey gac410, you there? I'm looking for an opinion on something [20:29]
gac410sure what's up [20:30]
jmk0I'm rethinking my data flow diagrams and I'm looking at the macro syntax. Current implementation has references to data types in crazy syntax like type:subtype!transport/flags and I'd like to clean that up
but I have to be able to have a list of multiple of such because macros can't have multiple settings for a parameter any other way
i.e. %MERCRO{fred="a" fred="b"}% won't work but %MERCRO{fred="a b"}% can
so, I'm fishing for ideas on how to make a clean syntax that manages to continue to support that mess
i'm defining associations, not providing a format, fwiw
also bear in mind I need to be able to define translations from one data type to another, which is currently type1>type2 in a space-separated list... *whew*
[20:30]
gac410I was vaguely thinking macros could have duplicate parameters, but now that I think on it, I'm confusing urlparams which can have dupliccates [20:35]
jmk0yeah, while I could probably hack support for that since i'm using commonTagsHandler instead of registered macros, since registered macros can't support that, it didn't seem like a good idea
i'm trying to think of existing plugins that might have something similar, and coming up with nothing
something like: inputs="id:type1#subid:blarf id:type2#xport:meh" might be more readable, not sure if it's any less ugly :)
i guess it's less ugly by nature of being more readable, but w/e
maybe & instead of # to make it more url-like
reluctant to use % or = because embedded symbols tend to result in headaches
thoughts? gac410? GuilainC? ne1? :D
[20:35]
gac410Spreadsheet macros use space delim for lists of multiple elements iirc [20:42]
jmk0comma separated i'm pretty sure. Used that recently with the dependency fiddling I was doing earlier in the week
though you can convert space-separated text strings into lists
[20:43]
gac410yeah. right. default list sep is comma space
it also depends on who is entering the data / or viewing the raw wikitext. how understandable does your format have to be?
Hm. MAKETEXT macro supports multiple arguments.
Space delim I think
no, comma separated.
[20:45]
GuilainCabsolutely no idea !
but many thanks to have think about me
[20:48]
jmk0:) lemme look at maketext [20:50]
GuilainChttp://foswiki.org/Extensions/FlotChartPlugin used coma separated [20:51]
jmk0welp, guess I should be using a comma for a delimiter at least, to be consistent :)
it's what all the cool kids are using ;-)
another option for specifying the references might be to just use a character separator and assume a specific order, so these would all be valid: id1#subid#xport#flags id2###flags id3 id4## id5##xport
etc
certainly easier to parse in perl :)
it seems like i've seen something very much like that, but i can't recall where
oh, i bet it was in a formatted search
yeah, I used ## as an item separator for a %SEARCH, subsequently to be processed by FORMATLIST
[20:52]
gac410yeah as long as character is fixed, Split on /, / and then split each on /#/ [21:02]
jmk0is there anything in %CALC that might influence the design choice? [21:02]
gac410not that I can think of off hand. %CALCULATE is the 1.2 "registered tag" version of %CALC but same syntax prevails
Already picked comma as the delim which would be consistent. Then # ... : might be reasonable too, unless your data has embedded colons.
[21:03]
jmk0shouldn't have colons. If it's not a valid code variable identifier, it's not accepted :)
though I suppose there might be a software language I'm not familiar with where : is valid in variable names
[21:05]
gac410no idea. well if there is any chance of referencing perl, then it's a class delim Foswiki::Attr for ex. [21:06]
jmk0same with C++, but that level of scope isn't something I'd intended to deal with. [21:07]
gac410well as long as it's escapable ~ might be another readable option [21:08]
jmk0... though I can see it being useful
yeah
# and ~ are two that I've used as separators in formatted searches
[21:08]
gac410| is our table delim. : is used in file delim, eg .htpasswd, , typically for lists. [21:09]
: is also a delimiter for InterwikiPlugin Site:arg [21:14]
jmk0ah yeah
also to complicate things, I need to be able to support wiki specs using .
web that is
e.g. SomeWeb.DataType#subid#AnotherWeb.TransportID etc
[21:14]
gac410And : in http://foswiki.org/System/FoswikirefsPlugin it's githubaccount:respository:hashref [21:15]
jmk0so : is probably not ideal :) [21:16]
gac410# works unless you want to use AnotherWeb.TransportID#Anchor [21:16]
jmk0or are you saying it's established as a standard? I was thinking it might get misinterpreted e.g. by interwiki
no, anchoring will be automated
[21:16]
gac410I don't think interwiki will apply internal to macro arguments.
no I was just trying to think of examples where a param had internal delimiters.
[21:17]
jmk0ok, but i might want to support interwiki web links? maybe. that's iffy.
i'm starting to lean towards X#Y#Z#Q, A#B#C etc. for the simplicity
.... no that won't work either
damn. if I need to specify a sub-id for the transport then what? e.g. data-id data-id's-sub-id transport-id transport-id's-sub-id
dang.
unless I make it something like data[#subid[#flags[#transport[#xportsubid]]]] i.e. make the order so that it can be specified if desired or skipped
[21:17]
gac410well if you are doing your own parsing, you could do %MACRO{" (data= subid= flags= transport= ), (... "}% As long as the whole shebang is in quotes, it's part of _default parameteer. [21:25]
jmk0would it need to be in _DEFAULT ? because I don't think that would work quite right given that the macro currently has like half a dozen parameters, all but one optional
or at least it'd be kinda messy
I guess the order doesn't really matter, in retrospect. As long as the item index is consistent and can be left blank
but yeah (...),(...),... is certainly more readable
can Foswiki::Func::extractParameters be counted on to properly parse something like %MERCRO{inputs="something=somethingelse"}% ?
probably more complicated to parse the (asdf=something),(zxcv=somethingelse) though
[21:26]
gac410yeah. just pondering ideas. [21:35]
jmk0and i appreciate that :) [21:36]

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