Project

General

Profile

Actions

Defect #12400

closed

Validation fails when receiving an email with list custom fields

Added by Diego Fernández about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Category:
Email receiving
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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: <My_Defined_Custom_Field> 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.


Files

Custom field-Issues-Area BI.png (15.7 KB) Custom field-Issues-Area BI.png Custom field-Issues-Area BI Diego Fernández, 2012-12-12 15:33
Custom field-Issues-Departamento Solicitante.png (20.3 KB) Custom field-Issues-Departamento Solicitante.png Custom field-Issues-Departamento Solicitante Diego Fernández, 2012-12-12 15:33
Custom field-issues-Fecha solicitud.png (10.7 KB) Custom field-issues-Fecha solicitud.png Custom field-Issues-Fecha Solicitud Diego Fernández, 2012-12-12 15:33
Custom field-Projects-Departamento.png (18.8 KB) Custom field-Projects-Departamento.png Custom field-Projects-Departamento Diego Fernández, 2012-12-12 15:33

Related issues

Related to Redmine - Defect #12471: Cannot dissallow field overriding ?New

Actions
Actions #1

Updated by Diego Fernández about 12 years ago

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).

Actions #2

Updated by Diego Fernández about 12 years ago

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.

Actions #3

Updated by Jean-Philippe Lang about 12 years ago

What are the exact valid values for this custom field?

Actions #4

Updated by Diego Fernández almost 12 years ago

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

Actions #5

Updated by Toshi MARUYAMA almost 12 years ago

  • Category set to Email receiving
Actions #6

Updated by Diego Fernández almost 12 years ago

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

Actions #7

Updated by Jean-Philippe Lang almost 12 years ago

  • Subject changed from Mail incoming failed after upgrade to Validation fails when receiving an email with list custom fields
  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Target version set to 2.1.5
  • Resolution set to Fixed

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.

Actions #8

Updated by Diego Fernández almost 12 years ago

Thanks for your help.
I applied path r10992 and incoming mail is working fine.

Actions #9

Updated by Jean-Philippe Lang almost 12 years ago

  • Status changed from Resolved to Closed

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

Actions

Also available in: Atom PDF