candlepin/candlepin — pull request #688 by cakofony (2014-08-13 16:27:05+00:00)
Title: 1129740: truncate long facts

Prod is getting some exceptions where subman is reporting a fact that's too long for the db column. Subman should probably do some checking there, but rather than ship out a bunch of new submen, we can just truncate the value server-side, and continue with our update normally.

Keys and values with length > 255 are truncated to length 252, and end with "..." so we can tell that there may have been some data lost. This way we lose 252 less characters than failing an update.