Hi
I am new to the ACL part of Spring security. I found this excellent blog post http://blog.denksoft.com/?page_id=20.
What I dont understand is the difference between the owner_sid in...
Type: Posts; User: phe; Keyword(s):
Hi
I am new to the ACL part of Spring security. I found this excellent blog post http://blog.denksoft.com/?page_id=20.
What I dont understand is the difference between the owner_sid in...
Thank you. I did not throw the exception before. Now I do and everything works as expected.
@Override
@Transactional(readOnly = true)
public UserDetails loadUserByUsername(String username)...
Hi
I found out how to translate some messages for exampel
AbstractUserDetailsAuthenticationProvider.badCredentials
My problem is that I got this message below that I would like to...
Thank you !
I got i working in another project with.
@RequestMapping(value = "/add", method = RequestMethod.POST ,consumes = "application/json")
Could somone please help? I have been googling and trying examples for 3 nights. I would like to make a post to a controller. Even postindustrielle a string would be ok. Many people have the same...
I am trying to post an object as JSON. I am using the RestTemplate for GET without any problems. What is woring with this setup?
RestTemplate restTemplate = new RestTemplate();...
This did not work. My test involving PersonService started to fail.
this one for example
@PreAuthorize("hasRole('ROLE_ADMIN')")
public void deletePerson(String email);
You could of...
I found a way to pass my Services but I think it is real ugly. Is this the way of doing this?
public class CustomMethodSecurityExpressionHandler extends DefaultMethodSecurityExpressionHandler...
Hi
This is about creating custom methods that can be used with @PreAuthorize and SpEL.
Is it possible to @Autowire the PersonService into this class? Is it bad practice? Now I just get null when...
Thank you.
Number 2 is realy not up to me at the moment. 1, and 4 are implemented. 3 will need some improvement but is random.
Is this a secure/good way of generating new passwords for users that forgot their password(or new users)? The user will receive an url in a mail with some thing like...
My dropdown shown below includes 1000 entites. Should realy setAsText(String leverandorId) in the property editor be called one time for every time my controller and @InitBinder method are called....
ACL is overkill for my application because my services retrieve all objects from another Spring application. Still i would like that users canīt see data that does not belong to them. As i understand...
I am actually using 3.1.0 RELEASE I got it working with hibernate but would like to use eclipselink(my company wants that). Would you like to share your jpaApplicationContext.xml, persistence.xml, a...
The configuration below gives me the following error when trying to persist an ent. If I use"org.springframework.orm.jpa.LocalEntityManagerFactoryBean" at least that work.
If I use
<bean...
Hi
What is best practice when it comes to returning status messages from a controller to a view.
In liferay I use something similar to this.
From the controller
...
The very first time an application is lanched. How is it possible to generate a user? In the security.xml it is possible to create som user.
<authentication-manager...
Sorry
Could just do this
return "/admin/sections";
Hop you could give me some advise on how to do this. The validation works but I can't do a redirect
if(result.hasErrors()){
model.addAttribute("sections",...
Solved this one bye creating message.properties in resources and creating the messageSource like this
<!-- Validation error messages -->
<beans:bean id="messageSource"...
Thank you for your answer.
I have tried that but it gives the same error. Do I need anything else? Is the servlet context the correct file for this?
<!--Locale resolver -->
<beans:bean...
I have a problem when using Spring validation. No error messages are found.
org.springframework.context.NoSuchMessageException: No message found under code 'company.name' for locale 'en_US'.
at...
Sorry
The error was not related to Spring.
Sorry double post....
Well
I am getting this error with this approach
java.lang.StackOverflowError
at java.lang.Long.toString(Long.java:240)
at java.lang.Long.toString(Long.java:100)
at...