Discussion:
[mantisbt-dev] FW: [mantisbt-commits] [mantisbt/mantisbt] d9d784: Check that $_SERVER['SERVER_NAME'] is exists befor...
P Richards
2014-08-11 18:13:21 UTC
Permalink
As much as I agree with atrol's note (https://github.com/mantisbt/mantisbt/pull/215#discussion_r16026977), and think we do need to consider whether the part he refers to is actually a good idea.

I've fixed the code (hopefully) not to break travis builds due to CLI not having _SERVER set.

I'd argue that having fancy logic to detect error handling is a bad idea as some people may want to run mantis in production via atrols WAMP setup for instance, and would likely be running it locally for personal use, and not be a 'mantis developer', and therefore not want automatic developer settings turned on.

Personally, I think our error handling settings are too complex - when working on 2.0/next before, we simplified them to a "show_friendly_errors" command. At the moment, we have 2-3 settings, some of which consist of arrays of what to do when various types of errors occur etc etc. For the most part, I believe this is over complicated, and we should have two modes: a) live/production b) debug/developer.

I feel that the change Damien (/victor?) have come up with is more related to the fact that you need to read the manual to remember what $g_display_errors should be set up as when developing mantis then being a good idea ;)

Paul

-----Original Message-----
From: GitHub [mailto:***@github.com]
Sent: 11 August 2014 19:01
To: mantisbt-***@lists.sourceforge.net
Subject: [mantisbt-commits] [mantisbt/mantisbt] d9d784: Check that $_SERVER['SERVER_NAME'] is exists befor...

Branch: refs/heads/master
Home: https://github.com/mantisbt/mantisbt
Commit: d9d784f14ab9d434f454d3ea3f380cfa23bf4ddb
https://github.com/mantisbt/mantisbt/commit/d9d784f14ab9d434f454d3ea3f380cfa23bf4ddb
Author: Paul Richards <***@mantisforge.org>
Date: 2014-08-11 (Mon, 11 Aug 2014)

Changed paths:
M config_defaults_inc.php

Log Message:
-----------
Check that $_SERVER['SERVER_NAME'] is exists before use
Roland Becker
2014-08-11 21:14:30 UTC
Permalink
Post by P Richards
people may want to run mantis in production via atrols WAMP setup
I hope they don't as I don't recommend for production use.
http://www.mantisbt.org/wiki/doku.php/mantisbt:features?s=mantis2go

I will certainly be able to deal with it by adding the options to config_inc.php
but still would like to see it reverted
http://www.mantisbt.org/bugs/view.php?id=17501#c41045

Roland
Post by P Richards
As much as I agree with atrol's note
(https://github.com/mantisbt/mantisbt/pull/215#discussion_r16026977), and
think we do need to consider whether the part he refers to is actually a good
idea.
I've fixed the code (hopefully) not to break travis builds due to CLI not
having _SERVER set.
I'd argue that having fancy logic to detect error handling is a bad idea as
some people may want to run mantis in production via atrols WAMP setup for
instance, and would likely be running it locally for personal use, and not be
a 'mantis developer', and therefore not want automatic developer settings
turned on.
Personally, I think our error handling settings are too complex - when working
on 2.0/next before, we simplified them to a "show_friendly_errors" command. At
the moment, we have 2-3 settings, some of which consist of arrays of what to
do when various types of errors occur etc etc.  For the most part, I believe
this is over complicated, and we should have two modes: a) live/production b)
debug/developer.
I feel that the change Damien (/victor?) have come up with is more related to
the fact that you need to read the manual to remember what $g_display_errors
should be set up as when developing mantis then being a good idea ;)
Paul
-----Original Message-----
Sent: 11 August 2014 19:01
Subject: [mantisbt-commits] [mantisbt/mantisbt] d9d784: Check that
$_SERVER['SERVER_NAME'] is exists befor...
   Branch: refs/heads/master
   Home:   https://github.com/mantisbt/mantisbt
   Commit: d9d784f14ab9d434f454d3ea3f380cfa23bf4ddb
     
 https://github.com/mantisbt/mantisbt/commit/d9d784f14ab9d434f454d3ea3f380cfa23bf4ddb
   Date:   2014-08-11 (Mon, 11 Aug 2014)
     M config_defaults_inc.php
   -----------
   Check that $_SERVER['SERVER_NAME'] is exists before use
------------------------------------------------------------------------------
_______________________________________________
mantisbt-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev
Damien Regad
2014-08-12 07:56:49 UTC
Permalink
Post by P Richards
I've fixed the code (hopefully) not to break travis builds due to CLI
not having _SERVER set.
Thanks for that, did not notice that the Travis builds had errors.

I think the travis script needs fixing to properly report such problems
in the future (i.e. cause the build to fail).


Please follow-up with the rest of this discussion in
https://www.mantisbt.org/bugs/view.php?id=17501

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

Loading...