Skip to content

Unit test org.owasp.esapi.UserTest throws InvalidAccountName Exception #11

Closed

Description

@meg23

From [email protected] on April 07, 2008 13:14:16

What steps will reproduce the problem? 1. Brought up Project under Eclipse 3.3 using Java 1.6
2. Added "test" directory as a source directory.
3. Added VM argument
-Dorg.owasp.esapi.resources="/owasp/test/testresources"
4. The UserTest unit tests report an error:
org.owasp.esapi.errors.AuthenticationCredentialsException: Invalid
account name
at org.owasp.esapi.Authenticator.verifyAccountNameStrength
(Authenticator.java:653)
at org.owasp.esapi.User.(User.java:190)
at org.owasp.esapi.Authenticator.createUser
(Authenticator.java:237)
(the rest deleted)... What is the expected output? What do you see instead? Expected a "passed" or "failed" What version of the product are you using? On what operating system? Product Version: ESAPI v1.1.1 Complete JAR file
OS: Windows XP
Java: 1.6 update 5

Original issue: http://code.google.com/p/owasp-esapi-java/issues/detail?id=1

Activity

  1. meg23 commented on Nov 13, 2014

    @meg23
    Author

    From [email protected] on April 07, 2008 10:28:41

    I changed the -D option to use an absolute path and that fixed this issue.

  2. meg23 commented on Nov 13, 2014

    @meg23
    Author

    From planetlevel on August 30, 2008 17:24:30

    The resource path mechanism has been updated to use the classpath, and then as a
    backup, the -D environment variable is used.

    Status: Fixed

  3. added a commit that references this issue on Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions