#foswiki 2016-05-30,Mon

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

WhoWhatWhen
rouiljcan %INCLUDE% be used to extract data from an attachment using the local filesystem? My use case is an autogenerated file mapping virtual hosts to their virtual centers. I can do this if the data is in a topic, but it would be easier to update the data if it is in an attachment.
I tried the https reference to the attachment, but the statement: " If the URL resolves to an attachment file on the server this will automatically translate to a server-side include." didn't seem to work. How is the resolution of an attachment done? Does the topic page the attachment is on have to have updated metadata? (I did a quick/dirty ftp upload of the file.)
oh also I am asking for foswiki 1.1.9 (which is where the testing is done) as well as latest 2.x (which is my intended version in production)
[00:37]
.................. (idle for 1h25mn)
GithubBot[distro] gac410 pushed 1 new commit to Item14033: https://git.io/vrQZE
distro/Item14033 7750451 George Clark: Item14033: Cache tests not really testing REST requests
[02:08]
***GithubBot has left [02:08]
FoswikiBothttps://foswiki.org/Tasks/Item14033 [ Item14033: Implement MoveQueryPathParsingIntoFoswikiRequest ] [02:08]
gac410rouilj INCLUDE can access external files via http type requests, but you need to permit (DANGEROUS) include of external URLs. It's not smart enough to recognize a http reference as local to the server.
And with a http: include, you can use the pattern to excerpt parts of the included page.
[02:17]
............................ (idle for 2h18mn)
***gac410 has left [04:37]
.......................... (idle for 2h9mn)
ChanServ sets mode: +o MichaelDaum [06:46]
................................. (idle for 2h42mn)
AndreR2Hello,
I have foswiki 2.1.2 with natskin installed an id I want to show me the changes of the Web (foswiki/bin/view/Public/WebChanges#sort=date%20desc) only a "Loading..." sign appears
Solr Plugin is installed but disabled and solr itself not isntalled
[09:28]
MichaelDaumHi AndreR2
one gotcha: add '{SolrPlugin}{PersonDataForm}' to $Foswiki::cfg{AccessibleCFG}
if you want to back off of Solr then remove 'WebChanges' => 'WebChangesView', from $Foswiki::cfg{Plugins}{AutoTemplatePlugin}{ViewTemplateRules}
as that applies the solr'ized view template to WebChanges
[09:32]
AndreR2Yes that worked ! Thanks [09:35]
...................... (idle for 1h45mn)
foswiki_irc9after upgrading my LTS Ubuntu server to 14.04 from 12.04 my Foswiki 2.0.2 I get a: The requested URL /foswiki2/bin/view/System/ResetPassword was not found on this server
anybody that could help me with that?
[11:20]
uebera||foswiki_irc9: That upgrade likely affected your apache2 (nginx?) configuration--did you have a look at the logs, did you compare your old and your new settings? [11:23]
foswiki_irc9Yes, Apache2 upgraded to 2.4 from 2.2 and the old /var/ww/ directory is now under /var/www/html [11:29]
Apache's error logfile looks fine and doesn't seem to report any errors [11:35]
uebera||Perl should also have been upgraded. Did you have a look at System.PerlDependencyReport?
After checking that--apart from ResetPassword, are there any other URLs that stopped working?
[11:37]
foswiki_irc9I can't log-in to Foswiki and the page MyDomain/foswiki/bin/view/Main/WebHome looks pretty much as only text formatted, and as soon as I click on some link (i.e. WelcomeGuest) I only get the same not found page
but all those links point to MyDomain/foswiki2/...
[11:47]
uebera||by "only text formatted", do you mean it resembles this --> https://foswiki.org/Main/WebHome?raw=all ?
Or do you mean you lack the icons/graphics?
[11:54]
foswiki_irc9I mean it lacks all icons/graphics [11:56]
uebera||The first would point to a missing handler (were you using mod_fcgid or the like? is this still active?), the second would point to a missing Alias/root directory setting. Note that parts of the foswiki apache2 configuration are wrapped in <IfModule>...</IfModule> conditionals. [11:56]
You could backup your current configuration and try to regenerate it with https://foswiki.org/Support/ApacheConfigGenerator. But if you don't see the grapics, your apache log should definitely tell you that a number of files (i.e., the icons/graphics) cannot be retrieved [12:02]
foswiki_irc9I checked /tools/dependencies and it reports different not installed optional perl modules used by Foswiki, as well as some extensions used by installed extensions (like CPAN:mod_perl, CPAN:FCGI::ProcManager, CPAN:Apache2::Request, CPAN:Apache::Request [12:03]
uebera||Did you use the default version of Perl prior to the upgrade? And did you manually install CPAN extensions using cpan(minus/plus) instead of installing the respective Ubuntu package? In that case, you have to redo all these steps. [12:06]
***ChanServ sets mode: +o gac410 [12:14]
gac410hi all ... Don't forget - release meeting in #foswiki-release, in about 40 minutes. [12:18]
......... (idle for 42mn)
Release meeting starting now - Channel #foswiki-release [13:00]
foswiki_irc9@uebera|| yes, default Perl version and don't know about manual install of CPAN extensions [13:05]
.......... (idle for 46mn)
@uebera|| thanks for the hints, I'm gonna try them out and for sure come back soon [13:51]
MichaelDaumone question to all: people are irritated by changing their email in their profile page having UserForm attached to it ... vs changing email addrs as part of the user mapping.
would it make sense to sync emails part of a UserForm down to the user mapper? is that a sensible thing to do?
[13:55]
gac410All my Wiki's are public, so the user form never reveals the email. [13:56]
MichaelDaumyet still your user profiles have UserForm attached ... which comes with an email formfield?
thats where the confusion starts
sure, pubic email addrs are a bad thing ... but thats another issue
[13:57]
gac410gac410 needs to go look, but I think I hide the email address, or even removed it. [13:58]
..... (idle for 20mn)
vrurggac410: I'll be back here in ~1.5-2hr. [14:18]
gac410okay thanks vrurg
gac410 dislikes that we have a registration form that tries to capture every field under the sun. Wonders if a "reg form generator" might be nice to spit out a tailored skeleton from a checklist of available fields
[14:19]
MichaelDaumy, at least org name, org url and country should be removed by default. nobody fills that out anyway [14:22]
gac410[x] Company [custom field title....] [required/optional] ... like the apache config generator.
Well the org url and org name are really "Please spam me here" fields ;)
[14:22]
MichaelDaumand country? what for?
why is it mandatory
[14:24]
gac410no idea. That dates back to t* [14:24]
MichaelDaumdel [14:24]
gac410I suppose for foswiki.org it
it's interesting info, but it's probably 90% bogus
Same with organization. For every 10 spammish there are legit registrations with interesting info about companies interested in foswiki.
[14:25]
MichaelDaumthis kind of info only makes sense in a marketing context
in email marketing (https://www.campaignmonitor.com/)
for an open source project this is pretty bogus
[14:26]
gac410Ocassionally when we get a bug report I look at the registration, like the recent reports regarding xss. Registration was legit. [14:28]
............... (idle for 1h14mn)
Release Meeting minutes. Foswiki:Development/ReleaseMeeting02X02_20160530 [15:42]
FoswikiBothttps://foswiki.org/Development/ReleaseMeeting02X02_20160530 [ ReleaseMeeting02X02_20160530 ] [15:43]
vrurggac410: I though about the branching. Generally, it's too much burden. I think simple commiting is ok as soon as one condition is met: already converted tests must be passing. I can add a table to Item13897 which would list the converted tests to make it easier to follow. [15:48]
FoswikiBothttps://foswiki.org/Tasks/Item13897 [ Item13897: Implement ImproveOOModel proposal. ] [15:48]
gac410My challenge has been that I use tools/configure pretty extensively to "stage" my test environments from a shell script. How do you get your test LocalSite.cfg built?
I try to unit test using the pseudo-install -A option ... that ensures a consistent config base for the tests.
[15:50]
vrurgI started with no LSC, then got the /bin/config working from the browser. [15:52]
gac410Ah... okay. [15:52]
vrurgFor a long time I was running the code in pure bootstrap mode. [15:52]
gac410I find the branch process simpler anyway, in that I can commit in increments without any requirement to push to github.
Other option is to use stash, but then I lose track of them on occasion. Or forget.
[15:55]
vrurgAha. Ok, I thought to simplify the process. If it complicates it then nothing to be worried about. :) [15:59]
rouiljgac410, ok that's what I thought and I agree dangerous and since the foswiki requires AD login, there is no way for an http reference to an attachment to work. [16:03]
gac410Ah... y, if you are protecting attachments, then that's an issue. [16:03]
rouiljI saw the server side include mention and thought it could access the attached file directly (i.e. on the server). [16:04]
gac410Typically direct access to pub directory doesn't need login, though that's a bit of a hole.
Well, the server does the http request to locally access the file. So it's server side, albeit via http
[16:04]
rouiljgac410, I am not protecting the attachments per se, the whole site is behind https with a requirement to authenticate by AD.
login required from apache via ldap
http redirects to https.
[16:11]
gac410I suppose another option might be a plugin to access the attachment.
too bad the FilterPlugin didn't allow processing of attachments
[16:14]
MichaelDaumgac410, TopicInteractionPlugin implements an %ATTACHMENTS macro that does exactly that [16:18]
gac410So you can dip into attachment files and extract out information? [16:19]
MichaelDaumFilterPlugin filters lists, no matter where they come from [16:19]
rouiljyeah, or %INCLUDE{"name" attachment="something"}% grabs the file something attached to the page name [16:19]
MichaelDaumsearching in attachments?
%ATTACHMENTS lists attachments, not their content
[16:19]
gac410He is looking at a way to include an attachment and filter it through a pattern
We have INCLUDE pattern capabiility but it only applies to http:// style includes
And he can't use http because server requires an AD login
[16:20]
MichaelDaumeven for localhost? [16:21]
gac410yeah :(
Actually it's a reasonable idea, that %INCLUDE should be able to specify a Topic/Attachment as the include target, rather than just a topic.
[16:21]
MichaelDaumrouilj, what kind of content is it? CSV? [16:23]
rouiljbasically each line consists of:
hostname, virtual_center_server
however now that I am saying this I am wondering if i am using include or search.
hmm
[16:23]
gac410IIRC you said that it's a generated file? You know foswiki is happy if you write to a SomeTopic.txt file as well. [16:24]
MichaelDaumwell how about attaching it as a csv and then use SqlPlugin with a csv driver. This will let you query the file using %SQL [16:25]
rouiljit's an include with a pattern. Sorry was awoken last night a few times.
gac yeah, I realize I could update the topic in place, it just feels icky.
MichaelDaum, I am using case insensitive pattern match in the include.
because I don't know if the case of the hostname in the csv file is the same as the case of the key I am looking for.
can the SqlPlugin handle case insensitive search?
[16:26]
gac410gac410 has to run... see you later. [16:32]
rouiljthanks for the help. I have to jog as well.
rouilj too old to run
[16:32]
...................... (idle for 1h46mn)
AGCaesarHey :) I am quite new to foswiki and habe a question about the %COMMENT% feature. I want to include a standard text in the coemment box which will be editable when the box is clicked. when I use the "default" feature, the text vanishes once I cllick in the box... any hints are very appreciated :) [18:18]
gac410AGCaesar: I've not done that before, but you probably have to create a custom template that provides a value= instead of a placeholder= setting [18:22]
AGCaesaroh... I hoped I just amde an easy mistake, that will be quite hard for me, but I will give it a try
your documentation is quite good and I managed a lot even without much programming/html/wiki knowledge
[18:23]
gac410well in this case the docs are letting me down. I'm not seeing how the default / placeholder vs value is applied :( [18:27]
AGCaesarMy problem is: I have several Topics and multiple users should reply to those topics, ideally commenting on 4 subjects. I wanted to onclude the 4 headlines in the comment field so they are easily editable. If you have any other idea how to accomplish that... [18:34]
............ (idle for 55mn)
***ChanServ sets mode: +o Lynnwood__ [19:29]
AGCaesarok other idea: if i want to set the default size of the %COMMENT% field, do I also have to write my own template? [19:37]
...................... (idle for 1h46mn)
GithubBot[distro] vrurg pushed 1 new commit to Item13897: https://git.io/vr7AX
distro/Item13897 c8a6fae Vadim Belman: Item13897: Tests up to and including ExtensionInstallerTests...
[21:23]
***GithubBot has left [21:23]
FoswikiBothttps://foswiki.org/Tasks/Item13897 [ Item13897: Implement ImproveOOModel proposal. ] [21:23]
.... (idle for 16mn)
AGCaesarIs there any way foswiki can use a nweline in an comment field as a newline in the displayed text? Probably not I guess? [21:39]
....... (idle for 33mn)
gac410AGCaesar: Enter two newlines, that's a paragraph break [22:12]
AGCaesarYes.. I can do this... but I know people will complain about it :/
but thats not too important...
fixing the %COMMENT% field size is my new project :D
[22:13]
...... (idle for 28mn)
rouiljAGCaesar, try %COMMENT{..., rows="40" cols="60"}% IIRC any extra arguments set in comments is applied to the textarea into which you type the comment. If this works, it depends on which comment template you are using. It should work for top, bottom and other comment templates that use promptbox.
you can also use rows="40%" rather than an html size.
[22:43]
AGCaesaryay! that works and is totally easy :)
thank you so much!
maybe you could add those options in the documentation? Or maybe most people know thos valoes exist^^
[22:44]
gac410Actually it's there, but could clearly be more visible. In Foswiki:System.CommentPlugin, it says "If an attribute is given to the %COMMENT tag that is not one of the standard attributes, then that attribute is taken as the name of a parameter to be expanded in the PROMPT template." [22:55]
FoswikiBothttps://foswiki.org/System.CommentPlugin, [22:55]
AGCaesarI read that... but did not really understand it, but you are right :)
can you explain what value="%tval|Rubbish% means? Or just the "value" parameter?
[22:57]
gac410The value parameter is the initial value displayed in the field. vs. placeholder= which disappears when you begin to type.
I'm not sure what the tval is all about.
That string "tval" appears nowhere but in that one example. Might be bogus / lefover from an older version. not sure.
[23:13]
AGCaesarmh value seems to do nothing... i used "default" for text, but that disapers too... [23:16]
gac410the "tval" is an example of adding another COMMENT macro parameter. If you look at Foswiki:System/CommentPluginTemplate search for the generic prompt box. In that example is a textarea. [23:21]
FoswikiBothttps://foswiki.org/System/CommentPluginTemplate [ CommentPluginTemplate ] [23:21]
gac410If you override the promptbox, and added the value="%tval|Rubbish%" then the COMMENT macro could use tval="Some initial value" and that would provide a value for the initial value. [23:23]
AGCaesarhow do I overwrite the promtbox?
sorry, I am very new to this...
[23:25]
gac410And ... I'm testing it and it isn't working. [23:31]
AGCaesar:D Thank you :) [23:32]
gac410I'm sure there is a way to do this. CommentPlugin is very flexible [23:33]
AGCaesarI bet there is... but can I do it?^^ [23:35]
gac410See Foswiki:System/CommentPlugin#Defining_custom_templates [23:35]
FoswikiBothttps://foswiki.org/System/CommentPlugin#Defining_custom_templates [ CommentPlugin ] [23:35]
rouiljgac410, I think there is something wonky with default value and the comment templates. I tried using it a few weeks back (with the top comment type) and didn't get it to work. Didn't have time to figure out why. [23:38]
gac410I think it's the docs that are wonky. value is not used by textarea to set the value. It's done as <textarea ...> the value </textarea>
That's html
[23:40]
AGCaesarso.... i need to build my ohn template and get this <textarea> to work? [23:42]
gac410I'm really not sure. This might need some code changes. The <textarea> is populated with from the perl code. I wish CDot was around. This pluigin is his baby [23:44]
rouiljtry setting: MESSAGE
that's the content of the promptbox
[23:44]
gac410it doesn't seem to do it. [23:45]
rouiljyeah, I have vague recollection of going down this line of reasoning.
fruitlessly.
[23:45]
gac410hm %COMMENT{default="somestring" rows="5" cols="20" }% seems to do it. [23:46]
AGCaesarwell yes, this puts text in the filed, but the text vanishes after you select it
I would like the text to stay^^
[23:49]
gac410hm It's not disappearing here [23:50]
AGCaesarreally? mh... [23:51]
gac410no... never mind. My modified user templates seemed to cause that. Now to figure out why [23:51]
AGCaesarmh.. but it also seems that chrome is somewhat better than firefox with this... I had a "date" field which did not work but in chrome it does.. [23:54]

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