NCEAS / morpho

Morpho metadata editor
GNU General Public License v2.0
3 stars 1 forks source link

Morpho is frozen when it connects a Metacat running on Ubuntu 12.04 #1052

Closed mbjones closed 6 years ago

mbjones commented 6 years ago

Author Name: Jing Tao (Jing Tao) Original Redmine Issue: 6431, https://projects.ecoinformatics.org/ecoinfo/issues/6431 Original Date: 2014-02-27 Original Assignee: Jing Tao


In that method, the msg.sendPostData is called three times. If the first time fails, the second time will be tried. If the second time fails, the third time will be tried. When I debugged an issue which morpho has a connection issue with metacat, this method sometimes causes Morpho frozen - the second trying never threw an exception, just hanged there.

Of course, Morpho 2.x doesn't use the method any more. If we still continue to support morpho 1.x, we need fix the issue.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2014-04-18T17:45:52Z


In the Morpho and HttpMessage classes, code that handle variables with null value and exceptions were added. Now it works. Close the bug.