nabeta/enju_ndl — Issue #1: NBN 21816393 fails /ndl_books and can not import from PORTA
Author: chonan
Created: 2011-11-30 09:48:03+00:00
State: open

When trying import from PORTA, some book break validation.
Below is log produced on my environment ( production.log ).

Started POST "/ndl_books?book%5Bnbn%5D=21816393" for 192.168.108.1 at 2011-11-30 18:05:47 +0900
Processing by NdlBooksController#create as HTML
Parameters: {"authenticity_token"=>"ccnOKL1k1lZwbcpbgLEoU3CYmMgzf1422DYSYczTvuE=", "book"=>{"nbn"=>"21816393"}}
Completed 422 Unprocessable Entity in 2505ms

ActiveRecord::RecordInvalid (バリデーションに失敗しました。 Work はすでに存在し ます。):

2011-11-30 18:05:53 +0900 sent 0 messages!

This phenomena can be re-produced on
http://enju.herokuapp.com/
and
http://enju2.slis.keio.ac.jp/ .

To re-produce login as 'admin', trying import PORTA with query '21816393'.