ashenchowthee / zaproxy

Automatically exported from code.google.com/p/zaproxy
0 stars 0 forks source link

Users (for auth) & Forced User not loaded from session #1636

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a fresh ZAP session
2. Proxy some (login) traffic through it
3. Define Auth settings in Default Context (here FORM-based)
4. Fill Users into the Default Context + select Forced User as well
5. Persist session & quit ZAP
6. Reopen session & inspect Default Context Auth (still there) but Users are 
missing (as well Forced User)

What is the expected output? What do you see instead?
Users & Forced User data of contexts are persisted with session

What version of the product are you using? On what operating system?
2.4.0 on Windows

Original issue reported on code.google.com by m...@Christian-Schneider.net on 13 May 2015 at 12:50

GoogleCodeExporter commented 9 years ago
The users and forced user are being saved the problem is during the loading:
56850 [Thread-8] ERROR org.zaproxy.zap.extension.users.ExtensionUserManagement  
- Unable to load Users.
java.lang.NullPointerException
    at org.zaproxy.zap.extension.users.ExtensionUserManagement.loadContextData(Unknown Source)
    at org.parosproxy.paros.model.Model.loadContext(Unknown Source)
    at org.parosproxy.paros.model.Session.addContext(Unknown Source)
    at org.parosproxy.paros.model.Session.open(Unknown Source)
    at org.parosproxy.paros.model.Session$1.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:745)
56852 [Thread-8] ERROR org.zaproxy.zap.extension.forceduser.ExtensionForcedUser 
 - Unable to load forced user.
java.lang.IllegalStateException: No user matching the provided id was found.
    at org.zaproxy.zap.extension.forceduser.ExtensionForcedUser.setForcedUser(Unknown Source)
    at org.zaproxy.zap.extension.forceduser.ExtensionForcedUser.loadContextData(Unknown Source)
    at org.parosproxy.paros.model.Model.loadContext(Unknown Source)
    at org.parosproxy.paros.model.Session.addContext(Unknown Source)
    at org.parosproxy.paros.model.Session.open(Unknown Source)
    at org.parosproxy.paros.model.Session$1.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:745)

Original comment by THC...@gmail.com on 13 May 2015 at 2:13

GoogleCodeExporter commented 9 years ago
ZAP has been migrated to github

This issue will be on github issues with the same ID: 
https://github.com/zaproxy/zaproxy/issues

Original comment by psii...@gmail.com on 5 Jun 2015 at 9:18