-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP 9.0 add cmis web proxy #4
Conversation
if token: | ||
token = token.replace('Bearer', '').strip() | ||
else: | ||
token = params.get('token').strip() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lmignon params.get('token')
may be None => stack trace
token = params.get('token').strip()
AttributeError: 'NoneType' object has no attribute 'strip'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbidoul You're right. Moreover, the logic here is suspicious. The fact that you have this error reveals that the logic is called whereas the apply_odoo_security
is False
. By looking deeper into the code, I've found a place where I call this method without checking to 'apply_odoo_security` https://github.com/acsone/alfodoo/blob/9.0-add-cmis_web_proxy/cmis_web_proxy_alf/controllers/alfresco.py#L40. I must to also change this method.
387a4f3
to
5749a11
Compare
Patch BaseModel._field_create to take into account the 'ttype' attribute defined on the field class as value for the ttype comlumn in the ir_model_fields table in place of the 'type' attribute
@@ -7,7 +7,7 @@ | |||
'version': '9.0.1.0.0', | |||
'category': 'Connector', | |||
'summary': 'Alfresco extension for the CMIS Connector', | |||
'author': "ACSONE SA/NV Community Association (OCA)", | |||
'author': "ACSONE SA/NV", | |||
'website': 'https://odoo-community.org/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lmignon website: acsone.eu for the moment
dev moved to https://github.com/acsone/alfodoo-dev |
No description provided.