Загрузить изображение для проекта: 'Citeck Community'
  1. Citeck Community
  2. ECOSCOM-3690

Custom Actions. Error messages from backend contains technical information.

    XMLWordДля печати

Детали задачи

    • Icon: Ошибка Ошибка
    • Решение: Готово
    • Icon: Medium Medium
    • Community 3.19.1
    • Community 3.19.1
    • Не заполнено
    • Major

    Описание

      Шаги:

      1. Отправить не корректны запрос на любой вебскрипт и вызвать ошибку

      Пример конфигурации вебскрипта:

      <webscript>
          <shortname>get nodes to sign</shortname>
          <url>/citeck/test/finance/sign/nodes-to-sign?caseRef={caseRef}&amp;transition={transition}&amp;comment={comment}&amp;methodToGet={methodToGet?}&amp;factArrivalDate={factArrivalDate?}</url>
          <format default="json"/>
          <authentication>user</authentication>
          <transaction>required</transaction>
          <lifecycle>public_api</lifecycle>
      </webscript>

      При запросе будет возвращаться ошибка содержащие в конце (classpath:alfresco/templates/webscripts/ru/citeck/….)*

      {
          "status": {
              "code": 500,
              "name": "Internal Error",
              "description": "An error inside the HTTP server which prevented it from fulfilling the request."
          },
          "message": "Пожалуйста, заполните комментарий (classpath*:alfresco/templates/webscripts/ru/citeck/test/finance/sign/nodes-to-sign.get.js#490)",
          "originalMessage": "05050704 Wrapped Exception (with status template): Пожалуйста, заполните комментарий (classpath*:alfresco/templates/webscripts/ru/citeck/test/finance/sign/nodes-to-sign.get.js#490)",
          "exception": "",
          "callstack": [],
          "server": "Enterprise v5.1.3 (.3 r136879-b22) schema 9 056",
          "time": "05.06.2020 12:50:14"
      }

      Вложенные файлы

        Активность

          Люди

            pavel.simonov@citeck.ru Pavel Simonov
            aleksey.zaytsev Aleksey Zaytsev [X] (Неактивный)
            Голоса:
            0 Голосовать за эту задачу
            Наблюдатели:
            1 Начать наблюдение за этой задачей

            Даты

              Создано:
              Обновленo:
              Дата решения:

              Учет времени

                Оценка:
                Первоначальная оценка - 1 час
                1h
                Осталось:
                0m
                Затрачено:
                Незатраченное время
                Не определено