All of lore.kernel.org
 help / color / mirror / Atom feed
* [review-request] [PATCH] dreyna/dir_expand_7810
@ 2015-08-19  7:34 Reyna, David
  2015-08-19 11:25 ` Michael Wood
  0 siblings, 1 reply; 3+ messages in thread
From: Reyna, David @ 2015-08-19  7:34 UTC (permalink / raw)
  To: BARROS PENA, BELEN; +Cc: toaster@yoctoproject.org

Hi Belén,

I have pushed a fix for 7810:
   dreyna/dir_expand_7810

It is very strange. The problem was that the AJAX call in "dirinfo.html" expects the response data to be a JSON-formatted string, and uses "parseJSON()" to convert that into a JS object for display computation.

However, in debugging the code I found that the JS debugger recognized the "response" to now _already_ be a proper JS object, and the observed failure in the defect is that "parseJSON()" tries to convert it and immediately hits a syntax error. 

The fix is to simply skip the "parseJSON()", and now it all works. But I do not know why the AJAX operation changed, unless it was updated to take the JSON format indicator and perform the conversion automatically now, which would explain why it works the way it does.

In any case, I have kept a note in the the patch indicated how "parseJSON()" is no longer needed, in case someone in the future puzzles over this.

- David


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-19 14:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-19  7:34 [review-request] [PATCH] dreyna/dir_expand_7810 Reyna, David
2015-08-19 11:25 ` Michael Wood
2015-08-19 14:58   ` Reyna, David

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.