More on this bug starting on this thread:
http://www.mail-archive.com/[email protected]/msg03379.html

Javier's response
http://www.mail-archive.com/[email protected]/msg04252.html

To reproduce the bug, edit a host, save the host, and try to edit a host
again. It will respond with "Admin Structure Not Found". (Reproducible
with Zones also, perhaps others areas too.)

Interestingly, this appears to be working in the Debian
jffnms-0.8.3dfsg.1-7.1 package, but fails in the 0.8.5rc1 tarball.
Perhaps a regression?

It seems that when a POST is performed that the admin_structure gets
lost and is expected in $_GET later.  So, if $_GET is missing the entry,
I assume it is in $_POST and update $_GET.  See the 2-liner below.

Test this patch well---it works for me.  

Now, back to the RFC3877 plugin.

-Eric



--- htdocs/admin/adm/structures.php     2009-01-15 20:47:19.000000000 -0800
+++ /opt/jffnms/htdocs/admin/adm/structures.php 2010-04-10 18:21:22.000000000 
-0700
@@ -737,7 +737,8 @@
             NULL)
     );
 
-       
+       if (!$_GET['admin_structure'])
+               $_GET['admin_structure'] = $_POST['admin_structure'];
 
     if ($admin_structure=="list_all") { 
        foreach (array_keys($structures) as $aux) 







------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to