Document type: Directory, Operation: read

Bug #1428715 reported by Andreas Constantinou
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OERPScenario
New
Undecided
Unassigned

Bug Description

I get this error when a try to "group by directories" in Knowledge Management System module.
When you have two different directories and each directory has a specific group when a user of that group try the "group by directory" option it get this error.In my understanding the error is about the security restriction.

2015-03-05 16:02:37,707 2164 INFO test_knowlage werkzeug: 127.0.0.1 - - [05/Mar/2015 16:02:37] "POST /web/dataset/call_kw/ir.attachment:fields_view_get HTTP/1.1" 200 -
2015-03-05 16:02:37,716 2164 INFO test_knowlage werkzeug: 127.0.0.1 - - [05/Mar/2015 16:02:37] "POST /web/dataset/call_kw/ir.attachment:fields_view_get HTTP/1.1" 200 -
2015-03-05 16:02:37,759 2164 INFO test_knowlage werkzeug: 127.0.0.1 - - [05/Mar/2015 16:02:37] "POST /web/dataset/call_kw/ir.filters:get_filters HTTP/1.1" 200 -
2015-03-05 16:02:38,069 2164 INFO test_knowlage werkzeug: 127.0.0.1 - - [05/Mar/2015 16:02:38] "POST /web/dataset/call_kw/ir.attachment:fields_get HTTP/1.1" 200 -
2015-03-05 16:02:38,081 2164 INFO test_knowlage werkzeug: 127.0.0.1 - - [05/Mar/2015 16:02:38] "POST /web/dataset/call_kw/board.board:list HTTP/1.1" 200 -
2015-03-05 16:02:38,562 2164 INFO test_knowlage werkzeug: 127.0.0.1 - - [05/Mar/2015 16:02:38] "POST /web/dataset/call_kw/ir.attachment:fields_view_get HTTP/1.1" 200 -
2015-03-05 16:02:38,834 2164 INFO test_knowlage werkzeug: 127.0.0.1 - - [05/Mar/2015 16:02:38] "POST /web/dataset/search_read HTTP/1.1" 200 -
2015-03-05 16:02:41,391 2164 INFO test_knowlage werkzeug: 127.0.0.1 - - [05/Mar/2015 16:02:41] "POST /web/dataset/call_kw/ir.attachment:fields_view_get HTTP/1.1" 200 -
2015-03-05 16:02:41,730 2164 WARNING test_knowlage openerp.osv.orm: Access Denied by record rules for operation: read, uid: 3, model: document.directory
2015-03-05 16:02:41,730 2164 ERROR test_knowlage openerp.netsvc: Access Denied
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

(Document type: Directory, Operation: read)
Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\netsvc.py", line 296, in dispatch_rpc
  File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\service\web_services.py", line 626, in dispatch
  File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\osv.py", line 190, in execute_kw
  File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\osv.py", line 132, in wrapper
  File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\osv.py", line 199, in execute
  File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\osv.py", line 187, in execute_cr
  File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\orm.py", line 2759, in read_group
  File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\base\ir\ir_attachment.py", line 268, in read
  File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\document\document.py", line 84, in check
  File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\orm.py", line 3989, in check_access_rule
  File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\orm.py", line 3938, in _check_record_rules_result_count
except_osv: (u'Access Denied', u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: Directory, Operation: read)')

Revision history for this message
Claus (claus-eyas) wrote :

  File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_attachment.py", line 283, in read
    self.check(cr, uid, ids, 'read', context=context)
  File "/usr/lib/python2.7/dist-packages/openerp/addons/document/document.py", line 84, in check
    self.pool.get('document.directory').check_access_rule(cr, uid, [parent_id for (parent_id,) in cr.fetchall()], mode, context=context)
  File "/usr/lib/python2.7/dist-packages/openerp/osv/orm.py", line 4019, in check_access_rule
    self._check_record_rules_result_count(cr, uid, sub_ids, returned_ids, operation, context=context)
  File "/usr/lib/python2.7/dist-packages/openerp/osv/orm.py", line 3968, in _check_record_rules_result_count
    (self._description, operation))
except_osv: (u'Access Denied', u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: Directory, Operation: read)')

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.