not authorized to perform the request

Need help? Post your questions here.

Moderator: moderators

Postby jigsaw » Tue Mar 17, 2009 8:16 pm

Try the following:

locate your applicationContext-security.xml file. It should be located in SUBSONIC\jetty\webapp\WEB-INF\applicationContext-security.xml.

Edit the file and locate this area in the file
Code: Select all
    <bean id="filterInvocationInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor">
        <property name="authenticationManager" ref="authenticationManager"/>
        <property name="alwaysReauthenticate" value="true"/>
        <property name="accessDecisionManager" ref="accessDecisionManager"/>
        <property name="objectDefinitionSource">
            <value>
                PATTERN_TYPE_APACHE_ANT

                /login.view=IS_AUTHENTICATED_ANONYMOUSLY
                /accessDenied.view=IS_AUTHENTICATED_ANONYMOUSLY
                /stream/**=IS_AUTHENTICATED_ANONYMOUSLY
                /style/**=IS_AUTHENTICATED_ANONYMOUSLY
                /icons/**=IS_AUTHENTICATED_ANONYMOUSLY
                /wap/playerJad.view=IS_AUTHENTICATED_ANONYMOUSLY
                /wap/playerJar.view=IS_AUTHENTICATED_ANONYMOUSLY

                /generalSettings.view=ROLE_ADMIN
                /advancedSettings.view=ROLE_ADMIN
                /userSettings.view=ROLE_ADMIN
                /musicFolderSettings.view=ROLE_ADMIN
                /transcodingSettings.view=ROLE_ADMIN
                /internetRadioSettings.view=ROLE_ADMIN
                /searchSettings.view=ROLE_ADMIN
                /podcastSettings.view=ROLE_ADMIN
                /db.view=ROLE_ADMIN


Just for testing purposes add the following line in the list

Code: Select all
                /db.view=IS_AUTHENTICATED_ANONYMOUSLY


Restart subsonic and log in again with the admin-user. Now try accessing the db.view URL I gave you earlier.

If it works it basically means that the security mechanisms in Subsonic does not identify the user "admin" as an admin-user.
I tried this myself and it allowed a non-admin user to access the db.view URL.
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby tezelcelebi » Wed Mar 18, 2009 6:13 am

Hi jigsaw,

last night I tested something different and it worked. The problem is completely related with regional settings and java. In Turkey, machines are set to use TR-tr codepage-language settings. Java still doesnt want to understand this :)
Anyway, I uninstalled Subsonic, changed regional settings to US-en, rebooted machine, re-installed Subsonic and works perfectly now. I can access to any menu item and create users etc.

There is nothing wrong with Subsonic. I am very happy now :D

Thanks you very much for your valuable time.

Regards,
User avatar
tezelcelebi
 
Posts: 12
Joined: Wed Jan 21, 2009 7:22 am
Location: TURKEY, Istanbul

Postby jigsaw » Wed Mar 18, 2009 6:55 am

I am glad you figured it out :)
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Re: not authorized to perform the request

Postby takarusan » Fri Oct 12, 2012 12:51 pm

tezelcelebi wrote:Hi jigsaw,
last night I tested something different and it worked. The problem is completely related with regional settings and java. In Turkey, machines are set to use TR-tr codepage-language settings. Java still doesnt want to understand this :)
Anyway, I uninstalled Subsonic, changed regional settings to US-en, rebooted machine, re-installed Subsonic and works perfectly now. I can access to any menu item and create users etc.
There is nothing wrong with Subsonic. I am very happy now :D
Thanks you very much for your valuable time.
Regards,


I'm from Turkey too. I've tried this but it didn't work at all. Sindre could you please fix this issue?
I really love Subsonic, it works in my Ubuntu setup but not in Windows 7/8 because of this...
takarusan
 
Posts: 2
Joined: Wed Aug 29, 2012 8:37 pm

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 24 guests