ironjan / klausurtool-ror

Previous Klausurtool of the FSMI UPB.
Apache License 2.0
2 stars 0 forks source link

Incorrect "Verleih-Formular kann nicht ohne Ordner aufgerufen werden." on every lending process #234

Closed sandwm closed 7 years ago

sandwm commented 7 years ago

When you try to lend a folder from the lending start page, you always get the error message from the issue title. This prevents using the tool for lending.

System log:

Feb 10 15:53:39 fsmi-relentless docker[23745]: => Booting WEBrick
Feb 10 15:53:39 fsmi-relentless docker[23745]: => Rails 5.0.0 application starting in production on http://2001:638:502:1875:da:0:205:1:3000
Feb 10 15:53:39 fsmi-relentless docker[23745]: => Run `rails server -h` for more startup options
Feb 10 15:53:39 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:39.949202 #7]  INFO -- : Started POST "/internal/ausleihe/switch" for 2001:638:502:31:250:56ff:feae:623c at 2017-02-10 14:53:39 +0000
Feb 10 15:53:39 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:39.964194 #7]  INFO -- : Processing by AusleiheController#switch as HTML
Feb 10 15:53:39 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:39.964277 #7]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"REDACTED", "folderList"=>"00019828\r\n", "commit"=>"(W)eiter"}
Feb 10 15:53:39 fsmi-relentless docker[23745]: D, [2017-02-10T14:53:39.975779 #7] DEBUG -- : Got switch request containing 1 elements.
Feb 10 15:53:39 fsmi-relentless docker[23745]: D, [2017-02-10T14:53:39.975830 #7] DEBUG -- :  `00019828` is 8 chars long. barcode_id will be 1982.
Feb 10 15:53:39 fsmi-relentless docker[23745]: D, [2017-02-10T14:53:39.986007 #7] DEBUG -- :   OldFolderInstance Load (0.4ms)  SELECT  `old_folder_instances`.* FROM `old_folder_instances` WHERE `old_folder_instances`.`barcodeId` = '1982' LIMIT 1
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.016092 #7]  INFO -- : Redirected to http://ausleihe.fachschafts.website/internal/ausleihe/lending_form?old_folder_instances%5B%5D=124
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.016368 #7]  INFO -- : Completed 302 Found in 52ms (ActiveRecord: 2.2ms)
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.077794 #7]  INFO -- : Started GET "/internal/ausleihe/lending_form?old_folder_instances%255B%255D=124" for 2001:638:502:31:250:56ff:feae:623c at 2017-02-10 14:53:40 +0000
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.079023 #7]  INFO -- : Processing by AusleiheController#lending_form as HTML
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.079068 #7]  INFO -- :   Parameters: {"old_folder_instances%5B%5D"=>"124"}
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.079911 #7]  INFO -- : Redirected to http://ausleihe.fachschafts.website/internal/ausleihe
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.080055 #7]  INFO -- : Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.122431 #7]  INFO -- : Started GET "/internal/ausleihe" for 2001:638:502:31:250:56ff:feae:623c at 2017-02-10 14:53:40 +0000
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.123260 #7]  INFO -- : Processing by AusleiheController#index as HTML
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.126260 #7]  INFO -- :   Rendering ausleihe/index.html.erb within layouts/ausleihe
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.128498 #7]  INFO -- :   Rendered ausleihe/index.html.erb within layouts/ausleihe (2.1ms)
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.131562 #7]  INFO -- :   Rendered application/_js_and_midori_warning.html.erb (0.4ms)
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.133406 #7]  INFO -- :   Rendered application/_flashes.html.erb (0.4ms)
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.134736 #7]  INFO -- :   Rendered application/_footer.html.erb (0.4ms)
Feb 10 15:53:40 fsmi-relentless docker[23745]: I, [2017-02-10T14:53:40.135045 #7]  INFO -- : Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.0ms)
ironjan commented 7 years ago

Issue only seems to occur on production system. Moving further investigation to email.

sandwm commented 7 years ago

Fixed. (Issue in production system.)

ironjan commented 7 years ago

Nice. Can you send me the issue per mail? For documentation and perhaps even adding to README.