java.lang.IllegalStateException: You can not update a project with an invalid validation result.

Atlassian JIRA | Brenden Bain [Atlassian] | 7 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Hello, When trying to create a project with a custom avatar you can get the following exception: {noformat} 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) {noformat} 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.

    Atlassian JIRA | 7 years ago | Brenden Bain [Atlassian]
    java.lang.IllegalStateException: You can not update a project with an invalid validation result.
  2. 0

    Hello, When trying to create a project with a custom avatar you can get the following exception: {noformat} 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) {noformat} 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.

    Atlassian JIRA | 7 years ago | Brenden Bain [Atlassian]
    java.lang.IllegalStateException: You can not update a project with an invalid validation result.

    Root Cause Analysis

    1. java.lang.IllegalStateException

      You can not update a project with an invalid validation result.

      at com.atlassian.jira.bc.project.DefaultProjectService.updateProject()
    2. com.atlassian.jira
      AddProject.doExecute
      1. com.atlassian.jira.bc.project.DefaultProjectService.updateProject(DefaultProjectService.java:212)
      2. com.atlassian.jira.web.action.project.AddProject.doExecute(AddProject.java:93)
      2 frames
    3. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.execute(ActionSupport.java:153)
      1 frame
    4. com.atlassian.jira
      JiraActionSupport.execute
      1. com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:59)
      1 frame
    5. webwork.dispatcher
      GenericDispatcher.executeAction
      1. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:141)
      1 frame
    6. com.atlassian.jira
      JiraServletDispatcher.service
      1. com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:181)
      1 frame
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      1 frame
    8. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      2 frames
    9. com.atlassian.core
      HeaderSanitisingFilter.doFilter
      1. com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)
      1 frame
    10. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      2 frames