We return back the sensitive information to user
when some exceptions happened, for example,
when DBError happened, we return the whole sql
statement to user, it's not safe.
This patch changes to return the message if the
exception is the HeatException, otherwise the message
won't be revealed to user.
Reviewed: https:/ /review. openstack. org/490320 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=8cdfc3b2930 27292d21974b815 2f42426d1f61ae
Committed: https:/
Submitter: Zuul
Branch: master
commit 8cdfc3b29302729 2d21974b8152f42 426d1f61ae
Author: huangtianhua <email address hidden>
Date: Thu Aug 3 11:56:11 2017 +0800
Don't return the sensitive information to user
We return back the sensitive information to user
when some exceptions happened, for example,
when DBError happened, we return the whole sql
statement to user, it's not safe.
This patch changes to return the message if the
exception is the HeatException, otherwise the message
won't be revealed to user.
Change-Id: I6e01b1003a3910 6274e79c3b41391 7a30b5651b6
Closes-Bug: #1708122