---
My watir tests only tested whether the limit of at most 5 queries is enforced (see watir test "should trigger the limitation after maximal 5 queries" in spec/smoketest_spec.rb.).
Now Zeno reported that requesting a new password via paypal does not work.
Used my account under ch.oddb.org to request a new password (via http://ch.oddb.org/de/gcc/password_lost/). Received a link like http://ch.oddb.org/de/gcc/password_reset/token/<a_has_value/email/user%40example.com. After setting the password and the confirmation I got redirected to a page containing Die von Ihnen gewünschte Information ist leider nicht mehr vorhanden.
Created a watir test for the password lost situation. It fails, because I get an Timeout::Error. On bin/oddbd I see
Non US-ASCII detected and no charset defined. Defaulting to UTF-8, set your own if this is incorrect. Util.send_mail rescue: error is #<Timeout::Error: Timeout::Error> recipients ["emails"] ["/var/www/oddb.org/src/util/mail.rb:91:in `send_mail'", "/var/www/oddb.org/src/state/admin/password_lost.rb:33:in `notify_user'", "/var/www/oddb.org/src/state/admin/password_lost.rb:22:in `password_request'", "/usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.6/lib/sbsm/state.rb:209:in `_trigger'", "/var/www/oddb.org/src/state/global.rb:972:in `_trigger'", "/usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.6/lib/sbsm/state.rb:198:in `trigger'", "/usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.6/lib/sbsm/session.rb:364:in `process'", "/var/www/oddb.org/src/util/session.rb:125:in `process'", "/usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.6/lib/sbsm/session.rb:172:in `block in drb_process'", "<internal:prelude>:10:in `synchronize'", "/usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.6/lib/sbsm/session.rb:171:in `drb_process'"] error in SBSM::Session#process: /de/gcc Timeout::Error Timeout::Error /usr/local/lib/ruby/1.9.1/net/protocol.rb:146:in `rescue in rbuf_fill' /usr/local/lib/ruby/1.9.1/net/protocol.rb:140:in `rbuf_fill' /usr/local/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil' /usr/local/lib/ruby/1.9.1/net/protocol.rb:132:in `readline' /usr/local/lib/ruby/1.9.1/net/smtp.rb:929:in `recv_response'
Fixed this error and now I see that the watir-test should download the results of a search
fails and get redirected to http://oddb-ci2.dyndns.org/resources/errors/appdown.html without any output on bin/oddbd, nor log/oddb/debug/2014/09.log
not in the javascript console. Why?
Started yusd also in a separte thread. There I get
I, [2014-09-18T14:21:10.720561 #24440] INFO -- start: starting yus-server on drbssl://localhost:9997 I, [2014-09-18T14:21:26.007449 #24440] INFO -- Yus::Server: Login attempt for ngiger@ywesee.com from oddb.org I, [2014-09-18T14:21:26.007933 #24440] INFO -- Yus::Server: Authentication succeeded for ngiger@ywesee.com D, [2014-09-18T14:21:26.069648 #24440] DEBUG -- Yus::EntitySession: allowed?(login, org.oddb.RootUser) D, [2014-09-18T14:21:26.071042 #24440] DEBUG -- Yus::EntitySession: allowed?(login, org.oddb.AdminUser) D, [2014-09-18T14:21:26.076047 #24440] DEBUG -- Yus::EntitySession: allowed?(login, org.oddb.PowerUser) D, [2014-09-18T14:21:26.077330 #24440] DEBUG -- Yus::EntitySession: allowed?(login, org.oddb.CompanyUser) D, [2014-09-18T14:21:26.078572 #24440] DEBUG -- Yus::EntitySession: allowed?(login, org.oddb.PowerLinkUser) D, [2014-09-18T14:21:26.104202 #24440] DEBUG -- Yus::AutoSession: get_entity_preference(name=ngiger@ywesee.com, key=association, domain=oddb.org) D, [2014-09-18T14:21:26.186677 #24440] DEBUG -- Yus::AutoSession: get_entity_preference(name=ngiger@ywesee.com, key=association, domain=oddb.org) D, [2014-09-18T14:21:26.189317 #24440] DEBUG -- Yus::AutoSession: get_entity_preference(name=ngiger@ywesee.com, key=association, domain=oddb.org) D, [2014-09-18T14:21:26.444492 #24440] DEBUG -- Yus::AutoSession: get_entity_preference(name=ngiger@ywesee.com, key=association, domain=oddb.org) D, [2014-09-18T14:21:26.447275 #24440] DEBUG -- Yus::AutoSession: get_entity_preference(name=ngiger@ywesee.com, key=association, domain=oddb.org) D, [2014-09-18T14:21:26.798927 #24440] DEBUG -- Yus::AutoSession: get_entity_preference(name=ngiger@ywesee.com, key=association, domain=oddb.org) D, [2014-09-18T14:21:26.801700 #24440] DEBUG -- Yus::AutoSession: get_entity_preference(name=ngiger@ywesee.com, key=association, domain=oddb.org) D, [2014-09-18T14:21:27.204189 #24440] DEBUG -- Yus::AutoSession: get_entity_preference(name=ngiger@ywesee.com, key=association, domain=oddb.org) D, [2014-09-18T14:21:27.205759 #24440] DEBUG -- Yus::EntitySession: allowed?(edit, org.oddb.drugs) D, [2014-09-18T14:21:27.213597 #24440] DEBUG -- Yus::EntitySession: allowed?(edit, org.oddb.model.!atc_class.*) D, [2014-09-18T14:21:27.619340 #24440] DEBUG -- Yus::EntitySession: allowed?(edit, org.oddb.model.!atc_class.*) D, [2014-09-18T14:21:28.059184 #24440] DEBUG -- Yus::EntitySession: allowed?(edit, org.oddb.model.!company.1) D, [2014-09-18T14:21:28.090562 #24440] DEBUG -- Yus::EntitySession: allowed?(edit, org.oddb.model.!company.48) D, [2014-09-18T14:21:28.093952 #24440] DEBUG -- Yus::EntitySession: allowed?(edit, org.oddb.model.!company.48) D, [2014-09-18T14:21:28.096513 #24440] DEBUG -- Yus::EntitySession: allowed?(edit, org.oddb.model.!atc_class.*) D, [2014-09-18T14:21:28.360085 #24440] DEBUG -- Yus::EntitySession: allowed?(edit, org.oddb.model.!company.4) D, [2014-09-18T14:21:29.121447 #24440] DEBUG -- Yus::EntitySession: allowed?(credit, org.oddb.download) D, [2014-09-18T14:21:29.134251 #24440] DEBUG -- Yus::AutoSession: get_entity_preference(name=ngiger@ywesee.com, key=association, domain=oddb.org) D, [2014-09-18T14:21:33.331467 #24440] DEBUG -- Yus::EntitySession: allowed?(credit, org.oddb.download) D, [2014-09-18T14:21:33.335511 #24440] DEBUG -- Yus::EntitySession: allowed?(credit, org.oddb.download) D, [2014-09-18T14:21:33.350630 #24440] DEBUG -- Yus::AutoSession: get_entity_preference(name=ngiger@ywesee.com, key=association, domain=oddb.org) D, [2014-09-18T14:21:33.764113 #24440] DEBUG -- Yus::EntitySession: allowed?(credit, org.oddb.download) D, [2014-09-18T14:21:34.624258 #24440] DEBUG -- Yus::AutoSession: get_entity_preference(name=ngiger@ywesee.com, key=association, domain=oddb.org) D, [2014-09-18T14:21:34.626988 #24440] DEBUG -- Yus::AutoSession: get_entity_preference(name=ngiger@ywesee.com, key=association, domain=oddb.org)
Going from oddb-ci2's home via Admin .. Adressen displays about 100 entries. When I try to follow a link like http://oddb-ci2.dyndns.org/de/gcc/resolve/pointer/%3A%21address_suggestion%2C27550461 it displays me just an empty page.
Clicking on checkout_invoice just does not produce any result. Tried adding some puts in various states but did not succeed.
Pushed commit Fix reset password when UTF-8 present
Tried with paypal. After paymount I got returned to http://ch.oddb.org/de/gcc/paypal_return/state_id/161266460/invoice/32300060 which told me Ihre Bezahlung ist von PayPal noch nicht bestätigt worden. Sobald dies geschieht werden wir Sie per E-Mail benachrichtigen.
. After clicking "Zurück" I was on http://ch.oddb.org/de/gcc/back/state_id/161266460
The following unit-tests passed without problem
After removing the skip in register_download.rb I got three errors that @@today was not defined. And also
ODDB::View::Drugs::TestRegisterDownloadForm#test_init [test/test_view/drugs/register_download.rb:50]: Expected: "processingerror" Actual: 0
I can fix this easily by returning 'processingerror' in src/view/drugs/register_download.rb
. But is this the correct solution? htmlgrid did not have any changes since 2009 in the concerned file.
Will continue tomorrow.