Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
4.0
-
4
-
1
-
Description
Hello,
When trying to create a project with a custom avatar you can get the following exception:
2009-10-23 14:34:52,727 http-8090-Processor21 ERROR admin 52472x387x1 avxhi0 /secure/admin/AddProject.jspa [500ErrorPage.jsp] Exception caught in 500 page You can not update a project with an invalid validation result. java.lang.IllegalStateException: You can not update a project with an invalid validation result. at com.atlassian.jira.bc.project.DefaultProjectService.updateProject(DefaultProjectService.java:212) at com.atlassian.jira.web.action.project.AddProject.doExecute(AddProject.java:93) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:59) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:141) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:181) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
This happens when a user tries to create a project they don't actually have permission to browse. For example, you can simply remove the 'jira-users' group from the default project role configuration (as I have done in the attached configuration).
Work Around: Simply give the admin user browse permission to the project.
The project actually gets created, it just that the avatar cannot be changed.
I would assume that an administrator of the project would be able to change the project avatar during creation. I would also assume that the avatar could be changed after, but this also does not appear to be possible. There are some other operations that also don't seem to work unless you have browse permission.
Attachments
Issue Links
- duplicates
-
JRASERVER-17976 project Avatar: Trying to create a project with custom avatar and custom permission scheme give java.lang.IllegalStateException error
- Closed