#foswiki 2017-04-03,Mon

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

WhoWhatWhen
AndreR2Can anybody help me with this error ?
Malformed UTF-8 character (fatal) at /usr/share/perl/5.22/Carp.pm line 323.: /var/lib/foswiki/bin/view
[06:07]
***ChanServ sets mode: +o MichaelDaum [06:14]
ChanServ sets mode: +o cdot [06:25]
....... (idle for 32mn)
AndreR2when I change the User Mapping Manager from LDAP to Topic User it works... [06:57]
............. (idle for 1h3mn)
@MichaelDaum i updated the LDAPContrib. Now i miss the config tab under extensions in configure... Have you any clue ? [08:00]
MichaelDaumHi AndreR2. It is under Security & Authentication [08:05]
AndreR2... Thanks [08:05]
@MichaelDaum. May you have any idea for me for this Problem: If i change the user mapping manager from Topic to LDAP i can't access Foswiki anymore. I get error: Malformed UTF-8 character (fatal) [08:17]
MichaelDaumwhat version of foswiki are you using?
couple of more questiosn coming ...
AndreR2, ping
[08:17]
AndreR22.1.3 [08:20]
MichaelDaumwhat version of perl? [08:20]
FoswikiBotwhat version of perl are you on [08:20]
AndreR25.2.2
5.22
[08:21]
FoswikiBot5.22 is current. 5.20 is supported. 5.18 and older are "out of maintenance" iirc. We test Foswiki on 5.8.8 and beyond, but performance had a big boost on 5.20 / 5.22 [08:22]
MichaelDaumokay good. [08:23]
AndreR2Error.log of apache says Malformed UTF-8 character (fatal) at /usr/share/perl/5.22/Carp.pm line 323 [08:23]
MichaelDaumwhich operating system is your server running? [08:23]
AndreR2Ubuntu 16.04.2 LTS [08:23]
MichaelDaum:) [08:23]
AndreR24.4.0-71-generic [08:23]
MichaelDaummay I assume you are using apache? [08:23]
AndreR2Yes [08:23]
MichaelDaumor any other http server?
have you managed to configure fcgi?
[08:23]
AndreR2Server version: Apache/2.4.18 (Ubuntu) [08:24]
MichaelDaumalright
and are you using FastCGI already?
or ModPerl or plain old CGI
[08:24]
AndreR2i don't think so. [08:26]
MichaelDaumcan you reproduce the error when you go to the <foswiki>/bin directory and say ./view >/dev/null
as user www-data
[08:26]
AndreR2https://pastebin.com/QcTE28nD
Output
sorry... give me a sec
forgot to change the option
[08:30]
MichaelDauma couple of these plugins are outdated as the Unescaped left brace errors have already been fixed some time ago
I think you are using an old version of foswiki here. maybe you've got two foswikies installed and this is still pointing to the old one?
[08:31]
AndreR2...
Yes you're rigth
[08:34]
MichaelDaum:D [08:35]
AndreR2[Mon Apr 3 10:35:15 2017] view: Use of uninitialized value in string eq at /var/lib/foswiki/lib/Foswiki/Users/TopicUserMapping.pm line 574, <DATA> line 755. [08:35]
MichaelDaumI'd recommend to move this install out of the way and start with a fresh install step by step [08:36]
AndreR2ok...
Completely new Linux install or simply Foswiki
[08:37]
MichaelDaumjust foswiki [08:39]
AndreR2ouch.
the data/web folder can i copy ?
[08:40]
MichaelDaumyes please
everything except System
but first things first: install Foswiki-2.1.3, then LdapContrib and get it working
[08:41]
AndreR2Ok. Than i will install a new instance of foswiki. Configure the LdapContrib as i need [08:42]
MichaelDaummoving in already existing content is the very last thing to do
data/MyWeb, pub/MyWeb etc
[08:42]
AndreR2yeah... Have to install natskin etc also. takes time
Runtime engine FastCGI?
I'm in config generator right now
[08:44]
...... (idle for 25mn)
MichaelDaumAndreR2, yes, always use FastCGI [09:11]
colasahh, gained 42G by deleting *,v RCS files with only one revision :-) [09:11]
MichaelDaumcolas, archived 5 dvds? [09:12]
colasmy /pub was 95G, now down to 53G
I am in the process of - at least - upgrading our 1.1.9 Foswiki to 2.1.3, and writing a script to perform the upgrade. Was running out of free space...
s/at least/at last/
[09:13]
.......... (idle for 49mn)
***ChanServ sets mode: +o cdot [10:03]
AndreR2@MichaelDaum with normal CGI i get the same error. New install ...
[Mon Apr 03 12:07:18.579629 2017] [cgi:error] [pid 11903] [client 192.168.254.131:50229] AH01215: [Mon Apr 3 12:07:18 2017] view: Use of uninitialized value in string eq at /var/www/foswiki/lib/Foswiki/Users/TopicUserMapping.pm line 574.: /var/www/foswiki/bin/view, referer: http://foswiki2srv/foswiki3
[10:08]
........ (idle for 39mn)
MichaelDaumAndreR2, did you switch to LdapUserMapping?
if so then please do enable {AllowLoginNames}
[10:47]
AndreR2{Register}{AllowLoginName} is enabled [10:50]
MichaelDaumthen reload apache
then go to <foswiki>/bin and do ./view refreshldap=on >/dev/null
enable {Ldap}{Debug} before
[10:51]
AndreR2as root?= [10:52]
MichaelDaumnever
any cmdline interaction with foswiki _must_ be done as user www-data
[10:53]
AndreR2- LdapContrib - cacheAge=4290, maxCacheAge=86400, lastUpdate=1491212470, refresh=1
- LdapContrib - precaching is ON.
- LdapContrib - called refreshUsersCache(ou=Benutzer,dc=Le1,dc=ADS-TEC,dc=de)
- LdapContrib - reading users from cache with page size=500
- LdapContrib - called search(filter=objectClass=posixAccount, base=ou=Benutzer,dc=Le1,dc=ADS-TEC,dc=de, scope=sub, sizelimit=0, attrs=uid,mail,gidNumber,mail)
- LdapContrib - got 0 keys in cache
- LdapContrib - called search(filter=objectClass=posixGroup, base=ou=Firmenstruktur,ou=Gruppen,ou=Benutzer,dc=le1,dc=ads-tec,dc=de, scope=sub, sizelimit=0, attrs=cn,memberUid,memberUid,gidNumber)
[10:54]
MichaelDaumthere you are
your ldap config isn't matching anything.
go to <foswiki>/tools, copy ldaptest.conf.example to ldaptest.conf and edit to your needs. then test it using ./ldaptest (in the tools dir)
once you've figured out the params, move them over to your LocalSite.cfg
[10:54]
AndreR2öhmm... After i run this script my whole shell is messed up [11:07]
MichaelDaumtype reset
then do ./ldaptest | strings ... to filter out binary results such as jpegPhoto
[11:09]
AndreR2Ok and what output exactly should i get. For me it shows informations about the OUs
But with the same psrams
[11:13]
...... (idle for 27mn)
- LdapContrib - no loginName for CN=XXXX,OU=XXXX,OU=XXXX,DC=le1,DC=ads-tec,DC=de ... skipping [11:44]
.... (idle for 16mn)
***ChanServ sets mode: +o gac410 [12:00]
MichaelDaumrelease meeting? [12:02]
gac4101300Z isnt' that an hour from now?
Daylight savings time moves our local times ahead but UTC remains the same?
[12:02]
MichaelDaumokay whatever. I am here. [12:04]
gac410okay thanks MichaelDaum [12:04]
MichaelDaummy local time is 1400 ... which is 1300Z afaik [12:05]
gac410hm ... let me check [12:05]
MichaelDaumno problem really [12:06]
gac410Current UTC is: 12:05:41 UTCMonday, April 3, 2017
According to https://www.timeanddate.com/worldclock/timezone/utc
[12:06]
MichaelDaumah we are +2 atm inkl daylight savings [12:07]
gac410y Daylight savings messes everythng up. :) [12:07]
MichaelDaumthe calendar entry was using berlin times thus moved it back in time, fixed it to london tz ... which is +1
interestingly google calendar doesnt list utc to choose from ... wtf
[12:09]
gac410Is the general assembly in the same state? [12:09]
MichaelDaumaccording to my calendar ga is at 1300
which is 1100 utc ... so fine
this friday
[12:10]
gac410yes
we had talked about rescheduling to get the requisite 6 week email notice. But the announcement went out anyway so I'll be there
[12:11]
MichaelDaumwe've got a few people that actually should change their status to supporting member [12:18]
MichaelDaum updated https://foswiki.org/Community/CurrentFoswikiMembers adding people that paid their membership fee for 2017
colas, any chance you'd like to stay a foswiki member?
Paul is member of the board yet still hasn't paid since 2014
seen pharvey
[12:24]
FoswikiBotpharvey was last seen in #foswiki 441 days ago saying "boo". [12:26]
MichaelDaumah no he isnt [12:29]
...... (idle for 27mn)
gac4105 minute warning ... Release Meeting starting soon in #foswiki-release Come one come all ... [12:56]
cdot1: are you around for the release meeting? [13:01]
zak256I have a list of Wiki pages, e.g. "MyWeb.MyPage1, MyWeb.MyPage2". Is there an easy way to display the (identical) formfields of these pages in a table as if those two pages are the results of a SEARCH?
I guess some SpreadSheet macro? I am searching...
[13:12]
AndreR2Where are the Users stored ? In a web ? [13:17]
gac410AndreR2: It depends on how foswiki is configured. It can be in a web & .htpasswd file, or in LDAP [13:18]
AndreR2Cause my LDAP is messed up... User are shown as: %LDAP{"sAMAccountName=XXX" format="$displayName"}% [13:24]
gac410Sounds like the Ldap plugin is broken. with Macro not rendering. Check System.InstalledPlugins for errors [13:25]
MichaelDaumseems LdapNgPlugin isnt installed/enabled [13:27]
***ChanServ sets mode: +o Lynnwood [13:27]
AndreR2It was enabled... disable and enable solved it thanks...
But still get Malformed UTF-8 character for one Web...
[13:29]
gac410Did you migrate that web from a 1.x Foswiki or TWiki system? [13:30]
AndreR2yes. But it worked a time
And for some Users the web works. For some not
[13:31]
gac410That's really strange [13:32]
AndreR2if i change User Mapping Manager From Ldap to TopicUser it works [13:32]
gac410Ah... okay ... that's helpful. I wonder if there are some userid's with _XX encoded characters that are bad utf8 when processed. [13:33]
AndreR2How can i check ? [13:35]
gac410Are there any hints as to which topic has the issue? Unfortuately when it fails, not much useful debug info is generated. So its hard to figure out.
there is a unix tool ... isutf8 which will report if a file contains invalid utf8 characters. So one possibility is to test eaach topic file.
[13:37]
AndreR2No clue wich topic. It fails direct on the WebHome [13:39]
gac410Is it a big web with lots of topics, or is it a managable number to dig into?
We had that happen once on foswiki.org ... but as it just appeared one day, we were able to find it by working backwards from list of what topics changed. Bug was in how user registration approval process handled utf8 characters
[13:40]
AndreR2No only 30-40 Topics [13:43]
gac410Because it only happens with Ldap enabled. I'd guess it's something in how the META:TOPICINFO is handled.
Try "grep ^%META:TOPICINFO *" in that web. That will show you all the TOPICINFO. Do any author="...." fields have encoded data _AB (underscore followed by two alphas which could be interpreded has hex A-F
like a user "Joe Abbot" would be encoded Joe_Abbot the _Ab is hex that is illegal utf8
[13:44]
AndreR2Like this: LE1_5cAdminJmKn [13:51]
gac410Yeah... that might do it. Try renaming that topic.txt file to topic.txt.save so foswiki cannot find it. See if that fixes the issue [13:53]
AndreR2That isn't only one and mostly WEb***.txt Topics [13:55]
jast_5c should be fine
anything below _20 or above roughly _7f you might have a problem
[13:58]
gac410I'm not really all that familiar with the Ldap mapper. Unfortunately with Malformed UTF-8, it can be really hard to debug.
You could try creating a directory for a web named "Bad" and then copy just the Web* topics from the failing web to the newly named Bad web. If it works, then copy more topics one at a time until it fails. With only 30-40 topics that can be a reasonable approach.
[14:00]
AndreR2I will do this tomorrow. have a meeting right now! Thank you very much [14:03]
gac410When this happens to on any topic in a web, vs one in particular, it might be something in the WebLeftBar. So try viewing a failing topic with skin=print
If skin=print works, then I'd look close at the contents of the LeftBar
[14:03]
...... (idle for 26mn)
***ChanServ sets mode: +o OliverKrueger [14:30]
.... (idle for 18mn)
ChanServ sets mode: +o cdot [14:48]
....... (idle for 33mn)
zak256Oh man.... I am still trying to figure this out. Is this really so hard to list the formfields of several wiki pages in a table? [15:21]
MichaelDaumzak256, no [15:25]
zak256So what am I missing? [15:26]
MichaelDaumJQDataTablesPlugin
%DATATABLE{form="MyFooBarForm"}%
[15:26]
zak256Yes... that's unfortunately not installed in our productive environment. [15:27]
MichaelDaumso ...
go ahead and dude
[15:27]
***ChanServ sets mode: +o cdot [15:29]
zak256The wiki pages to be shown in the table are stored in the formfield of another wiki page. So I just tried to insert this into the topic-parameter of a SEARCH:
%CALC{$LISTMAP($SUBSTRING($item, 6, 99), %FORMFIELD{"Pages" topic="Test.ListPage"}%"}%)}%
[15:29]
cdotsorry gac410, juggling too many pies [15:33]
........... (idle for 50mn)
VickiBrownHi all. I have filed a support request https://foswiki.org/Support/Question1867 asking for any assistance anyone is willing to give me for how to go about extending a (currently TWiki) Plugin. I would like this plugin to be available under Foswiki, but (for me) it needs support for a configuration variable before I'd be willing to use it in production.
I'm stumped as to how to begin adding that support. One or more examples and/or pointers would be very helpful. I am (or at least used to be) quite competent with Perl, but procedural, not so much OO.
SvenDowideit OliverKrueger Lynnwood MichaelDaum - please let me know if you can provide any assistance.
[16:23]
MichaelDaumHi VickiBrown
I am not sure it needs a plugin
as we have the NEWLINKFORMAT preference
imagine something like this in your Web/SitePreferences: NEWLINKFORMAT = <a href="%SCRIPTURLPATH{"edit"}%/$web/$topic?topicparent=%BASEWEB%.%BASETOPIC%&templatetopic=%NEWLINKTEMPLATE{default=""}%" rel="nofollow" title="%MAKETEXT{"Create this topic"}%" class="foswikiNewLink">$text</a>
then you could set NEWLINKTEMPLATE as needed and tada
not tested just thinking loud
[16:29]
.... (idle for 15mn)
gac410In Foswiki 2.2,. the NEWLINKFORMAT becomes even more flexible, That might not help you VickiBrown but something to look forward to. [16:46]
gac410 says ... forget that last response from me. Head was in a different universe. I was thinking about the ATTACHMENTLINK format, not the NEWLINKFORMAT. Doh... :D [16:52]
But as far as accessing a preference, The block of code foreach( split /%CHILDTOPICTEMPLATE ... if .... { } would be changed. Just use Foswiki::Func::getPreferencesValue( 'USECHILDTOPICTEMPLATE' ) ... That would return the preference to then test if it is set and alter the html.
[17:02]
FoswikiBothttps://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Func [17:02]
gac410still +1 to Michael's suggestion. I think that would work fine, no plugins needed. The post rendering handler in the ChildTopicTemplatePlugin is not really ideal [17:05]
.......... (idle for 45mn)
cdotgac410: is the Empire still using subversion?
cdot wants to look at the history of RcsLite, but can't seem to find their repositories
[17:50]
....................... (idle for 1h54mn)
gac410cdot, yes still using subversion. I've got a local checkout of it. [19:44]
cdotI think I worked it out. A very old, and very obscure, bug in RcsLite [19:45]
gac410Url http://svn.twiki.org/svn/twiki/trunk [19:45]
cdoty, found it thanks. It wasn't useful, they haven't even fixed the other more obvious bugs we already found. [19:45]
gac410Looking at their checkin history, there is very little going on other than occasional extension work.
from what I can tell ... I'm pretty rusty with svn, there have been 8 commits since mid january
[19:46]
cdotsomething seems to be broken in our unit tests - it doesn't seem to evaluate fixture_groups when you run tests individually
the RcsHandlerTests are onlybeing run on RcsLite, not on RcsWrap
[19:50]
gac410Something specific to RCS - The logger tests are running fixture groups just fine. [19:53]
cdoty, the rest of the RCS tests run on wrap, it's just the RcsHandlerTests [19:53]
gac410Strange [19:53]
cdotvery [19:53]
gac410Typo in the fixture groups subs. It has an early return statement
Line 69
[19:55]
cdoty, found it
probably me, when testing :-(
[19:56]
gac410Yup. git blame does not dispute your determination :D
That return has been in there since 2013 ... oops.
[19:56]
GithubBot[distro] gac410 pushed 2 new commits to master: https://git.io/vSB4T
distro/master 988d93c George Clark: Item14367: META topic= override not working.
distro/master 7d482ac George Clark: Item14360: Add PARENTTOPIC macro
[20:08]
***GithubBot has left [20:08]
FoswikiBothttps://foswiki.org/Tasks/Item14367 [ Item14367: META macro =topic= parameter doesn't work unless both the web and topic names are different. ]
https://foswiki.org/Tasks/Item14360 [ Item14360: Add VarPARENTTOPIC ]
[20:08]
......... (idle for 44mn)
***cdot has left [20:52]

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