Make sure function 'and' gets a caller promise, add acceptance test

Close #3173
(cherry picked from commit 27dadebac2165998102bf7c0c6f65abd04aba417)
In parser, do not assert on unknown promise types when parsing constraints.

Close #3194
(cherry picked from commit b09d54040349167dddd3b66843f1e06ddd6abd4a)
fix for bug #3097 - include file_lib.h in process_solaris.c to resolve build error on solaris 10
(cherry picked from commit c7cf044c4744cb0821b4950270eb92847b4d88ca)
Fixes redmine #2988 otrs #1221. Get rid of special chars in debian6/7's /etc/issue
(cherry picked from commit d14546ecd714f0a49b090fd39ace3da83252af21)
Fixes segfault due to sscanf not size limited (redmine #2912)
(cherry picked from commit be1256d5b578de485a217355914fd9fa0f8bd9a2)
Add StringNotMatchingSetCapped as a replacement of size/exclude-list restricted sscanf
(cherry picked from commit bda357cc2210b7d3671fc08ce9a217e3326fd998)
Fixes redmine #2626 getindices should not truncate its keys beyound 127 chars
(cherry picked from commit 08d2b05a2f9e46cb4608712077e94307ab77c4a7)
Fixes redmine #2698 strings larger than 2048 and up to 4096 can be added to files
(cherry picked from commit 8bfc16f3729c50e4d7299a6e8b229ce07167305c)
fix build. put the right function name in unit test src_test
(cherry picked from commit 891db044799699a4931d832c05515d1892df84d7)
Update changes with 3.5.2 fixes