Skip to content

Commit

Permalink
Item13160: ignore ssl certificate issues
Browse files Browse the repository at this point in the history
... when contacting piwik on localhost loopback
  • Loading branch information
MichaelDaum committed Dec 16, 2014
1 parent 2afc1c0 commit db3f9ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 4 additions & 3 deletions data/System/PiwikPlugin.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" comment="" date="1417783663" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" comment="" date="1418745265" format="1.1" version="1"}%
---+!! %TOPIC%
%SHORTDESCRIPTION%

Expand Down Expand Up @@ -48,7 +48,7 @@ produced by <nop>%TOPIC%.

To finish installation, you'll have to configure at least:

* the ={ApiUrl}= of your Piwik server, e.g. =http://localhost/piwik/piwik.pgp=
* the ={ApiUrl}= of your Piwik server, e.g. =http://localhost/piwik/piwik.php=
* The ={TokenAuth}= to access advanced features (see the API menu on your Piwik server).
* the ={SiteId}= of your Foswiki server; this is a numeric id of your sites
configured in piwik itself
Expand Down Expand Up @@ -114,6 +114,7 @@ To track rendering times on older Foswikis you need to apply below patch
| Version: | %$VERSION% |
| Release: | %$RELEASE% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| 16 Dec 2014 | ignore ssl certificate problems when contacting piwik on localhost |
| 05 Dec 2014 | use both either completePageHander or modifyHeaderHandler not to miss a page view |
| 29 Aug 2014 | added proper system init scripts; fully specify rest security |
| 18 Mar 2014 | added support for foswiki engines < 1.2.0 |
Expand All @@ -126,4 +127,4 @@ To track rendering times on older Foswikis you need to apply below patch
| Home page: | Foswiki:Extensions/%TOPIC% |
| Support: | Foswiki:Support/%TOPIC% |

%META:FILEATTACHMENT{name="logo.png" attachment="logo.png" attr="h" comment="" date="1417783663" size="7191" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="logo.png" attachment="logo.png" attr="h" comment="" date="1418745265" size="7191" user="ProjectContributor" version="1"}%
4 changes: 2 additions & 2 deletions lib/Foswiki/Plugins/PiwikPlugin.pm
Expand Up @@ -22,8 +22,8 @@ use Foswiki::Func ();
use Foswiki::Sandbox ();
use Error qw(:try);

our $VERSION = '2.21';
our $RELEASE = '2.21';
our $VERSION = '2.22';
our $RELEASE = '2.22';
our $SHORTDESCRIPTION = 'Server-side page tracking using Piwik';
our $NO_PREFS_IN_TOPIC = 1;
our $tracker;
Expand Down
4 changes: 4 additions & 0 deletions lib/Foswiki/Plugins/PiwikPlugin/Daemon.pm
Expand Up @@ -67,6 +67,10 @@ sub userAgent {
agent => "Foswiki Piwik Client",
timeout => $this->{timeout} || 10, # make it short
);

$this->{userAgent}->ssl_opts(
verify_hostname => 0, # SMELL
);
}

return $this->{userAgent};
Expand Down

0 comments on commit db3f9ae

Please sign in to comment.