Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-615

Improvement for usage of file.mkdirs() in FileSystemSecurityRealm.Identity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • 1.1.0.Beta8
    • 1.1.0.Beta7
    • None

      There is method tempPath() in org.wildfly.security.auth.realm.FileSystemSecurityRealm.Identity which uses file.mkdirs() without checking its return value. It is bad practice to ignore return value of this method (since false means that file has not been created and it can result to any unexpected and confusing failure later).

              darran.lofthouse@redhat.com Darran Lofthouse
              olukas Ondrej Lukas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: