Prevent logging of result of resources.string() method call
The result of resources.string() method is the content of the file
saved to string. Logging of binary file content causes
UnicodeDecode error. Moreover, logging of any file content can be
security issue. Finally, it is just not practical to fill the logs
with tons of text from the big files.
Reviewed: https:/ /review. openstack. org/370093 /git.openstack. org/cgit/ openstack/ murano/ commit/ ?id=ce8e2ec37ae fdd52a6953d9b1d 55b2ce540fd2a2
Committed: https:/
Submitter: Jenkins
Branch: master
commit ce8e2ec37aefdd5 2a6953d9b1d55b2 ce540fd2a2
Author: Valerii Kovalchuk <email address hidden>
Date: Wed Sep 14 15:18:40 2016 +0300
Prevent logging of result of resources.string() method call
The result of resources.string() method is the content of the file
saved to string. Logging of binary file content causes
UnicodeDecode error. Moreover, logging of any file content can be
security issue. Finally, it is just not practical to fill the logs
with tons of text from the big files.
Change-Id: I87077b002f2a88 88c22b4dfba1f7b 9f0508fec69
Closes-bug: #1561522