Loading...
 
Skip to main content

15.x: Allow running console.php to apply profiles from behind a proxy (to run new R script to check errors when testing the application on all Profiles on several tiki branches)

Status
Open
Subject
15.x: Allow running console.php to apply profiles from behind a proxy (to run new R script to check errors when testing the application on all Profiles on several tiki branches)
Version
15.x
Category
  • Community projects
  • Dogfood on a *.tiki.org site
  • Feature request
  • Less than 30-minutes fix
  • Support request
Feature
Installer (profiles, upgrades and server-related issues)
TikiTests
Resolution status
New
Submitted by
Xavier de Pedro
Lastmod by
rjsmelo
Rating
(0)
Description

Hi:

I've set up an R script (.Rmd: with R markdown to be run through Knitr) to check the application of all Tiki Profiles (the ones available in the Profiles Wizard since Tiki12, at least) on several tiki branches on your own localhost, to search for error messages, and aggregate that information for easy monitoring. It can be extended to send an email when regressions show up, etc.
I developed that over the weekend from home, and even if in beta stage, it currently works.
See: https://github.com/xavidp/TikiProfilesTester

However, I cloned the git repo at work, where we are behind a proxy, and console.php cannot apply profiles from there through the commandline. Through the GUI I always have to add the proxy info to Tiki first in order to be able to list profiles and apply them , etc.

Copy to clipboard
root@pentinella:/var/www/html/trunk# php console.php p:a Voting_System Profile not found. root@pentinella:/var/www/html/trunk#


proxy info seem to be defined at ./trunk/lib/tikilib.php (line 185 onwards)

Workaround

As a workaround you can probably use a local profile (on a folder on the server) example, if you create a file:

/some/path/set_local_proxy.yml with the content:

Copy to clipboard
--- preferences: use_proxy: y proxy_host: 127.0.0.1 proxy_port: 8080 proxy_user: user proxy_pass: password


Then you can use:

Copy to clipboard
php console.php p:a set_local_proxy /some/path


As a preparation step to set the prefs, and then the profile:apply will pick the proxy from the preference.

Importance
4
Easy to solve?
8
Priority
32
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5799
Created
Monday 25 January, 2016 09:59:14 UTC
by Xavier de Pedro
LastModif
Saturday 20 February, 2016 19:45:19 UTC


Show PHP error messages