プロジェクト

全般

プロフィール

Vote #72840

完了

Validation fails when receiving an email with list custom fields

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email receiving_29
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
29
version_id:
62
issue_org_id:
12400
author_id:
67096
assigned_to_id:
1
comments:
9
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Hi,
Sorry for my very bad english.

After upgrade Redmime from version 1.2.0 to version 2.1.2 incoming mails with Issue Custom Field failed with this error:
Validation failed: is not included in the list
Example:
Validation failed: Departamento Solicitante is not included in the list

In incoming mail I have this fields:

Fecha Solicitud: 2012-11-19
Tracker: Cambio
Departamento Solicitante: COMERCIAL
Project: solcambio

Except "Project", other fields are "custom field".

Thanks for your help.


journals

Sorry, this is my environment:
About your application's environment
Ruby version 1.8.7 (i686-linux)
RubyGems version 1.6.2
Rack version 1.4
Rails version 3.2.8
Active Record version 3.2.8
Action Pack version 3.2.8
Active Resource version 3.2.8
Action Mailer version 3.2.8
Active Support version 3.2.8
Middleware Rack::Cache, ActionDispatch::Static, Rack::Lock, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x75c4c50>, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport, OpenIdAuthentication
Application root /opt/redmine-it/apps/redmine/htdocs
Environment production
Database adapter mysql
Database schema version 20120731164049

With Redmine 2.1.2 (Bitnami stack version).
--------------------------------------------------------------------------------
Sorry for my very bad english.
More data to problem:
Validation of custom fields only fail with custom field type "list".
All others custom fields are validated fine.

Thanks for any help.
--------------------------------------------------------------------------------
What are the exact valid values for this custom field?
--------------------------------------------------------------------------------
Hi,
Sorry for my very bad english.
For custom field of example provided, those are valid values:
ADMINISTRACION
COMERCIAL
COMPRAS
CG
DIRECCION
DISEÑO
DISTRIBUCION
FABRICACION
I+C
INFORMATICA
INVENTARIOS
LOGISTICA
RRHH
RSC
SSGG

Custom field validation failed with all my list type custom fields (on version "pre-upgrade" 1.2.0 validations works fine). All other types of custom fields are correctly validated.

Redmine is installed in Spanish Language.
Environment:
Redmine version 2.1.2.stable
Ruby version 1.8.7 (i686-linux)
Rails version 3.2.8
Environment production
Database adapter MySQL
Redmine plugins:
no plugin installed

Thanks for your help.
Diego
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Sorry for my very bad english.
More data: ON A CLEAN INSTALLATION FAILS TOO.

Is not issue with updated installation. I had installed a new Bitnami-Redmine Stack with ultimate version (2.1.4) on linux environment and incoming e-mail with custom field fails with "validation failed".
***
Validation failed: Departamento Solicitante is not included in the list, Area BI is not included in the list
***

Environment:
New and clean installation of Bitnami Redmine Stack 2.1.4 for linux (x86) in Spanish Language
Environment:
Redmine version 2.1.4.stable
Ruby version 1.9.3 (i686-linux)
Rails version 3.2.8
Environment production
Database adapter Mysql2
Redmine plugins:
no plugin installed

After installation:
Create user.
Change "Enumerations"->"Issue priorities" values. (1-Alta, 2-Media alta, 3-Media baja, 4-Baja, No priorizado).
Create "Custom fields" Issue(screenshoot atached): Departamento Solicitante (list), Area BI (list), Fecha Solicitud (date).
Create "Custom fields" Project (screenshoot atached): Departamento Solicitante (list).
Create tracker "cambio" with custom field "Departamento Solicitante".
Create project "Solicitud cambio" (solcambio) With tracker cambio and custom fields "Departamento solicitante", "Area BI" and "Fecha solicitud". Only module "issue tracking" and member user created.

Send e-mail to Redmine box with custom fields:
Fecha Solicitud: 2012-11-19
Tracker: Cambio
Departamento Solicitante: COMERCIAL
Project: solcambio
Area BI: NO

Received with imap:

rake -f /redmine_path/apps/redmine/htdocs/Rakefile --silent redmine:email:receive_imap RAILS_ENV=production host=mailserver username=my_user password=my_password project=solcambio allow_override=tracker,priority,status,project

And production.log says:
***
Connecting to database specified by database.yml
OpenIdAuthentication.store is nil. Using in-memory store.
Validation failed: Departamento Solicitante is not included in the list, Area BI is not included in the list

Any help?
Thanks.
Diego Fernández
--------------------------------------------------------------------------------
I was able to reproduce. The problem was specific to list custom fields and it's fixed in r10992 with test added.
Thanks for pointing this out.
--------------------------------------------------------------------------------
Thanks for your help.
I applied path r10992 and incoming mail is working fine.

--------------------------------------------------------------------------------
Thanks for the feedback, fix merged in 2.1 and 2.2 stable branches.
--------------------------------------------------------------------------------


related_issues

relates,New,12471,Cannot dissallow field overriding ?

Admin Redmine さんが3年以上前に更新

  • カテゴリEmail receiving_29 にセット
  • 対象バージョン2.1.5_62 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0