Shiro
  1. Shiro
  2. SHIRO-177

Wron SimpleCookie expires locale

    Details

      Description

      SimpleCookie.toCookieDate method to format cookie uses default locale. My default locale ru_RU. When browser receive cookie with expires formatted in non en_US locale, browser set cookie expires=session.

      Resolutiojon of this trouble is:

      private static String toCookieDate(Date date)

      { TimeZone tz = TimeZone.getTimeZone(GMT_TIME_ZONE_ID); DateFormat fmt = new SimpleDateFormat(COOKIE_DATE_FORMAT_STRING, Locale.US); fmt.setTimeZone(tz); return fmt.format(date); }

        Issue Links

          Activity

          Vasily Shestkov created issue -
          Kalle Korhonen made changes -
          Field Original Value New Value
          Assignee Kalle Korhonen [ kaosko ]
          Kalle Korhonen made changes -
          Link This issue is duplicated by SHIRO-179 [ SHIRO-179 ]
          Hide
          Kalle Korhonen added a comment -

          Fixed both in 1.0.1 and 1.1.0 branches but since there's a workaround (see the duplicate issue), not critical enough to alone warrant the release of Shiro 1.0.1

          Show
          Kalle Korhonen added a comment - Fixed both in 1.0.1 and 1.1.0 branches but since there's a workaround (see the duplicate issue), not critical enough to alone warrant the release of Shiro 1.0.1
          Kalle Korhonen made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.0.1 [ 12314741 ]
          Fix Version/s 1.1.0 [ 12314742 ]
          Resolution Fixed [ 1 ]
          Les Hazlewood made changes -
          Affects Version/s 1.0.1 [ 12314741 ]
          Fix Version/s 1.0.1 [ 12314741 ]
          Hide
          Les Hazlewood added a comment -

          Closing as this was released in 1.1.0

          Show
          Les Hazlewood added a comment - Closing as this was released in 1.1.0
          Les Hazlewood made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Kalle Korhonen
              Reporter:
              Vasily Shestkov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development