View Issue Details

IDProjectCategoryView StatusLast Update
0022195mantisbthtmlpublic2017-01-31 04:05
ReporterAeXiPHiXiON Assigned Toatrol  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version1.3.4 
Summary0022195: adding url to description and notes in report issue breaks issue view
Description

With "make_links" set to ON, the url below breaks the issue when added to description, the issue can no longer be viewed. the issue can be edited. When it is added to notes it can no longer be edited and can only be deleted. If make_links is OFF no issue, just displays as text. Issue occurs with or without a tag, trunking the second half of the url does not have an issue.

$g_html_make_links = ON;

https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_query=active=true

TagsNo tags attached.
Attached Files

Activities

AeXiPHiXiON

AeXiPHiXiON

2017-01-13 17:30

reporter   ~0055112

https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_query=active=true

atrol

atrol

2017-01-13 18:15

developer   ~0055113

Last edited: 2017-01-13 18:17

AeXiPHiXiON,

I was not able to reproduce your problem with a fresh install of the latest stable MantisBT release (1.3.5 and 2.0.0 at the moment).
I am not complete sure, but fix of 0022028 in 1.3.5 might also fix your issue.

BTW,

$g_html_make_links = ON;

Instead of setting to ON, set it to the equivalent LINKS_SAME_WINDOW or remove the setting from config_inc.php as this is the default setting.
http://www.mantisbt.org/docs/master-1.3.x/en-US/Admin_Guide/html-desktop/#admin.config.html

I recommend that you upgrade to the latest (download from [1]). If after doing so the problem persists, do not hesitate to reopen the issue and provide detailed step-by-step instructions to reproduce the issue; the following additional information may also be useful:

  • Exact version of PHP, Database, Web server, Browser and Operating System
  • Relevant customizations (e.g. changes in config_inc.php, etc)
  • Installed plugins or custom functions ?
  • Was the MantisBT source code modified in any way ?

[1] http://mantisbt.org/download.php

AeXiPHiXiON

AeXiPHiXiON

2017-01-16 11:38

reporter   ~0055158

yes, adding that URL breaks both 1.3.5 and 2.0.0.
https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_query=active=true

this URL does not break, adding the "=" after query causes the fail
https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_query

Using all default settings from unmodified clean install.

Installed on AIX 7100-04-03-1642. Using chrome from Windows 7.

rpm's compiled by perzl.org

httpd-2.4.4-2
mod_php_ap24-5.5.17-1
php-common-5.5.17-1
mysql-libs-5.1.73-1
mysql-5.1.73-1
mysql-embedded-5.1.73-1
mysql-bench-5.1.73-1
mysql-server-5.1.73-1
mysql-test-5.1.73-1

AeXiPHiXiON

AeXiPHiXiON

2017-01-16 13:05

reporter   ~0055161

i tested against a newer MySQL DB and still fails but a little different. The DB is on a remote host. Seems like an issue with MySQL.

clean install from unmodified MantisBT 1.3.5

this works
https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_query=act

this fails
https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_query=acti

rpm's compiled from www-frec.bull.com
MySQL-client-5.5.10-1
MySQL-devel-5.5.10-1
MySQL-embedded-5.5.10-1
MySQL-shared-5.5.10-1
MySQL-server-5.5.10-1
MySQL-test-5.5.10-1

mysql privileges
create user 'root'@'10.5.128.153' identified by 'x';
grant all privileges on . to 'root'@'10.5.128.153' with grant option;

create user 'mantis'@'10.5.128.153' identified by 'x';
grant all privileges on *.* to 'mantis'@'10.5.128.153' with grant option;
atrol

atrol

2017-01-16 13:14

developer   ~0055162

Are there any errors or warnings in logs of web server or database?

AeXiPHiXiON

AeXiPHiXiON

2017-01-16 15:12

reporter   ~0055163

added these entries one at a time until I got the httpd error below. attached the sql log and mysql vars. did not see any errors in the sql error log

ok
test

ok
http://ganglia/

ok
https://gpc.service-now.com/nav_to.do?uri

ok
https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id

ok
https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack

this URL gives me an httpd error
https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_que

add again, and another seg fault
https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_que

https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_query=active=true

The seg fault appears to occur after the update when mantis is doing a select and trying to display the data, sql log during this time frame is attached

[Mon Jan 16 13:37:21.915537 2017] [core:notice] [pid 21627000:tid 1] AH00052: child pid 31260826 exit signal Segmentation fault (11)

The browswer url is, http://ganglia/mantisbt135/view.php?id=1

The browser error is

The ganglia page isn’t working

ganglia didn’t send any data.
ERR_EMPTY_RESPONSE

The UPDATE appears to be successful as the URL actually makes it into the database.

mysql> SELECT * FROM mantis_bug_revision_table WHERE bug_id=1 AND type=1 AND bugnote_id=0 ORDER BY timestamp DESC LIMIT 1;
+----+--------+------------+---------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+
| id | bug_id | bugnote_id | user_id | type | value | timestamp |
+----+--------+------------+---------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+
| 43 | 1 | 0 | 1 | 1 | test

http://ganglia/

https://gpc.service-now.com/nav_to.do?uri

https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id

https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack

https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm

https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_

152
https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_q

153
https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_qu

154
https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_que

https://gpc.service-now.com/nav_to.do?uri=change_request.do%3Fsys_id=6bd2781513d0be00a103d2f18144b0a5%26sysparm_stack=change_request_list.do%3Fsysparm_query=active=true

DAL850A duuapdrkroora01 16,384 1.00 1 OraProc
| 1484595847 |
+----+--------+------------+---------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+
1 row in set (0.01 sec)

mysql.log.gz (2,316 bytes)
mysql_vars.gz (3,906 bytes)
atrol

atrol

2017-01-16 15:52

developer   ~0055164

[Mon Jan 16 13:37:21.915537 2017] [core:notice] [pid 21627000:tid 1] AH00052: child pid 31260826 exit signal Segmentation fault (11)

Where did you see this?
Are you sure this is a database but not a webserver/PHP problem?

There a some known issues in PHP 5.5.17 on some platforms in some of the functions (dealing with regular expressions) where I think they might cause the issue.
I don't have access to AIX.

I recommend to try a newer PHP version.

It seems at the moment that there is hardly any thing we can do for you in MantisBT.

AeXiPHiXiON

AeXiPHiXiON

2017-01-18 14:22

reporter   ~0055214

it was a php issue. updated php to 7.0.13 and it is resolved.

AeXiPHiXiON

AeXiPHiXiON

2017-01-18 14:24

reporter   ~0055215

i did try php 7.1 but that broke mantisbt completely.

atrol

atrol

2017-01-18 14:51

developer   ~0055216

it was a php issue. updated php to 7.0.13 and it is resolved.

Thanks for the feedback

i did try php 7.1 but that broke mantisbt completely.

PHP 7.1.0 is quite new and it will certainly take some time until it can be used in production environment.

There are also some incompatible changes in PHP 7.1 that will be fixed in future Mantis version, e.g.
https://github.com/mantisbt/mantisbt/commit/da85ef7e7e3da3472b709a0f05f2dfc741036914

AeXiPHiXiON

AeXiPHiXiON

2017-01-20 16:15

reporter   ~0055243

Upgrading to 7.0.14-2 also breaks it with this error. no other rpms were changed. rolling back to 7.0.13 fixes it and continues to work with no issues. php binary rpms for AIX downloaded from bull.com

Invalid form security token. This could be caused by a session timeout, or accidentally submitting the form twice