Fixed issue #1457: Comprehensive LDAP settings are to big for the DelayedJobs database table.
This commit is contained in:
parent
378d19c691
commit
aeb1feb826
2 changed files with 7 additions and 3 deletions
|
@ -30,15 +30,19 @@ module Integration::ImportJobBase
|
||||||
end
|
end
|
||||||
|
|
||||||
def payload_dry_run
|
def payload_dry_run
|
||||||
params
|
clean_payload(params.permit!.to_h)
|
||||||
end
|
end
|
||||||
|
|
||||||
def payload_import
|
def payload_import
|
||||||
import_setting
|
clean_payload(import_setting)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def clean_payload(payload)
|
||||||
|
payload.except(:wizardData, :action, :controller)
|
||||||
|
end
|
||||||
|
|
||||||
def answer_with
|
def answer_with
|
||||||
result = yield
|
result = yield
|
||||||
render json: result.merge(result: 'ok')
|
render json: result.merge(result: 'ok')
|
||||||
|
|
|
@ -59,7 +59,7 @@ class Integration::ExchangeController < ApplicationController
|
||||||
# currently a workaround till LDAP is migrated to Sequencer
|
# currently a workaround till LDAP is migrated to Sequencer
|
||||||
def payload_dry_run
|
def payload_dry_run
|
||||||
{
|
{
|
||||||
ews_attributes: params[:attributes],
|
ews_attributes: params[:attributes].permit!.to_h,
|
||||||
ews_folder_ids: params[:folders],
|
ews_folder_ids: params[:folders],
|
||||||
ews_config: {
|
ews_config: {
|
||||||
endpoint: params[:endpoint],
|
endpoint: params[:endpoint],
|
||||||
|
|
Loading…
Reference in a new issue