#foswiki 2016-09-09,Fri

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

WhoWhatWhen
gac410No. Not by default.
Allowing embedded perl would be quite a security hole I suspect.
I think that there is a plugin that allows some limited perl code.
[00:01]
foswiki_irc4but php pages allow php codes
the codes are under the control of the developers, the same as the CGI scripts.
[00:02]
gac410A wiki frequently lets *anyone* edit ... If you could embed perl code, on a wiki page it would be a huge security hole. [00:03]
foswiki_irc4agree in that case [00:04]
Lynnwoodgac410 - I just had a chance to test RenderLoggedInButUnknownUsers and it worked!
You saved me there. thanks!
[00:04]
foswiki_irc4but can you prevent editing by any users except privileged users? [00:05]
gac410foswiki_irc4: There is an extension - https://foswiki.org/Extensions/PerlPlugin - which allows some sandboxed perl code on pages. I've never tried it.
foswiki_irc4: sure you can lock out users .. but that somewhat defeats the purpose of a wiki.
The way to use custom perl code is to create a plugin that registers a %MACRO% which can then expand and call the user's code.
[00:05]
foswiki_irc4okay. thanks. [00:06]
gac410Lynnwood: great. glad to here. I'm not sure when you would normally enable that. except for maybe an LDAP auth/mapped site where you frequently have unregistered users.
And those sites usually don't do registration.
[00:07]
Lynnwoodright [00:07]
foswiki_irc4gac410 - sometimes I have a need to check if a user is logged in before deciding what page to send. can you tell me in which foswiki script I can implement the check? [00:19]
gac410A specific user, or any user? [00:20]
foswiki_irc4any user [00:20]
gac410so there are probably several ways to do this. Probably depends on what your overall application is trying to do. You could %INCLUDE a different topic based upon the current user being WikiGuest or not. [00:22]
foswiki_irc4for example, when a user is accessing the page http://server/foswiki/bin/view/somename/WebHome, i like to check if the user is logged in
in this case, which script I should modify to implement the check?
or module or function
[00:22]
gac410You almost never have to modify scripts or modules. Decisions like this get made directly in the page.
I'm trying to find a simple example.
[00:24]
foswiki_irc4yes if you can give me a simple example [00:25]
gac410Take a look at Foswiki:System.IfStatements that's the general documentation [00:26]
FoswikiBothttps://foswiki.org/System.IfStatements [ IfStatements ] [00:26]
foswiki_irc4because i can't embed perl codes in the page, i think the decision must be made in a script or module.
i'll check the document. thanks.
[00:26]
gac410%INCLUDE{"HiddenInformation" warn="off"}% and deny HiddenInformation from guest. It will silently not be there.
Or more complex. %IF{"$WIKINAME='WikiGuest' then="$percntINCLUDE{$quotHiddenTopic$quot}$percnt" else="$percntINCLUDE{$quotPublicInformation$quot}$percnt"}%
Foswiki has a very powerful macro language that you can use on pages, without dipping into perl.
[00:27]
foswiki_irc4that's probably what i'm looking for.
can the macros be used in pages?
[00:30]
gac410yes. that's the whole point ;) [00:31]
foswiki_irc4okay. thanks [00:32]
gac410And macros are much safer than exposing perl, where users could open read/write files under authority of the web server user. [00:32]
foswiki_irc4yes. i agree. [00:33]
gac410Macros use %xxxx{arg arg arg}% syntax. And if the basic macros can't do it, you can also use the SpreadSheetPlugin %CALCULATE{} macro to do more complex stuff.
And then there are plugins that register new macros for doing more complex stuff.
[00:34]
foswiki_irc4i'll look into macros, but here is a quick question. are there macros that let you check/retrieve a cookie value or values of form fields? [00:37]
gac410Cookies - I'm not sure. Foswiki uses it's own cookies and has the concept of session variables. FormFields - foswiki has a Data Forms capability. It's what makes Foswiki a "Structured" wiki. Topics can have attached forms of structured data. [00:39]
foswiki_irc4i guess you can get the form data with URLPARAM [00:39]
gac410See Foswiki:System.DataForms [00:39]
FoswikiBothttps://foswiki.org/System.DataForms [ DataForms ] [00:39]
gac410Foswiki:Tasks is a good example of a data forms application. [00:40]
FoswikiBothttps://foswiki.org/Tasks [ WebHome ] [00:40]
foswiki_irc4so you can't implement something that depends on a cookie state?
for example to check a cookie value in a %IF macro
[00:41]
gac410I'm not sure. You're getting into areas I'm not all that familiar with. Our documentation does mention that you can reference session variables in IfStatements
But I was just trying to figure out where they are set
[00:42]
foswiki_irc4okay. let me read the document. [00:43]
gac410See Foswiki:System/VarSESSIONVARIABLE [00:44]
FoswikiBothttps://foswiki.org/System/VarSESSIONVARIABLE [ VarSESSIONVARIABLE ] [00:44]
gac410You can set/get variables that are stored in the cookie [00:44]
foswiki_irc4okay. thanks. [00:44]
....... (idle for 30mn)
GithubBot[distro] gac410 created Item14180 (+1 new commit): https://git.io/vi4IX
distro/Item14180 2c7bfaa George Clark: Item14180: Refactor bootstrap code into separate module
[01:14]
***GithubBot has left [01:14]
FoswikiBothttps://foswiki.org/Tasks/Item14180 [ Item14180: Bootstrap enhancements and refactoring. ] [01:14]
......... (idle for 41mn)
GithubBot[distro] gac410 pushed 1 new commit to Item14180: https://git.io/vi4tD
distro/Item14180 4fe8fef George Clark: Item14181: Detect Proxy host forwarding in bootstrap.
[01:55]
***GithubBot has left [01:55]
FoswikiBothttps://foswiki.org/Tasks/Item14180 [ Item14180: Bootstrap enhancements and refactoring. ] [01:55]
gac410vrurg: That last commit would probably fix the Proxy -> plackup issue in bootstrap. I think we still have a ways to go - detecting ssl accelerators for ex.
My plan is to merge the 14180 branch into master... and then *maybe* into Release02x01 ... It's mostly bugfix, but the refactoring is a bit more dangerous for a patch.
Anyway I'll fix other bootstrap compalints all in the new branch.
[01:57]
................... (idle for 1h32mn)
GithubBot[TestBootstrapPlugin] gac410 pushed 1 new commit to master: https://git.io/vi43m
TestBootstrapPlugin/master 39ca6a9 George Clark: Item14180: Update TestBootstrapPlugin to use core Bootstrap
[03:30]
***GithubBot has left [03:30]
FoswikiBothttps://foswiki.org/Tasks/Item14180 [ Item14180: Bootstrap enhancements and refactoring. ] [03:30]
.......................... (idle for 2h9mn)
***ChanServ sets mode: +o CDot [05:39]
........... (idle for 54mn)
GithubBot[distro] MichaelDaum pushed 1 new commit to master: https://git.io/vi48W
distro/master 5d92fd0 MichaelDaum: Merge branch 'Release02x01'
[06:33]
***GithubBot has left [06:33]
.............. (idle for 1h7mn)
GithubBot[FilterPlugin] MichaelDaum pushed 1 new commit to master: https://git.io/vi40l
FilterPlugin/master 2c61cfd MichaelDaum: Item13074: fix definition of $count...
[07:40]
***GithubBot has left [07:40]
FoswikiBothttps://foswiki.org/Tasks/Item13074 [ Item13074: Don't have limit option limit $count format variable ] [07:40]
..... (idle for 20mn)
***ChanServ sets mode: +o MichaelDaum [08:00]
......... (idle for 44mn)
ChanServ sets mode: +o Lynnwood [08:44]
......... (idle for 42mn)
GithubBot[JQGridPlugin] MichaelDaum pushed 1 new commit to master: https://git.io/vi4oR
JQGridPlugin/master ccc23b7 MichaelDaum: Item14182: fix column mapping, fix SolrConnector
[09:26]
***GithubBot has left [09:26]
FoswikiBothttps://foswiki.org/Tasks/Item14182 [ Item14182: fix typo in column mappter and bring it in line among all connectors ] [09:26]
GithubBot[JQGridPlugin] MichaelDaum pushed 1 new commit to master: https://git.io/vi4ow
JQGridPlugin/master a3fe011 MichaelDaum: Item14182: prepair release
[09:27]
***GithubBot has left [09:27]
HanumaanI have copied foswiki folder to different server completely getting the Welcome to foswiki page but not the wiki itself .. what should I clean to get everything? do any changes required for LocalSite.cfg? [09:32]
uebera||Hanumaan: If everything worked on the old server, you did not copy everything. Are all requirements met? Did you check the nginx/apache2 related setup? Did you follow the setup guidelines step by step to check whether something is missing on the new server? [09:41]
Calibos030Hi everybody ! Does anyone here has some time to help me with foswiki ?
We use it already a long time and now it started with some encoding mistakes.
Our german letters (ä, ö, ü, ß ) are not longer readable....
Does anyone in here has an idea to get this working ?
[09:46]
jastwhich version of Foswiki are you currently using? (it shows up in .../System/, for instance) [09:50]
Calibos030This site is running Foswiki version v1.1.7, Release Foswiki-1.1.7, Plugin API version 2.2
In LocalSite.cfg : $Foswiki::cfg{Site}{CharSet} = 'iso-8859-15';
[09:51]
jastokay. first off, there is a newer version of 1.1 and you might want to update at some point to get some security fixes and such, but that's just an aside
are your umlauts broken everywhere or just in some areas/topics?
[09:51]
Calibos030everywhere [09:52]
jastthat's strange... shouldn't really happen unless you re-encode all your files or change the CharSet option
do you have console access to the server?
[09:53]
Calibos030yes i have
and currently logged on
[09:53]
jasttry running 'file' on one of the affected topics and see what character encoding it detects [09:53]
Calibos030for instance : DRKLausitzHardware156.txt: ISO-8859 text [09:55]
jastokay. that's fine.
it might be a display issue in the browser, then. which browser are you using?
[09:55]
Calibos030firefox 48.0.2 [09:56]
jastokay, with the topic opened in firefox, do a right click and choose 'page info'. there should be an item "text encoding", what does it say? [09:56]
Calibos030with Microsofts IE same
text/html; charset=iso-8859-15
[09:56]
jastthat's "type", another helpful piece of information. is there another line about encoding?
should be in the top part, above the "meta" table
[09:57]
Calibos030Encoding : ISO-8859-15 [09:58]
jasthum. all of that is exactly as it should be...
do the broken characters show up as: a question mark? a question mark in a diamond? other special characters? not at all?
[09:58]
Calibos030It shows : Persönliche Seitenleiste anlegen
should be : Persönliche Seitenleiste anlegen
[09:59]
jastthat's particularly weird, looks like something is secretly re-encoding it to UTF-8 [09:59]
Calibos030maybe something wrong with Apache ? [10:00]
jastApache shouldn't be doing that, and I wouldn't actually know how to make it do that
hmm
[10:00]
Calibos030I've also no idea
I would like to try to setup a new linux machine with a new clean installation of foswiki
but i don't know how to migrate the data
is it only a file copy of the tree ?
[10:02]
jastpretty much, yes
all of the topic contents and metadata is in data/, all of the attachment contents and metadata is in pub/
[10:03]
Calibos030perhaps this solves my problem [10:03]
jastI'd skip the System/ subdirs because those are typically handled by Foswiki and its plugins [10:03]
Calibos030ok
the installation which is showing up these weird things was migrated from one VMware ESXi to another
[10:03]
jastif you decide to use Foswiki 2 in your new install, at some point you'll have to run a charset conversion on your content (Foswiki 2 uses Unicode/UTF-8 everywhere)
there's a script for that, though, so it's not complicated
[10:04]
Calibos030ok, is there some kind of doc or tut for that ?
May I come back for some questions if I don't get it run ?
[10:04]
jastthis might help: http://foswiki.org/Download/FoswikiRelease02x01x02?redirectedfrom=Download.WebHome#Upgrading_from_Foswiki_1.x.
sure
[10:05]
Calibos030Thanks, then I'll try to install a new machine with foswiki 2 [10:06]
jastthat one documents how to migrate to the new store format which is a slightly different procedure [10:06]
Calibos030ok [10:06]
jastin that case you just copy the complete existing Foswiki install to a temporary dir on the target server and then run a copy script that changes the format and the encoding in one go [10:06]
Calibos030Can I install foswiki on debian with debian packets ? [10:07]
jastunfortunately nobody is currently maintaining debian packages for foswiki [10:07]
Calibos030ok, so it has to be compiled
?
[10:07]
jastFoswiki is based on Perl, a scripting language, so there's no need to compile anything
virtually all of its Perl dependencies are available as Debian packages
[10:07]
Calibos030ok, thanks [10:08]
jast(some of the more exotic plugins may require things not available in Debian but chances are you won't be needing those) [10:08]
Calibos030I'm a little bit afraid that I will not get the authentication with ldap / active directory working
But I'll try
Thanks for your time :-)
... and sorry for my English
[10:08]
................... (idle for 1h33mn)
GithubBot[MimeIconPlugin] MichaelDaum pushed 1 new commit to master: https://git.io/vi4QA
MimeIconPlugin/master 6885dc7 MichaelDaum: Item14183: added vsd to icon mapping
[11:43]
***GithubBot has left [11:43]
FoswikiBothttps://foswiki.org/Tasks/Item14183 [ Item14183: add vsd to mime icon mapping ] [11:43]
GithubBot[NewUserPlugin] MichaelDaum pushed 1 new commit to master: https://git.io/vi478
NewUserPlugin/master 30c6146 MichaelDaum: Item14184: remove /o from regular expressions
[11:49]
***GithubBot has left [11:49]
FoswikiBothttps://foswiki.org/Tasks/Item14184 [ Item14184: remove /o from regular expressions ] [11:49]
GithubBot[PageOptimizerPlugin] MichaelDaum pushed 1 new commit to master: https://git.io/vi477
PageOptimizerPlugin/master 4030deb MichaelDaum: Item14185: improved cache maintenance...
[11:56]
***GithubBot has left [11:56]
FoswikiBothttps://foswiki.org/Tasks/Item14185 [ Item14185: improve cache maintenance of gathered css and js ] [11:56]
GithubBot[RtfContrib] MichaelDaum pushed 1 new commit to master: https://git.io/vi45u
RtfContrib/master 4fb5ad6 MichaelDaum: Item14186: add missing Config.spec file
[12:02]
***GithubBot has left [12:02]
FoswikiBothttps://foswiki.org/Tasks/Item14186 [ Item14186: add missing Config.spec file ] [12:02]
GithubBot[SecurityHeadersPlugin] MichaelDaum pushed 1 new commit to master: https://git.io/vi45x
SecurityHeadersPlugin/master f94e830 MichaelDaum: Item14187: add child-src in addition to frame-src
[12:06]
***GithubBot has left [12:06]
FoswikiBothttps://foswiki.org/Tasks/Item14187 [ Item14187: add child-src policy in addition to the now deprecated frame-src policy ] [12:06]
Calibos030Can anyone tell me how to solve this issue : Unable to install TinyMCE: could not read "TINYMCEPLUGIN_INIT" from FoswikiTiny.init ?
I just made a clean install of debian and foswiki
then I move all old data in ( /data /pub )
after that I conerted everything to utf-8
thanks to jast, everything worked fine, all data has umlauts
[12:14]
GithubBot[SetVariablePlugin] MichaelDaum pushed 1 new commit to master: https://git.io/vi4dX
SetVariablePlugin/master 3be5511 MichaelDaum: Item14188: compatibility with different engines
[12:16]
***GithubBot has left [12:16]
FoswikiBothttps://foswiki.org/Tasks/Item14188 [ Item14188: add compatibility with different Foswiki engines ] [12:16]
Thomas_BerlinNo idea ? [12:21]
GithubBot[SqlPlugin] MichaelDaum pushed 1 new commit to master: https://git.io/vi4Fc
SqlPlugin/master 12d123b MichaelDaum: Item14189: fix checking for access control rules...
[12:25]
***GithubBot has left [12:25]
FoswikiBothttps://foswiki.org/Tasks/Item14189 [ Item14189: fix checking for access control rules ] [12:25]
***ChanServ sets mode: +o MichaelDaum [12:38]
ChanServ sets mode: +o gac410 [12:45]
.......... (idle for 45mn)
gac410 sets mode: +v [LOGGER_FOSWIKI] [13:30]
................................. (idle for 2h44mn)
gac410MichaelDaum: Do you use Foswiki with proxy's ... Wondering if we get the remote (client) address wrong. I know it breaks bootstrap, detecting the proxy URL as the hostname [16:14]
***ChanServ sets mode: +o RaulFR [16:15]
RaulFRhello :-) [16:15]
gac410Hi RaulFR [16:15]
MichaelDaumgac410, nope, never did. [16:17]
gac410okay thanks. I was digging into Item14181 and realized that the client IP has the same masking issue, needs to be pulled from an X_FORWARDED header as well. [16:17]
FoswikiBothttps://foswiki.org/Tasks/Item14181 [ Item14181: Bootstrap selects Proxy host instead of public facing host ] [16:17]
gac410Also looking at Item13578. Does the detect pub path of bin/../pub ever make sense rather than subsitiuting pub for whatever the final part of the path is? [16:19]
FoswikiBothttps://foswiki.org/Tasks/Item13578 [ Item13578: Configure can guess path names with .. in them ] [16:19]
gac410ie. is there ever a time that URL of /bin/../pub/System/ would work, while /pub/System/.. would not work.
gac410 is doing some bootstrap tuning in the Item14180 branch... we *could* merge into Release02x01, but anything bootstrap is pretty sensitive.
[16:20]
FoswikiBothttps://foswiki.org/Tasks/Item14180 [ Item14180: Bootstrap enhancements and refactoring. ] [16:21]
................................................ (idle for 3h58mn)
***ChanServ sets mode: +o gac410 [20:19]
............. (idle for 1h2mn)
jmk0hey, guess what, I finally have official approval to release my work
took just over one year, but hey.
[21:21]
GithubBot[PlantUMLPlugin] jmk0 created master (+1 new commit): https://git.io/viRLL
PlantUMLPlugin/master 3a25adb johnk: initial commit
[21:31]
***GithubBot has left [21:31]
GithubBot[XMLStoreContrib] jmk0 created master (+1 new commit): https://git.io/viRL8
XMLStoreContrib/master 242797a johnk: first commit
[21:34]
***GithubBot has left [21:34]
GithubBot[AutoSubPlugin] jmk0 created master (+1 new commit): https://git.io/viRLV
AutoSubPlugin/master 3a5f5cf johnk: first commit
[21:35]
***GithubBot has left [21:35]
GithubBot[DataFlowDiaPlugin] jmk0 created master (+1 new commit): https://git.io/viRLh
DataFlowDiaPlugin/master bc294ca johnk: first commit
[21:39]
***GithubBot has left [21:39]
jmk0All imported except DoxygenPlugin which I don't have access to, apparently. gac410, or anyone else... can you set this up? I think that was the intent a year ago when all this got started. [21:42]
gac410jmk0: cool. I'll create it.
jmk0 - it existed, but was not granted to Foswiki developers. ... I just added the permissions.
jmk0: well, none of what you pushed got attributed into the tasks web. Somehow you missed the git hook that enforces commits require message in format of ItemNNNN:
[21:51]
jmk0grazi. Is there something I was supposed to have done but didn't?
oh, the commit message needed the ItemNNNN, I see
[22:02]
gac410yeah. In theory, if you ever "pseudo-installed" the extensions it should have automaticallly installed a git hook that would have blocked the commit unless the message was formatted corrrectly, and a Task existed in a non-closed state.
tbh it's not really a big deal.
[22:03]
jmk0ok.. should I create a task for *my* first DoxygenPlugin check-in? [22:04]
gac410If there was a task to create/release the collections of extensions. we could manually put the commit info into the task.
For a collection like that I'd say create a task to create your (whatever you want to call the collection) extensions.
Use it to commit the Doxygen work, and I can add the other commits to it later manually.
[22:04]
jmk0sorry, my eagerness to get something out there led me to doing things the wrong way
like so? https://foswiki.org/Tasks/Item14191
then the commit message would be "Item14191: first commit"
[22:08]
FoswikiBothttps://foswiki.org/Tasks/Item14191 [ Item14191: First commit of new implementation of DoxygenPlugin ] [22:08]
gac410Yes that works fine. [22:09]
GithubBot[DoxygenPlugin] jmk0 pushed 1 new commit to master: https://git.io/viROs
DoxygenPlugin/master 8096be1 johnk: Item14191: first commit of new implementation
[22:11]
***GithubBot has left [22:11]
jmk0did I do that right?
and should I close the issue myself or will that happen automatically
[22:11]
gac410worked fine. If you want to use the same task for all your extensions, that can be fine too. If you're done, then you can close it. [22:13]
jmk0that was the only one I hadn't already done the wrong way :( [22:13]
gac410If you look at the task, you'll see that there is a link from the task form to your commit on github. [22:13]
jmk0so there is [22:14]
gac410I can still manually record the commits into the task.
btw, github is reporting your commits as from an unknown user. The email address in your commits might not be linked to your account.
There is a question mark after johnk on the github commit page.
[22:15]
jmk0looks like it's using my local repo user name instead of my git user name [22:17]
gac410yeah I think you can change that in the git properties. not really sure.
Are you pushing using an SSH key? or with a manual login?
[22:17]
jmk0https (ssh is blocked to the outside world) [22:19]
gac410Ah.. okay. too bad. the ssh process is really smooth. Once set up things just work. [22:20]
jmk0yeah
do you know of a way to find out what email was associated with those commits? My address is what it ought to be in git
*github
[22:20]
gac410If you hover over the ? next to your ID in the commit, it shows the email address. [22:21]
jmk0ah, i see
i think i have it fixed... git config --global user.email blahblah
not sure if i'll be able to add the broken one, depends on whether our mail server will pass the email through
[22:21]
gac410yeah. And from the Item14191 history, your checkin got picked up as "ProjectContributor" because neither your git ID johnk or your git email, matched your email or id on Foswiki.org [22:23]
jmk0so much fail on my part :( [22:24]
gac410We do have a table on f.o where I can map email addresses or github identities to Foswiki WikiNames
Nah... It takes a while to work this out.
For a long time all of CrawfordCurries commits ended up attributed to "comment"
[22:24]
jmk0lol
ah! looks like the mapping on github doesn't need to be a verified email
sort of... the main page still shows johnk, but if you click on the commit it shows my github account
[22:25]
gac410yeah it figures it out. we just need to add the mapping onto foswiki.org ... somehow ... I can't remember how :D [22:27]
jmk0is there anything else I need to fix right now? [22:28]
gac410no. your code is in. looks fine. I'll eventually figure out the mapping. [22:28]
jmk0ok, in that case I'm out. Have a good weekend and thanks for the help [22:28]
gac410you to. thanks for the code! [22:29]

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