csm-aut / csm

This repository contains Cisco Software Manager (CSM Server) source code
Apache License 2.0
11 stars 7 forks source link

data column in host_context table truncation #39

Closed csm-aut closed 7 years ago

csm-aut commented 7 years ago

Previously, the field is of type TEXT. In some situations, it is not long enough to persist the data. When this happens, the data is truncated and the json.load() failed. The fix is to change the column to MEDIUMTEXT and provide try-catch block in case of load() failure. This should not happen after the column type is changed.