Unable to create release due to date format exception when server local is not english.

Create issue
Issue #82 new
Charlie Misonne created an issue

We are unable to create new releases.

Example: we try to create a release with date in the datepicker.
Saving this results in an error.

19/May/20 seems a perfecty valid date for d/MMM/yy to me.

UPDATE: apparently I can create a release when I use the month in Dutch instead of English as follows: 19/Mei/2020
Our server locale is nl-BE (Dutch - Belgium)

  • Jira version: 8.5.1
  • JRE version: 1.8.0_202
  • Releasedog verion: 1.2.0.0
2020-05-20 09:31:42,890 http-nio-8080-exec-3104 ERROR john.doe 571x478249x2 942lef 141.135.70.180:56558,127.0.0.1 /rest/releasedog/1.0/release [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: fromDisplayDateString : unable to parse 19/May/20 using d/MMM/yy
java.lang.RuntimeException: fromDisplayDateString : unable to parse 19/May/20 using d/MMM/yy
    at com.abdhiware.releasedog.ReleaseDateManager.fromDisplayDateString(ReleaseDateManager.java:46)
    at com.abdhiware.releasedog.ReleaseDateManager.toInternalDate(ReleaseDateManager.java:36)
    at com.abdhiware.releasedog.ReleaseService.mapToEntity(ReleaseService.java:139)
    at com.abdhiware.releasedog.ReleaseService.addRelease(ReleaseService.java:159)
    at com.abdhiware.releasedog.ReleaseResource.addRelease(ReleaseResource.java:130)
    ... 3 filtered
    at java.lang.reflect.Method.invoke(Method.java:498)
    ... 18 filtered
    at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:159)
    ... 1 filtered
    at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:69)
    ... 36 filtered
    at com.atlassian.jira.plugin.mobile.web.filter.MobileAppRequestFilter.doFilter(MobileAppRequestFilter.java:37)
    ... 4 filtered
    at com.atlassian.jira.plugin.mobile.login.MobileLoginSuccessFilter.doFilter(MobileLoginSuccessFilter.java:54)
    ... 3 filtered
    at com.atlassian.diagnostics.internal.platform.monitor.http.HttpRequestMonitoringFilter.doFilter(HttpRequestMonitoringFilter.java:55)
    ... 8 filtered
    at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
    ... 57 filtered
    at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:66)
    ... 1 filtered
    at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:64)
    ... 16 filtered
    at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37)
    ... 19 filtered
    at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30)
    ... 10 filtered
    at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
    ... 4 filtered
    at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36)
    ... 7 filtered
    at com.zendesk.plugin.rest.RestAuthenticationFilter.doFilter(RestAuthenticationFilter.java:101)
    ... 22 filtered
    at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25)
    ... 25 filtered
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.text.ParseException: Unparseable date: "19/May/20"
    at java.text.DateFormat.parse(DateFormat.java:366)
    at com.abdhiware.releasedog.ReleaseDateManager.fromDisplayDateString(ReleaseDateManager.java:44)
    ... 257 more

Comments (2)

  1. Peter Muldoon

    ReleaseDog

    Effective Wednesday 18th May 2022, ongoing maintenance & support for ReleaseDog has been transferred to Votazz

    The add-on was out-of-date and un-supported

    The latest version 1.2.0, Jira Server 8.0.0 - 8.14.1 - was released on March 30th 2020

    You like many other users, have been logging support requests & calling for upgrades, without response

    This is about to change:-

    ‌ We propose to bring the app up the the latest Jira 9.0.0 release

    ‌ We will move the app to Data Centre

    ‌ We will change the app from free and un-supported, to supported on subscription

    ‌ We expect to have the new upgraded app available by end on June

    ‌ We propose to change the app name to Release Manager for Jira

    We invite you to submit recommended changes and enhancements to make the app work better for you in your environment

    You can contact us at:- support@votazz.co

    We look forward to working with you and improving the support and functionality of the app

    Regards

    Votazz Support Team

  2. Log in to comment