Functionality added : conformance level description

Thomas Sødring thomas.sodring at hioa.no
Fri Dec 2 14:21:27 CET 2016


On 12/02/2016 10:49 AM, Petter Reinholdtsen wrote:
> [Thomas Sødring]
>> I have a pushed an update to the SecurityConfig to allow access to the
>> root context (/noark5v4)
>>
>> I have added the following line to the configure method:
>>
>> .antMatchers("/").permitAll() // allow access to conformity details
> Hm, did not seem to work.
>
> I test using this:
>
>   mvn -Dmaven.test.skip=true clean install
>   (cd core-webapp/; mvn spring-boot:run)
>
> And then 'GET http://localhost:8092/noark5v4'.  I still get the login
> page.

OK,  I have been able to reproduce the issue. If I have a trailing slash
it works fine, without the trailing slash it's going to redirect to the
login page.

This gives a 302
GET -H Accept:application/vnd.noark5-v4+json http://localhost:8092/noark5v4

This gives a 406 (wrong content type):
GET http://localhost:8092/noark5v4/

This works OK:
GET -H Accept:application/vnd.noark5-v4+json http://localhost:8092/noark5v4/

It obviously should work with your syntax (without the slash) so I just
have to find out where and why this feature is here. This is one of
those times I'm not happy with spring as you can spend a lot of time
figuring out what the configuration is that I have done wrong thats
causing this.

 - Tom


More information about the nikita-noark mailing list