Project

General

Profile

Actions

Bug #1750

closed

xmera Omnia - Collection #1753: Bug fixes for diverse modules

An ActionView::Template::Error occurred in issue_sync#new

Added by liaham over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Affected Version:
Compatible Redmine Version:

Description

๐Ÿ› Thanks for taking the time to fill out this bug report! ๐Ÿ˜Š

What did you expect?

In this case I had created an new object based on an object class where the issue sync module is enabled but not configured. As soon as I try to sync under these circumstances nothing happend after clicking the sync menu item. I would expect that I will get a message due to a missing configuration.

What has happened instead?

Nothing happened instead. In background an exception was raised and send via email. This is the error message:

An ActionView::Template::Error occurred in issue_sync#new:

  undefined method `delete_if' for nil:NilClass

    @filter = sync_param.filter.delete_if(&:blank?)
                               ^^^^^^^^^^
  plugins/redmine_issue_sync/app/validators/issue_sync_requirements_validator.rb:117:in `filter'

What could be a possible solution?

Fix the nil error with:

#plugins/redmine_issue_sync/app/validators/issue_sync_requirements_validator.rb:117
@filter = sync_param.filter&.delete_if(&:blank?)

How can we reproduce the problem?

See above

In what environment are you running the plugin?

Please copy and paste your environment information as displayed in Administration ยป Information or run bin/about in the root dir of your Redmine instance.

xmera Omnia 4.1.0 (2023-09-07)
Environment:
    Redmine version                5.0.5.stable
    Ruby version                   3.1.4-p223 (2023-03-30) [x86_64-linux-musl]
    Rails version                  6.1.7.4
    Environment                    development
    Database adapter               PostgreSQL
    Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
    Mailer delivery                smtp

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari

Relevant log output

# Copy your log output (log/production.log) here

--not necessary--

Actions #1

Updated by liaham over 1 year ago

  • Project changed from xmera Omnia to Redmine Issue Sync
  • Category deleted (30)
  • Target version changed from 4.1.1 to unreleased
  • Parent task set to #1753
  • Affected component deleted (redmine-issue-sync)
  • Affected Version 0.1.13 added
  • Affected Version deleted (4.1.0)
Actions #2

Updated by liaham over 1 year ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by liaham over 1 year ago

  • Target version changed from unreleased to 0.1.14
Actions

Also available in: Atom PDF