Skip to content

500 on "Organization's census"  #5529

@andreslucena

Description

@andreslucena

Describe the bug
As an admin user, when I upload a CSV file through the "Organization's census" on /admin/csv_census/ I get a 500 error with the following log:

To Reproduce
Steps to reproduce the behavior:

  1. Log in as admin user
  2. Go to /admin/csv_census/
  3. Upload CSV file with any data
  4. Click on "Upload file"
  5. See error

Expected behavior
To not have a 500

Screenshots
N/A

Stacktrace

I, [2019-11-18T12:27:50.447143 #1423]  INFO -- : [318c4de3-ba05-40c5-a531-3dc1fee9c38b] Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
F, [2019-11-18T12:27:50.448442 #1423] FATAL -- : [318c4de3-ba05-40c5-a531-3dc1fee9c38b]   
F, [2019-11-18T12:27:50.448488 #1423] FATAL -- : [318c4de3-ba05-40c5-a531-3dc1fee9c38b] NoMethodError (undefined method `email_regexp' for Decidim::Devise:Module):
F, [2019-11-18T12:27:50.448514 #1423] FATAL -- : [318c4de3-ba05-40c5-a531-3dc1fee9c38b]   
F, [2019-11-18T12:27:50.448561 #1423] FATAL -- : [318c4de3-ba05-40c5-a531-3dc1fee9c38b] /decidim-verifications/app/models/decidim/verifications/csv_census/data.rb:32:in `process_row'
[318c4de3-ba05-40c5-a531-3dc1fee9c38b] /decidim-verifications/app/models/decidim/verifications/csv_census/data.rb:24:in `block in initialize'

Extra data (please complete the following information):

  • Device: N/A
  • Device OS: N/A
  • Browser: N/A
  • Decidim Version: 0.19 and 0.20.dev
  • Decidim installation: Try Decidim

Additional context
https://gitter.im/decidim/decidim?at=5dd3c5d650010612b2e6f626

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions