NCEAS / metacat

Data repository software that helps researchers preserve, share, and discover data
https://knb.ecoinformatics.org/software/metacat
GNU General Public License v2.0
27 stars 13 forks source link

XML document is a string in HttpServerletRequest object #217

Closed mbjones closed 3 years ago

mbjones commented 6 years ago

Author Name: Jing Tao (Jing Tao) Original Redmine Issue: 1122, https://projects.ecoinformatics.org/ecoinfo/issues/1122 Original Date: 2003-07-29 Original Assignee: Jing Tao


When morpho or loadxml.html in metacat upload a xml document to metacat, it allways stores the xml document in a parameter named "doctext". Servelet will store this parameter name and value (xml documentment itself) into a hashtable. And xml document will be stored as a String in memory. So if xml document is big ( huge inline data in eml2 document), it will cause memory problem.

The option we can choose is, using a stream (or reader) connecting client side and servlet directly, rather than transfer the xml document to a string. Our SAX parser wil parse the stream.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Redmine Admin (Redmine Admin) Original Date: 2013-03-27T21:16:17Z


Original Bugzilla ID was 1122