#foswiki 2013-12-03,Tue

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

WhoWhatWhen
***ChanServ sets mode: +o pharvey [02:36]
...... (idle for 28mn)
ChanServ sets mode: +o SvenDowideit [03:04]
....... (idle for 33mn)
ChanServ sets mode: +o pharvey [03:37]
.................................................. (idle for 4h5mn)
ChanServ sets mode: +o CDot [07:42]
....................................... (idle for 3h13mn)
ChanServ sets mode: +o SvenDowideit [10:55]
ChanServ sets mode: +o Lynnwood [11:01]
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/HIenDA
foswiki/master f783915 FlorianSchlichting: Item12671: revert "make sure rootTmpDir does not contain spaces", ensure this for project name more generally...
[11:01]
***GithubBot has left [11:01]
FoswikiBothttp://foswiki.org/Tasks/Item12671 [ Item12671: Update nightly build infrastructure ] [11:01]
................................... (idle for 2h51mn)
***ChanServ sets mode: +o gac410 [13:52]
scibiohi all
I'm trying to understand the syntax from $Foswiki::cfg{Ldap}{RewriteWikiNames}
it seems that some special characters dont work like they do in normal perl regex
e.g.: '^(ext)(.*)@?.*$' => '$1_$2' --> i had to add the ? after the @ and the _ between $1 and $2 ... can anyone tell my why? :)
PS: from the LdapContrib module
the reason: we have lots of different values for a ldap-attribute :-( and i have to map them into foswiki ... but it is hard to guess a unknown syntax for a regex ;)
[14:06]
gac410What happens if the ? and _ are not there?
It should be a normal perl regex from what I can see. (I don't use LDAP though)
LdapContrib.pm around line 1240 - uses it as a standard perl regex. Nothing unusual.
[14:14]
scibioif i dont use the ?: nothing happens, the name is not splitted and thus not mapped (ok, maybe there is no @ at all and therefore the ? is necessary or the @ is not needed)
but if there is no _ between $1 and $2, i dont get the correct wikiNames
[14:18]
gac410Right, you need to know what's exactly in the initial field. Do $1 and $2 get substituted? If you enable debug, it should log the rewrite that it does
writeDebug("rewriting '$oldWikiName' to '$wikiName' using rule $pattern");
[14:19]
scibiowhere to put this last line? [14:26]
...... (idle for 26mn)
gac410scibio: no.... you don't need to put that anywhere. If Ldap Debug is enabled, it should write that information to your debug log [14:52]
scibio$Foswiki::cfg{Ldap}{Debug} = 1; [14:54]
gac410I think so.... I didn't follow the code too deeply [14:55]
scibioif i insert this line to wikitopic it prints that line, but can't resolve the variables
so i really dont know where to insert/run this writeDebug method :(
[14:57]
gac410No... don't put it anywhere! I was just pointing out what LdapContrib.pm already does. Sorry for the confusion
If you have LDAP Debug enabled in the configuration, then it should log the results of each translation automatically.
[14:58]
scibio:) [14:59]
gac410That may give you a better idea of what is returned in the original wikiname and what pattern is being matched. It really is processed as a regular perl regex
Except the right side isn't really executed in the regex, but is substituted later as tokens. I can't see any reason the _ would be required.
[15:00]
scibiojust searching for my debug-log ... cant find it :D [15:02]
gac410Check working/logs/ directory, or the data/ directory
Depending on the logger and configuration it might be either place
Oops... no scratch that.
LdapContrib writes to STDERR, so it should be in your apache log.
[15:03]
scibiothere is no rewriting in my apache error log ... checked that already :( [15:08]
gac410Are you seeing other ldap debug messages now that you have enable LdapDebug? [15:08]
scibio[Tue Dec 03 15:53:04 2013] [error] [client 10.150.0.24] - LdapContrib - cacheAge=2012, maxCacheAge=86400, lastUpdate=1386080372, refresh=0, referer: https://test.domain.com/foswiki/Users/ExtLang [15:10]
gac410Yes that is a debug message. So you should be seeing others I'd expect.
Hard to say for sure since I've never used Ldap
[15:11]
...... (idle for 25mn)
scibiook, i think i got it now: the _ or a similar character is needed so that ldapcontrib gets "two" words for normalization. During normalization the special character is eliminated. If there is noch special character between the two $1, $2, ldapcontrib just uses the string as one word and capitalizes the first character ... [15:36]
gac410Ah.... that makes sense, yes. [15:37]
scibioit is not necessary if you have two words with uppercase letters at the beginning
in my case i had to split one word with all lowercase :)
so, thanks for helping me !
[15:38]
gac410glad to help. [15:39]
scibiobb [15:45]
LynnwoodDon't know if anyone around is knowledgable around SolrPlugin. I'm trying to debug reason why some topics are not getting indexed (don't show up in search results). Looking at the solr log, I find errors that appear related to these topics. They all say something like this: "ERROR: [doc=ReleaseVersion1Test1.CorePackageV1.VideoProfilesPropertyType] unknown field 'webcat'"
The thing is that I can not find any evidence of a field called "webcat".
there's no such form field or other info related to the topics that I can see.
[15:59]
ok, here's some new info. I do find "webcat" within code for ClassificationPlugin.
perhaps i need to look into whether ClassificationPlugin requires some tweaking of SolrPlugin indexing
[16:06]
.......................... (idle for 2h8mn)
***ChanServ sets mode: +o gac410 [18:15]
.... (idle for 16mn)
CDotgac410: about? [18:31]
n.m. I tasked it [18:36]

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