Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-378

PropertiesRealm able to reload Classpath properties files

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.2.0
    • None
    • Realms
    • Windows 7 x64, Apache Tomcat 6.0.35, JDK 1.6.0_31 X64

    Description

      When deploying a project using shiro on Tomcat, users.properties file could be referenced as classpath files, with condition in PropertiesRealm.afterRoleCacheSet() at line 166, automatic file reloading is impossible.

      if (this.resourcePath.startsWith(ResourceUtils.FILE_PREFIX) && scheduler != null) {
      startReloadThread();
      }

      Attachments

        1. SHIRO-378-patch.txt
          11 kB
          Ludovic Garcia

        Activity

          People

            Unassigned Unassigned
            coxalass Ludovic Garcia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: