View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [9.3.2] Projeqtor require a proxy to run normally - ProjeQtOr
 
 

[9.3.2] Projeqtor require a proxy to run normally

More
16 Nov 2021 16:23 #1 by ASSLR
Hello,

i've install projeqtor in the latest version with apache2 and Mariadb. I work on enterprise network with a proxy who need authentification. If i launch projeqtor on a webpage and i want to create item, the page stuck because app have a failed return of proxy for $currrentVersion or $json, the log file say "error  cause = Trying to get property 'items' of non-object".
So, i think it's go to add a proxy variable maybe directly in the app or just in a conf.php file.

For exemple (and it's working) i've added this lines for auth me on proxy and allow app can check his variables :
$ emacs ../projeqtor/tool/projeqtor.php

[...](Line 4357) function checkVersion
$auth = base64_encode('USER:PASSWORD');

  $aContext = array(
    'http' => array(
    'proxy'           => 'tcp://proxy:3128',
    'request_fulluri' => true,
    'header'          => "Proxy-Authorization: Basic $auth",
                      ),
    );
  $cxContext = stream_context_create($aContext);
[...]
[...] (Line 4382)
$currentVersion=file_get_contents($checkUrl, False, $cxContext);
[...]


$ emacs  ...projeqtor/view/menuNewGuiLeft.php

[...] (Line 370)
$auth = base64_encode('USER:PASSWORD');
  $aContext = array(
    'http' => array(
        'proxy'           => 'tcp://proxy:3128',
        'request_fulluri' => true,
        'header'          => "Proxy-Authorization: Basic $auth",
                          ),
        );
  $cxContext = stream_context_create($aContext);
[...]
[...](Line 389)
    $currentVersion=file_get_contents($urlPlugins, False, $cxContext);
    $json = file_get_contents($urlPlugins, False, $cxContext);
[...]

$ /etc/init.d/apache2 restart

and after all it work. it's possible to add this variable ?

Thank for all (it's a good product) !
 

Please Log in or Create an account to join the conversation.

More
16 Nov 2021 16:28 #2 by babynus
Hi,

Remote connexion (that requires proxy) is needed only to check latest deployed version, to add a notification if newer version exists.
This is only executed when an admin connects.
Better that trying to configure a proxy, it is possible to disable this feature in global parameters, tab "System", set "check version" to NO.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
16 Nov 2021 16:42 #3 by ASSLR
Thank you for this quickly return !!

I have try this function and i've delete my code and this work too. But i can't have notifications when a new version is out ;-)

Thank you.

Best Regards

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.040 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.