Edit Web Part - HTTP 403 Forbidden Error - sharepoint-2007

I have a webpart in a SharePoint 2007 site. This web part is written in object Model code. I am given Full Control to this Site Collection and can access the page with no issue.
When I tried to Edit it by clicking 'Site Actions--> Edit Page', I got the following error
Error:
The website declined to show this webpage- HTTP 403
Most likely causes:
•This website requires you to log in.
What you can try:
Go back to the previous page.
**More information**
This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.
For more information about HTTP errors, see Help.

is that a user control or something like that which is accessing the File System path ?
if yes then you have to use SPSecurity.RunWithElevatedPrivilages(delegate() {}).
Have a look at this
Thanks

I resolved the HTTP 403 Forbidden issue. The root cause of the issue is, in my code has access to the file system on the server,to which the logged in users do not have the access while Editing the web part.
I have used RunWithElevatedPrivileges but only for getting the site info and updating the list. The code reading the config file and logging into the log file does not covered under ElevatedPrivileges.
I included them with Elevated Privileges, the users are able to Edit the web pat. We can also resolve this issue by giving ther read, write permissions to that particular files to 'SERVER\USERS'

Related

Unable to get Access level tab in TFS

I am using TFS 2013, Update 5.
I am unable to see the 'Access Levels' tab in the admin section.
Verified also that the account has Console Permissions.
Added the account in [TEAM FOUNDATION]\Team Foundation Administrators group in TFS Admin Console.
While sending request from my site. I am getting
Request URL: `http://<account_name>:8080/tfs/_admin/_licenses`<br>
Request Method: GET<br> Status Code: 404 Not Found<br> X-TFS-ServiceError:
Page+not+found.
The tab just simply isn't there.
And also I am unable to see the TEST tab in the projects.
Tried the solution: Access levels configuration tab not visible in TFS 2015
I have cleared the TFS_cache and restarted the server. Even after that, I am unable to view the tab though I have added myself to Team Foundation Administrators Group. Because of this access I am unable to view the Test tab in the project collection home page, Access tab in control section and Adding / Modifing charts under work item.
Kindly help me to fix the issue.
Just check the access level or your account, make sure you are not in the Stakeholder level. Just change the access level to Basic or Advanced Level if the user was in Stakeholder level.
If you change the default access level to Stakeholder, all users not
explicitly added to the Basic or Advanced level will be limited to the
features provided through Stakeholder access.
Then try the solution mentioned in this thread: Access levels configuration tab not visible in TFS 2015
Besides, based on the error message "Status Code: 404 Not Found", generally it should an client-side issue. SO, just try below things to narrow down the issue:
Using IP instead of the server name in URL, e.g :
http://192.168.1.10:8080/tfs/_admin/_licenses
Try with other client machines or browsers
Cleaning the caches on your current client machine
Check if that works for you.
Cause of HTTP 404 Errors:
Technically, an Error 404 is a client-side error, implying that the
error is your mistake, either because you typed the URL incorrectly or
the page has been moved or removed from the website and you should
have known.
Another possibility is if a website has moved a page or resource but
did so without redirecting the old URL to the new one. When that
happens, you'll receive a 404 error instead of being automatically
routed to the new page.
If that still not work, then try to repair the TFS server, then try it again.
Even after multiple ways in the admin level if you are unable to see tab, Navigate to TFS console-->Application Tier-->Administration Security. Under users and Groups section select [Team Foundation]\Team Foundation Valid Users and set the permission of Edit Instance-level information to Allow. This way it has solved my problem.

Umbraco Server Error: Contact Administrator see log for full details. Logs telling 404 error

I am going to use my Umbraco after a long time but I am unable to edit or post new thing. After Publish Changes it Displays the following error but the website is working perfectly in localhost.
That error looks like a permissions issue maybe? Are the permissions set correctly on the folders for the site?

Server Error 404 is returned when trying to get an authorization code from live.com

We have two applications which use OAuth2 authentication to get access to Hotmail.
The first application works fine. But in the second application we have an error after entering login/password:
Server Error
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
URLs and code used to show these URLs are identical in both application:
url = "https://login.live.com/oauth20_authorize.srf?response_type=code&redirect_uri=https%3A%2F%2Flogin.live.com%2Foauth20_desktop.srf&scope=wl.imap+wl.offline_access+wl.emails&client_id=REAL-CLIENT-ID"
self.browser.load(QUrl(url))
Unfortunately, I have no idea how can fix it. Can anyone help me with this?
It's weird but this issue was fixed by adding:
QCoreApplication.setOrganizationName("anOrganizationName")
QCoreApplication.setOrganizationDomain("anOrganizationDomain")
QCoreApplication.setApplicationName("anApplicationName")
Perhaps it would be enough one of these string to fix issue. I didn't check it.

Access denied error message when trying to create a shared link to a folder in Box

So following on from my previous question around permissions to add collaborators, I am now having further permissions issues when trying to create a shared link to a folder in Box using the API.
So to confirm, I have the "Manage an enterprise" scope now enabled on the API account.
Here is the error message I am getting back:
{"type":"error","status":403,"code":"access_denied_insufficient_permissions","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Access denied - insufficient permission","request_id":"2137493926531843e3c61af"}
Here is the POST data I am sending:
{"shared_link":{"access":"collaborators"}}
Here is the URL that I am sending it to:
https://api.box.com/2.0/folders/1561835651
The folder Id is for a folder I have created using the API, and I am also able to add collaborators to that folder OK, so up until this point, I have all the correct permissions to perform these operations.
So my question is, what else should I be doing? I cannot see any more options against the account to suggest I need more permissions, and the documentation is not clear on what else I need to do to be able to perform this operation.
For CreateSharedLink method, the HTTP action is PUT. If use POST method, it will return 403 sharedlink access_denied_insufficient_permissions error.
-Ivy

MODx Parse Error on home page

I've been having this error over lot of modx evolution 1.0.5 installations (I allways use 1&1 servers, in Linux version) It fails to load the home page (not any other pages) it seems that every time I clean the cache, via the manager or via API code, it creates again this file in the cache:
docid_1.pageCache.php
But the thing is that even if the folder cache and all the files inside are set to 777 permissions when it creates files for caching they have any permission set and that's the thing causing this error.
Anybody has had this error? I've been searching in MODX forums but didn't find anybody worried about this, but still I can see it's something happening a lot since when I search on google this error, I don't find forum posts discussing this but instead lots of modx frontend pages showing this error at their home pages.
Maybe it's a problem with 1&1 PHP configuration.
I'm really worried about this cose it has happen some times when I client calls me "über mad" complaining about his home page showing this error.
I've seen that new 1.06 version has some fix on the pagecache parser but I don't know if it's related to my problem.
Here's the error page:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the
requested resource: « PHP Parse Error »
PHP error debug Error: file(assets/cache/docid_1.pageCache.php) [function.file]: failed to open stream: Permission denied
Error type/ Nr.: Warning - 2
File: /homepages/3/d405318697/htdocs/t3st/manager/includes/document.parser.class.inc.php
Line: 413
Line 413 source: $flContent= implode("", file($cacheFile));
The cheeky answer? - "upgrade" Evolution is dead.
A more helpful answer, check the modx system settings, in Revolution you can tell modx what permissions to attempt to set on files, my guess is that maybe you have inadvertently set these to 000 if that's what you mean by this: "they have any permission set"
If that does not work/you get desperate, disable all caching and test or if possible [still not familiar with evo] set that resource to not be cached.
Though something odd is going on, please confirm; the index page will be cached but with no permissions i.e. 000, subsequent pages will be cached but do have correct permissions set? i.e. 666 [or 644/whatever]

Resources