Questions tagged [authority]
61 questions
278
votes
8 answers
.NET - Get protocol, host, and port
Is there a simple way in .NET to quickly get the current protocol, host, and port? For example, if I'm on the following URL:
http://www.mywebsite.com:80/pages/page1.aspx
I need to return:
http://www.mywebsite.com:80
I know I can use…

Jeremy
- 3,833
- 2
- 22
- 13
17
votes
2 answers
android content provider AUTHORITIES
What is the reason for content provider authorities?
How/why do I want to use them other than I HAVE to declare them in the manifest?
I've tried to do my homework on this question and cannot find a decent, cohesive discussion on this topic.
Here…

JDOaktown
- 4,262
- 7
- 37
- 52
17
votes
2 answers
Android - Having Provider authority in the app project
An android library project contains a few providers whose authority is defined like the following in a contract class :
public static final String CONTENT_AUTHORITY = "my.com.library.providers.tester";
private static final Uri BASE_CONTENT_URI =…

500865
- 6,920
- 7
- 44
- 87
15
votes
2 answers
Android Fileprovider: IllegalArgumentException: Failed to find configured root that contains
I have a question about the android FileProvider.
I want to save a pdf document and open it with a default program.
I don´t want to save it in external Storage.
After I´ve successfully saved the pdf to the FilesDirectory/export/temp.pdf,
I´ve tried…

user2212120
- 287
- 1
- 2
- 9
12
votes
3 answers
What is the semantics of the double slash following the scheme in a URI?
According to https://www.rfc-editor.org/rfc/rfc3986 and http://en.wikipedia.org/wiki/Uniform_resource_identifier, a URI may or may not contain a double slash following the scheme identifier. This makes "urn:issn:1535-3613" a valid URI just as…

Holger
- 1,648
- 1
- 16
- 26
7
votes
1 answer
android duplicate provider authority
I have had users complaining of a "duplicate provider authority" error when trying to install my android application. I initially thought it might be an old version interfering with the new version, but they have never installed the app before. Any…

MindlessBarber
- 1,590
- 6
- 22
- 39
5
votes
1 answer
Android manifest XML provider tag. android:authorities
I have been going through the NotePad sample application for android-17 when I came across this tag in the manifest XML file:

Eae
- 4,191
- 15
- 55
- 92
4
votes
0 answers
Failed app updates with multiple authorities in content provider
When I have more than one authority listed for a content provider for my Android app, the app will install fine, but will fail when I try to replace/update the app via adb install -r, I get a failed installation:
Failed to install app.apk: Failure…

ccpmark
- 1,005
- 1
- 10
- 11
3
votes
1 answer
Regex matching url authority parts
I need to match these parts of the following string:
(user)@(hostname):(port)
User and port can optionally be matched.
First I managed it with this regular expression:
(?:([^@]*)@)?([^\:]+)(?:\:(\d+))?
This matches for foo@bar:80
foo
bar
80
But…

reeaal
- 347
- 3
- 14
2
votes
1 answer
Set ':authority' header in Postman
I'm currently trying to replicate a https request with the following headers.
The authentication is based on a Session Cookie.
However, there is also a header field called :authority,
which I'm not able to replicate in Postman.
Also, couldn't I…

BennoDev
- 1,067
- 1
- 6
- 17
2
votes
2 answers
Content provider and sqlite database, uri syntax
I have been unsuccessfully trying to access database trough content provider for couple of days now.
I think that I don't understand the syntax of the Uri that is used to point to the database. Maybe I don't understand correctly the Android…

Ile
- 21
- 1
- 3
2
votes
3 answers
what's the best way to check user's current authority in spring3 controller methods?
User's authority is frequently changed in my web service.
In this case, how do I check user's authority effectively?
I wrote code that check user's authority in every controller temporarily.
But I think this way would not good for maintenance.
How…

gentlejo
- 2,690
- 4
- 26
- 31
2
votes
1 answer
Spring Security - GrantedAuthority and role-based access
I'm using a custom UserDetailService which works fine for authentication. The problem is that I can't use role-based constraints.
It's odd that I get the correct authorities from the Controller:
public ModelAndView getMembers(HttpServletRequest…

Flocke
- 764
- 6
- 14
2
votes
0 answers
Trying to send command for object without authority
I'm instantiating a GameObject (a Canvas) that have a child (MoveRightBtn) with a Event Trigger "Pointer Down".
It is a button that when touched I should move my player. But when touched occurs this error:
Trying to send command for object without…

Erie Dias
- 21
- 6
2
votes
2 answers
How to know whether I have admin authority in windows?
Is there any APIs in windows to detect whether the current user(current now) has the admin authority?
BOOL IsHasAuthority()
{
}
Many Thanks!

sxingfeng
- 971
- 4
- 15
- 32