glassfish
  1. glassfish
  2. GLASSFISH-20733

GlassFish Logs Date format changes with TimeZone

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2.2
    • Fix Version/s: None
    • Component/s: logging
    • Labels:
      None
    • Environment:
      • Any OS
      • Any 3.1.2.x

      Description

      Problem: (GF Date Timezone in Logs change)

      GlassFish in all it's logging and log rotation uses SimpleDateFormat which uses the Runtime default TimeZone. The issue here is that it is possible that applications may change the system default TimeZone and all the logging are then affected

      Impact:

      a) The log file rotation dates may generated from SimpleDateFormat and hence, sudden changes may cause non-monotonic values.
      b) Also logging date is not consistent (if this happens)

      Example/Testcase:

      1. Calling TimeZone.setDefault(TimeZone.getTimeZone("Europe/London")) will cause all the new server.log to use UK as the timezone.
      2. Then log some entries.

      Concerns

      GlassFish should not be affected by the runtime change or changes
      to TimeZone (for core services) [* note there is no security permission
      to prevent one from doing this *]

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            rajendra_inamdar
            Reporter:
            gfuser9999
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: