[racktables-users] Re: Problem creating 802.1q template rule

  • From: Alexey Andriyanov <alan-74@xxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Wed, 30 Mar 2011 11:37:41 +0400

Please apply the attached patch and try again. It will not fix the issue, but the error message should be more informative. Then post the error message here. Thanks for your help in finding this bug.


29.03.2011 17:34, Jens Rosenboom wrote:
Every time I try to create a rule for my 802.1q template, I get the error:

Argument 'template_json' of value '(omitted)' is invalid (Invalid JSON code 
received from client).

RT version is 0.19.2, how can I debug this?



Index: inc/functions.php
===================================================================
--- inc/functions.php   (revision 4403)
+++ inc/functions.php   (working copy)
@@ -341,7 +341,7 @@
        case 'json':
                assertStringArg ($argname);
                if (NULL === json_decode ($sic[$argname], TRUE))
-                       throw new InvalidRequestArgException ($argname, 
'(omitted)', 'Invalid JSON code received from client');
+                       throw new InvalidRequestArgException ($argname, 
$sic[$argname], 'Invalid JSON code received from client');
                break;
        case 'array':
                if (! array_key_exists ($argname, $_REQUEST))

Other related posts: