BIND 10 #1626: Error: Unable to parse response from Auth: Expecting , delimiter: line 1 column 87 (char 87)

BIND 10 Development do-not-reply at isc.org
Mon Apr 2 06:56:12 UTC 2012


#1626: Error: Unable to parse response from Auth: Expecting , delimiter: line 1
column 87 (char 87)
-------------------------------------+-------------------------------------
                   Reporter:  jreed  |                 Owner:  muks
                       Type:         |                Status:  reviewing
  defect                             |             Milestone:
                   Priority:         |  Sprint-20120403
  medium                             |            Resolution:
                  Component:         |             Sensitive:  0
  b10-auth                           |           Sub-Project:  DNS
                   Keywords:         |  Estimated Difficulty:  2
            Defect Severity:         |           Total Hours:  0
  Medium                             |
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------

Comment (by muks):

 Hi jelte

 The escaping in `str_from_stringstream()` now looks OK. I've added a few
 more testscases to the branch, some of which fail. Please look at these:

 {{{
     // Can't have escaped quotes outside strings
     EXPECT_THROW(Element::fromJSON("\\\"\\\""), JSONError);
     // Inside strings is OK
     EXPECT_NO_THROW(Element::fromJSON("\"\\\"\\\"\""));
     // String not terminated
     EXPECT_THROW(Element::fromJSON("\"hello"), JSONError);
     // Bad string
     EXPECT_THROW(Element::fromJSON("hello\"foobar\""), JSONError);
     // A whitespace test
     EXPECT_NO_THROW(Element::fromJSON("  \n  \r \t  \n \n    \t"));

 }}}

-- 
Ticket URL: <http://bind10.isc.org/ticket/1626#comment:16>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list