{"action":"opened","issue":{"url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/737","labels_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/737/labels{/name}","comments_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/737/comments","events_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/737/events","html_url":"https://github.com/EUDAT-B2SHARE/b2share/issues/737","id":98977959,"number":737,"title":"b2deposit: \"biodiversity\" and \"biomedical research\" form not generated","user":{"login":"nharraud","id":5708796,"avatar_url":"https://avatars.githubusercontent.com/u/5708796?v=3","gravatar_id":"","url":"https://api.github.com/users/nharraud","html_url":"https://github.com/nharraud","followers_url":"https://api.github.com/users/nharraud/followers","following_url":"https://api.github.com/users/nharraud/following{/other_user}","gists_url":"https://api.github.com/users/nharraud/gists{/gist_id}","starred_url":"https://api.github.com/users/nharraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nharraud/subscriptions","organizations_url":"https://api.github.com/users/nharraud/orgs","repos_url":"https://api.github.com/users/nharraud/repos","events_url":"https://api.github.com/users/nharraud/events{/privacy}","received_events_url":"https://api.github.com/users/nharraud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-04T14:04:18Z","updated_at":"2015-08-04T14:04:18Z","closed_at":null,"body":"**Branch:**\r\nmaster\r\n\r\n**Scenario:**\r\nStart a deposition. Upload a file. Choose either \"biodiversity\" or \"biomedical research\" domains. Then there is an error on the server.\r\n\r\nFor \"Biomedical Research\"\r\n```\r\n127.0.0.1 - - [04/Aug/2015 16:01:51] \"GET /b2deposit/getform/51b7e3eb3ab111e588a7a45e60c132df/BBMRI HTTP/1.1\" 500 -\r\nTraceback (most recent call last):\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask/app.py\", line 1836, in __call__\r\n    return self.wsgi_app(environ, start_response)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/src/b2share/invenio/ext/legacy/__init__.py\", line 128, in __call__\r\n    response = self.app.handle_exception(e)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask_restful/__init__.py\", line 270, in error_router\r\n    return original_handler(e)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask/app.py\", line 1403, in handle_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/src/b2share/invenio/ext/legacy/__init__.py\", line 124, in __call__\r\n    response = self.app.full_dispatch_request()\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask/app.py\", line 1477, in full_dispatch_request\r\n    rv = self.handle_user_exception(e)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask_restful/__init__.py\", line 270, in error_router\r\n    return original_handler(e)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/src/b2share/invenio/base/wrappers.py\", line 125, in handle_user_exception\r\n    return super(Flask, self).handle_user_exception(e)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask/app.py\", line 1381, in handle_user_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask/app.py\", line 1475, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask/app.py\", line 1461, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask_login.py\", line 758, in decorated_view\r\n    return func(*args, **kwargs)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/src/b2share/invenio/b2share/modules/b2deposit/views.py\", line 71, in getform\r\n    return dep.getform(request, sub_id, domain)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/src/b2share/invenio/b2share/modules/b2deposit/b2share_deposit_handler.py\", line 66, in getform\r\n    converter=HTML5ModelConverter())\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/wtforms/ext/sqlalchemy/orm.py\", line 302, in model_form\r\n    exclude_pk=exclude_pk, exclude_fk=exclude_fk\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/wtforms/ext/sqlalchemy/orm.py\", line 253, in model_fields\r\n    field_args.get(name), db_session\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/wtforms/ext/sqlalchemy/orm.py\", line 106, in convert\r\n    raise ModelConversionError('Could not find field converter for %s (%r).' % (prop.key, types[0]))\r\nModelConversionError: Could not find field converter for planned_sampled_individuals (<class 'invenio.ext.sqlalchemy.types.legacyinteger.LegacyInteger'>).\r\n```\r\n\r\n\r\nFor Biodiversity\r\n```\r\n127.0.0.1 - - [04/Aug/2015 15:55:17] \"GET /b2deposit/getform/4df9076b3ab011e5acdda45e60c132df/GBIF HTTP/1.1\" 500 -\r\nTraceback (most recent call last):\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask/app.py\", line 1836, in __call__\r\n    return self.wsgi_app(environ, start_response)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/src/b2share/invenio/ext/legacy/__init__.py\", line 128, in __call__\r\n    response = self.app.handle_exception(e)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask_restful/__init__.py\", line 270, in error_router\r\n    return original_handler(e)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask/app.py\", line 1403, in handle_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/src/b2share/invenio/ext/legacy/__init__.py\", line 124, in __call__\r\n    response = self.app.full_dispatch_request()\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask/app.py\", line 1477, in full_dispatch_request\r\n    rv = self.handle_user_exception(e)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask_restful/__init__.py\", line 270, in error_router\r\n    return original_handler(e)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/src/b2share/invenio/base/wrappers.py\", line 125, in handle_user_exception\r\n    return super(Flask, self).handle_user_exception(e)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask/app.py\", line 1381, in handle_user_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask/app.py\", line 1475, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask/app.py\", line 1461, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/flask_login.py\", line 758, in decorated_view\r\n    return func(*args, **kwargs)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/src/b2share/invenio/b2share/modules/b2deposit/views.py\", line 71, in getform\r\n    return dep.getform(request, sub_id, domain)\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/src/b2share/invenio/b2share/modules/b2deposit/b2share_deposit_handler.py\", line 66, in getform\r\n    converter=HTML5ModelConverter())\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/wtforms/ext/sqlalchemy/orm.py\", line 302, in model_form\r\n    exclude_pk=exclude_pk, exclude_fk=exclude_fk\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/wtforms/ext/sqlalchemy/orm.py\", line 253, in model_fields\r\n    field_args.get(name), db_session\r\n  File \"/Users/nharraud/.virtualenvs/b2share-master/lib/python2.7/site-packages/wtforms/ext/sqlalchemy/orm.py\", line 106, in convert\r\n    raise ModelConversionError('Could not find field converter for %s (%r).' % (prop.key, types[0]))\r\nModelConversionError: Could not find field converter for version_number (<class 'invenio.ext.sqlalchemy.types.legacyinteger.LegacyInteger'>).\r\n```\r\n\r\nIt does not happen with any of the other domains.\r\n\r\nIt seems that SQLAlchemy can't generate Forms using the existing model."}}