View Issue Details

IDProjectCategoryView StatusLast Update
0006178mantisbtreportspublic2020-11-26 02:38
Reporterjgueunie Assigned Tograngeway  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformPCOSwindows 2000OS Versionsp4
Product Version1.0.0rc1 
Target Version1.3.0-beta.1Fixed in Version1.3.0-beta.1 
Summary0006178: relationship graph is empty
Description

Mantis display an empty relation graph :
There is no image generated by wingraphiz.
There is no error message

It works on a nt4 server with easyphp 1.7 and the same version of wingraphviz

On the new server with win2K and easyphp 1.8 it doesn't work (I made the test on 3 pcs.)

Steps To Reproduce

Mantis setup
easyphp1.8
windows2000
wingraphviz 1.0.24
create bugs with relations ( child...)
display relation grpah

TagsNo tags attached.

Relationships

duplicate of 0005037 closedgrangeway No more rel. graphs with PHP 4.3.10 and Win2K 
related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 

Activities

jgueunie

jgueunie

2005-08-24 05:31

reporter   ~0011277

The wingraphviz COM object refuse to load with php 4.3.10.

the sript exit because the $t_graphviz is null after loading wingraphviz

graphviz_api.php line 292 :
$t_graphviz = new COM( $this->graphviz_com_module );

Check if we managed to instantiate the COM object.

if ( is_null( $t_graphviz ) ) {

We can't display any message or trigger an error on

failure, since we may have already sent a Content-type

header potentially incompatible with the any html output.

return;
}

There is no more after updating to php 4.4.0

mkornatzki

mkornatzki

2007-08-05 13:33

reporter   ~0015353

the problem with an empty (none image) still exist in version 1.1.0a4 if there is no relation between issues.

the following changes correct this behaviour:
edit core/graphviz_api.php

before:
if ( count( $this->nodes ) <= 1 )
return;

after:
#even if no relationship exists the graphic is now not corrupt and will show the issue itself
#if ( count( $this->nodes ) <= 1 )

return;

grangeway

grangeway

2010-08-14 14:38

reporter   ~0026316

Fixed by removing support for wingraphviz - just use the dot/neato exe's - see snapshot/commit @ http://git.mantisforge.org/w/mantisbt.git?a=commit;h=629a6760104e5f742ad54b5a765be78d4c42eef3

grangeway

grangeway

2013-04-05 17:57

reporter   ~0036497

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master 629a6760

2010-08-14 14:17

grangeway


Details Diff
Fix: 0005037
Fix: 0006620
Fix: 0006178
Fix: 0008694

Remove support for wingraphviz. If people don't want to allow IIS to access cmd.exe, it would probably
be more sensible to write a dotnet wrapper around graphviz (e.g. http://implicitoperator.com/blog/2009/12/24/rendering-an-in-memory-graphviz-image-with-c.html)

However, that still needs a medium/full trust environment in asp.net I believe.

Windows users can install graphviz by downloading, the MSI from graphviz.org, allowing access to cmd.exe to the php application pool in IIS, and modifying the dot/neato paths.
Affected Issues
0005037, 0006178, 0006620, 0008694
mod - core/graphviz_api.php Diff File
mod - config_defaults_inc.php Diff File