-
Notifications
You must be signed in to change notification settings - Fork 499
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
When view only user shares view link, there is only black screen #5857
Comments
You haven't followed the bug template report so how can we help you? |
Describe the bug To Reproduce
Expected behavior Screenshots Server Software (please complete the following information):
Client Device (please complete the following information):
Remote Device (please complete the following information):
Additional context Your config.json file
|
@si458 There is nothing relevant and most of it cannot be answered except by exhaustive list. I can screenshot, but there is nothing but black. It works for admin, so this is not browser related at all, We can rule that out. It is not related to architecture, platform, virtualization, version of Node.js, access location... Because it doesn't work for view only user with guest sharing, I assume this is pure application error/bug that is present in user/group permissions to this feature. Default config does this as well. It does it in latest git version as well. To summarize it: If I have a user that has only a view access right and guest sharing, then opening the share link produced by that user only shows a black screen, under all conditions I have tested. |
All the information is relevant Like for example what version of meshcentral are u running? U could be running an old version and a fix might already be in a newer version? What nodejs version are u using because older nodejs are no longer supported and might not work with newer modules... This is why we have the template so we can replicate ur exact environment and fix the issue if the is an issue Are u using cloudflare at all too? Because cloudflare generated blackscreens on connect And also same with mac osx it can generate backscreens from time to time too Do u use a reverse proxy in between the Internet and meshcentral? |
Do you understand that the feature works fine for admin user and only doesn't work for view only user? So this is not a bug report of feature not working, but feature not working depending on user/group rights set within the application? |
@exander77 so it's a bug then... and for us to help replicate the issue, we need ur environment as everybody's is different... But I will have a little look tomorrow when I'm in the office n stationary |
I would like to give you more info, but it doesn't work on Windows, Mac and Linux, I don't think versions are really relevant. You can assume any. This is some application issue. I can reproduce this issue on my oldest instance as well. Only thing is I hadn't tried is to try to go back to a point when it starts to work. It may have never worked. As To add, database backend also changes nothing, tried with nedb and mongo. Also tried with standard users and users authenticated through SSO. The list is way shorter if I tell you what I haven't tried. :) |
just want clarification so i can try and replicate this issue |
No, the page is just black, there is not even a connection menu. Just an entirely black page. I would say it loaded fine as there is no error in the console. But there is nothing to interact with, just the black background. You can verify this in like a minute. Create user and give him View Only and Guest Share permission, as described above, let him create a link and use the link (you can use it directly by that user, there is no need to involve a second user at all). The link will load just an entirely black page. |
@si458 So, I made connection menu visible and when I do that and try to connect I get:
On the server. Which leads me to this code in // Limit what this relay connection can do
if (typeof cookie.p == 'number') {
var usages = [];
if (cookie.p & 1) { usages.push(1); usages.push(6); usages.push(8); usages.push(9); } // Terminal
if (cookie.p & 2) { usages.push(2); } // Desktop
if (cookie.p & 4) { usages.push(5); usages.push(10); } // Files
command.soptions.usages = usages;
}
if (usages.indexOf(parseInt(obj.req.query.p)) < 0) { console.log('ERR: Invalid protocol usage', cookie.p, obj.req.query.p);
|
right ok just looked at it and i can replicate it, |
ok found the bug, the issue is when you create the URL, it was for some reason, resetting what access you had back to 0 ? can you try for me plz before i push fix? |
no that is hard coded for security, the is an open issue about that, i will link it once i find it |
When a non-admin user with share only rights makes a share link, there is only black screen.
The text was updated successfully, but these errors were encountered: