ФИКС_отображаение данных на детали права доступа к рабочим местам мобильного приложения
Симптомы
Message: Запрос на сервер вернул ошибку
AdditionalInfo: {"request":{"id":18,"headers":{"X-Terrasoft-Mobile":"true","Accept":"application/json","Content-Type":"application/json","Authorization":"Cookie","X-Requested-With":"XMLHttpRequest"},"options":{"url":"http://xxx.xxxxx.xxxxx/0/Mobile/Services/MobileCodeService.ashx?functio…","scope":{"asyncOperation":{"initialConfig":{},"config":{},"_isCancelable":true,"asyncManagerIsDisabled":true},"initialConfig":{"url":"http://xxx.xxxxx.xxxxx/0/Mobile/Services/MobileCodeService.ashx?functio…","headers":{"X-Terrasoft-Mobile":"true","Accept":"application/json","Content-Type":"application/json","Authorization":"Cookie"},"method":"GET","disableCaching":false},"performanceCounterKey":"db7a27d6-eb6f-4e84-b32a-e0f21b3e0c73"},"headers":{"X-Terrasoft-Mobile":"true","Accept":"application/json","Content-Type":"application/json","Authorization":"Cookie"},"method":"GET","disableCaching":false},"async":true},"requestId":18,"status":500,"statusText":"Internal Server Error","responseText":"System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта.\r\n в Terrasoft.Mobile.MobileUtilities.GetImageListItems(CultureInfo culture, String workplaceCode)\r\n в Terrasoft.Mobile.MobileUtilities.GetStructureElement(HttpContextBase context)\r\n в Terrasoft.WebApp.Mobile.Services.MobileCodeService.ProcessRequest(HttpContext context)","responseXML":null,"responseBytes":null}
Stack trace:
Причина
Не отображаются права на рабочие места мобильного приложения
Решение
1) создать в пакете Custom sql скрипт
2) скопировать туда этот текст
3) сохранить
4) нажать кнопку применить в БД
Текст запроса:
UPDATE [SysProfileData] SET [ObjectData] = 0x7B224461746147726964223A7B2274696C6564436F6E666967223A227B5C22677269645C223A7B5C22726F77735C223A312C5C22636F6C756D6E735C223A32347D2C5C226974656D735C223A5B7B5C2262696E64546F5C223A5C22537973526F6C652E4E616D655C222C5C2263617074696F6E5C223A5C22526F6C652E4E616D655C222C5C22747970655C223A5C22746578745C222C5C22706F736974696F6E5C223A7B5C22636F6C756D6E5C223A302C5C22636F6C5370616E5C223A32302C5C22726F775C223A317D2C5C226461746156616C7565547970655C223A312C5C226167677265676174696F6E547970655C223A5C225C222C5C2269734261636B776172645C223A66616C73652C5C226D65746143617074696F6E506174685C223A5C22526F6C652E4E616D655C222C5C226D657461506174685C223A5C22537973526F6C652E4E616D655C222C5C22706174685C223A5C22537973526F6C652E4E616D655C222C5C2273657269616C697A656446696C7465725C223A5C227B5C5C5C22636C6173734E616D655C5C5C223A5C5C5C225465727261736F66742E46696C74657247726F75705C5C5C222C5C5C5C226974656D735C5C5C223A7B7D2C5C5C5C226C6F676963616C4F7065726174696F6E5C5C5C223A302C5C5C5C226973456E61626C65645C5C5C223A747275652C5C5C5C2266696C746572547970655C5C5C223A362C5C5C5C226B65795C5C5C223A5C5C5C225C5C5C227D5C222C5C2263617074696F6E436F6E6669675C223A7B5C2276697369626C655C223A66616C73657D7D5D7D222C226C6973746564436F6E666967223A227B5C226974656D735C223A5B5D7D222C226B6579223A225379734D6F62696C65576F726B706C61636550616765537973526F6C65496E4D6F62576F726B706C61636544657461696C222C22697354696C6564223A747275652C2274797065223A2274696C6564227D2C226973436F6C6C6170736564223A66616C73652C2274696C6564436F6C756D6E73436F6E666967223A227B7D222C226C6973746564436F6C756D6E73436F6E666967223A227B7D222C226B6579223A225379734D6F62696C65576F726B706C61636550616765537973526F6C65496E4D6F62576F726B706C61636544657461696C227D WHERE [Key] LIKE '%SysRoleInMobWorkplaceDetail%'