Web Responsive Access Denied
Hi, thanks for this great module. I install it in odoo 11, and i get this info at production log Access Denied by ACLs for operation: read, uid: 4, model: ir.ui.menu how to fix this? thx
Hi, I delete group_portal in web.xml and the... Access Denied by ACLs for operation: read, uid: 4, model: ir.ui.menu... is gone. Is this okay?
@wangsamas - please link the line you had to change
Hi lasley,
I don't know how to link the line, I use notepad++ I delete 2 ,global_portal in web.xml file in web_responsive directory
Are you referring to this? https://github.com/OCA/web/blob/11.0/web_responsive/views/web.xml#L37
Yes, and there is another one below
Hmmmm I think this has to be an issue with your instance's portal permissions. Deleting those lines is just a temporary fix that will be undone when you update. I think the solution is to instead just add ir.ui.menu to the portal read permission in your Odoo instance through the Settings=>Security menu.
I don't have a v11 immediately handy, and our Runbot is broken, so I'm not able to actually confirm that this is indeed a local issue & I will leave this open until someone else (or future me) can confirm.
hi lasley, i just tried add ir.ui.menu read permission to portal user and the result is internal server error.
I believe this might be a larger issue than you realize. I too have this issue, as does at least one other customer. In this case, I cannot even log into my instance's web-GUI at ALL to make any changes. Can you please assist? I need to be able to fix this so I can re-access my system. It's been down for two full days now, without me changing anything.... more details can be found here... https://community.bitnami.com/t/odoo-11-vm-acls-suddenly-broken/54064/11
I need to know how to change permissions through postgres on the server (SSH'd in) or something else, because my server is 100% down now because of this problem.
If your server is down, I'd try removing the suspect module from the file system and trying again. You'll get console errors, but your site will work. Or edit the lines mentioned above and update the module.
I just tested on my own instance, and there is something wrong with the permissions in both of your instances. Without information regarding what other specific module caused this confliction though, I cannot form a guess as to what.
web_responsive does not interact with permissions in any way, so it's not possible for it to cause your permissions errors. Furthermore, this same permission is on the core Odoo web client's navbar, so uninstalling web_responsive will not fix the issue.
I'm closing this.
Hi lasley, you are right that deleting group_portal is just a temporary fix. btw, I agree that web_responsive suppose not interact with permissions in any way. but I really keep my eye on production.log
Access Denied by ACLs for operation: read, uid: 4, model: ir.ui.menu Doesn't show when I uninstall web_responsive. It show right away I install web_responsive.
I don't know what should I do.
I confirm this is not something of web_responsive. I have it in production in 11.0 without problems.
hi pedrobaeza, have you look at your production.log ? We don't see any anything in ussage. seems no problem, but there are something going on in production.log
I've tried again and again now... install, uninstall, install, uninstall, install, uninstall, install, uninstall... if I install web_responsive, I get this message in my production.log Access Denied by ACLs for operation: read, uid: 4, model: ir.ui.menu if I install any other apps(e.g CRM) after I install web_responsive, I get that message again if I install CRM before / without web_responsive, I don't get that message.
Again... all functioning well with web_responsive installation. there is nothing wrong with the ussage. But there are "Access Denied by ACLs for operation: read, uid: 4, model: ir.ui.menu" message in the production.log
No, no log with errors by my part...
Anyone know how I might be able to update the ACLs through PGAdmin directly in Postgres? I'm really stuck here!
@hiltonmw - your issue sounds completely unrelated here, particularly given that the report here is a log-only issue. I recommend you hire an Odoo integrator if you are about to try to edit ACLs in the database.
@wangsamas - I tested on a local, and even installed all modules that Odoo SA provides as part of core - in hopes that I could trigger the error in the logs. Can you provide a full traceback, please?
@wangsamas - also are you maybe on Linux? If so, you could probably find the addon that did mess things up like this:
grep --include=\*.{xml,csv} -rnw '/path/to/addons/not/in/core/' -e "base.group_portal"
Hi lasley,
I don't know how to full traceback. but this is what I get in my log when I install an app without web_responsive (mass mailing app)
2017-12-15 19:14:19,257 4744 INFO wangsamas odoo.addons.base.ir.ir_http: Generating routing map 2017-12-15 19:14:22,680 4744 INFO wangsamas odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [444, 443] 2017-12-15 19:14:23,225 4744 INFO wangsamas odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [243] 2017-12-15 19:14:24,243 4744 INFO wangsamas odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [445] 2017-12-15 19:14:24,391 4744 INFO wangsamas odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [247]
And this is what I get with web_responsive. the same mass mailing app, I uninstall, install web_responsive, then install mass mailing app again
2017-12-15 19:13:00,547 4744 INFO back odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [795] 2017-12-15 19:13:01,623 4744 INFO back odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [816] 2017-12-15 19:13:01,782 4744 INFO back odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [798] 2017-12-15 19:13:02,288 4744 INFO back odoo.addons.base.ir.ir_model: Access Denied by ACLs for operation: read, uid: 4, model: ir.ui.menu 2017-12-15 19:13:02,301 4744 INFO back odoo.addons.base.ir.ir_model: Access Denied by ACLs for operation: read, uid: 4, model: ir.ui.menu 2017-12-15 19:13:02,330 4744 INFO back odoo.addons.base.ir.ir_model: Access Denied by ACLs for operation: read, uid: 4, model: ir.ui.menu 2017-12-15 19:13:02,354 4744 INFO back odoo.addons.base.ir.ir_model: Access Denied by ACLs for operation: read, uid: 4, model: ir.ui.menu
@wangsamas Well that's weird. Ok so to replicate this, we have to install a module? I figured it would be when you refresh a page.
I just tried uninstalling mass mailing, then reinstalling (under the demo user with default permissions + settings), and I'm not seeing it still. I'm even seeing successful queries to ir.ui.menu for the loading of the icons:
2017-12-15 19:24:27,767 1352 INFO test werkzeug: 10.0.2.2 - - [15/Dec/2017 19:24:27] "GET /web/content/1063-151c918/web.assets_backend.js HTTP/1.1" 200 -
2017-12-15 19:24:28,720 1352 INFO test werkzeug: 10.0.2.2 - - [15/Dec/2017 19:24:28] "GET /web/image/ir.ui.menu/77/web_icon_data HTTP/1.1" 304 -
2017-12-15 19:24:28,742 1352 INFO test werkzeug: 10.0.2.2 - - [15/Dec/2017 19:24:28] "GET /web/image/ir.ui.menu/242/web_icon_data HTTP/1.1" 304 -
2017-12-15 19:24:28,773 1352 INFO test werkzeug: 10.0.2.2 - - [15/Dec/2017 19:24:28] "GET /web/image/ir.ui.menu/315/web_icon_data HTTP/1.1" 304 -
2017-12-15 19:24:28,809 1352 INFO test werkzeug: 10.0.2.2 - - [15/Dec/2017 19:24:28] "GET /web/image/ir.ui.menu/204/web_icon_data HTTP/1.1" 304 -
2017-12-15 19:24:28,830 1352 INFO test werkzeug: 10.0.2.2 - - [15/Dec/2017 19:24:28] "GET /web/image/ir.ui.menu/319/web_icon_data HTTP/1.1" 304 -
2017-12-15 19:24:28,850 1352 INFO test werkzeug: 10.0.2.2 - - [15/Dec/2017 19:24:28] "GET /web/image/ir.ui.menu/157/web_icon_data HTTP/1.1" 304 -
2017-12-15 19:24:28,873 1352 INFO test werkzeug: 10.0.2.2 - - [15/Dec/2017 19:24:28] "GET /web/image/ir.ui.menu/146/web_icon_data HTTP/1.1" 304 -
2017-12-15 19:24:28,892 1352 INFO test werkzeug: 10.0.2.2 - - [15/Dec/2017 19:24:28] "GET /web/image/ir.ui.menu/502/web_icon_data HTTP/1.1" 304 -
2017-12-15 19:24:28,918 1352 INFO test werkzeug: 10.0.2.2 - - [15/Dec/2017 19:24:28] "GET /web/image/ir.ui.menu/521/web_icon_data HTTP/1.1" 304 -
2017-12-15 19:24:28,936 1352 INFO test werkzeug: 10.0.2.2 - - [15/Dec/2017 19:24:28] "GET /web/image/ir.ui.menu/405/web_icon_data HTTP/1.1" 304 -
2017-12-15 19:24:28,957 1352 INFO test werkzeug: 10.0.2.2 - - [15/Dec/2017 19:24:28] "GET /web/image/ir.ui.menu/467/web_icon_data HTTP/1.1" 304 -
2017-12-15 19:24:28,982 1352 INFO test werkzeug: 10.0.2.2 - - [15/Dec/2017 19:24:28] "GET /web/image/ir.ui.menu/554/web_icon_data HTTP/1.1" 304 -
I logged out and then tried hitting one of the icon URIs, and was then able to replicate. Basically this just means that the permissions were correct on the logged in user, and these files aren't avail for public access.
2017-12-15 19:26:15,655 1352 INFO test odoo.addons.base.ir.ir_model: Access Denied by ACLs for operation: read, uid: 4, model: ir.ui.menu
2017-12-15 19:26:15,657 1352 INFO test odoo.addons.base.ir.ir_model: Access Denied by ACLs for operation: read, uid: 4, model: ir.ui.menu
2017-12-15 19:26:15,660 1352 INFO test odoo.addons.base.ir.ir_model: Access Denied by ACLs for operation: read, uid: 4, model: ir.ui.menu
2017-12-15 19:26:15,664 1352 INFO test odoo.addons.base.ir.ir_model: Access Denied by ACLs for operation: read, uid: 4, model: ir.ui.menu
There's another module in play here that edited ACLs for ir.ui.menu. I would try the grep above and maybe try switching base.group_portal for ir.ui.menu if you don't get any good results.
I can absolutely 100% without a doubt guarantee you though that the culprit is not web_responsive. Once you do find it, if it's an OCA module, please create an issue in the proper repo so we can get it handled.
Yes I use linux.
I couldn't find grep --include=*.{xml,csv} -rnw '/path/to/addons/not/in/core/' -e "base.group_portal"
this is what i found with grep
C:\Users\wangsamax\Documents\Odoo11\OKE\addons\hw_blackbox_be\controllers\main.py (1 hit) Line 176: return subprocess.check_output("ifconfig eth0 | grep -o 'HWaddr.' | sed 's/HWaddr \(.\)/\1/' | sed 's/://g'", shell=True).rstrip()[-7:]
C:\Users\wangsamax\Documents\Odoo11\OKE\addons\hw_escpos\controllers\main.py (4 hits) Line 198: hosting_ap = os.system('pgrep hostapd') == 0 Line 199: ssid = subprocess.check_output('iwconfig 2>&1 | grep 'ESSID:"' | sed 's/."\(.\)"/\1/'', shell=True).rstrip() Line 200: mac = subprocess.check_output('ifconfig | grep -B 1 'inet addr' | grep -o 'HWaddr .' | sed 's/HWaddr //'', shell=True).rstrip() Line 200: mac = subprocess.check_output('ifconfig | grep -B 1 'inet addr' | grep -o 'HWaddr .' | sed 's/HWaddr //'', shell=True).rstrip()
C:\Users\wangsamax\Documents\Odoo11\OKE\addons\mail\models\mail_tracking_value.py (2 hits) Line 100: # grep : # old_value_integer | old_value_datetime | old_value_char Line 105: # grep : # new_value_integer | new_value_datetime | new_value_char