Intevation / downloadclient

GDI-BY DownloadClient
Apache License 2.0
1 stars 4 forks source link

Username and Password field are emptied to late #96

Closed dmth closed 8 years ago

dmth commented 8 years ago

Phenomenon: When accessing a Protected WFS / ATOM (possibly?) Service you need to hit the "select" button twice in order to access the service.

This does not occur, when you've entered username and password for a DIFFERENT service an select the other service.

Some Printlines:

## FIRST Service is selected
ServiceMetaInformation HTTPSTATUS: 401
CheckServiceType
 CheckServiceType: ServiceURL: http://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
CheckServiceType: Restricted: Now chekcing for U and P.
CheckServiceType: Restricted. U and P not Null
CheckServiceType: Restricted No U and P provided
Stopping discovery now.
## Now Username and Password are entered
## An other service is selected.
ServiceMetaInformation HTTPSTATUS: 401
CheckServiceType
CheckServiceType: ServiceURL: https://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd-https.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
CheckServiceType: Restricted: Now chekcing for U and P.
CheckServiceType: Restricted. U and P not Null
CheckServiceType: Username and Password not empty
CheckServiceType: Username ********* <- obfuscated
CheckServiceType: Password ********* <- obfuscated
CheckService: ServiceURL: https://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd-https.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
ServiceChecker.simpleRestricted URL: https://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd-https.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
ServiceChecker.simpleRestricted evaluates to TRUE

Username and Password should not be used here!

The Hit Button Twice behavior looks like this:

ServiceMetaInformation HTTPSTATUS: 401
CheckServiceType
CheckServiceType: ServiceURL: https://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd-https.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
CheckServiceType: Restricted: Now chekcing for U and P.
CheckServiceType: Restricted. U and P not Null
CheckServiceType: Restricted No U and P provided
Stopping discovery now.

## Added Username and Password
## Hit the button
ServiceMetaInformation HTTPSTATUS: 401
CheckServiceType
CheckServiceType: ServiceURL: https://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd-https.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
CheckServiceType: Restricted: Now chekcing for U and P.
CheckServiceType: Restricted. U and P not Null
CheckServiceType: Username and Password not empty
CheckServiceType: Username  ********* <- obfuscated
CheckServiceType: Password  ********* <- obfuscated
CheckService: ServiceURL: https://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd-https.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
ServiceChecker.simpleRestricted URL: https://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd-https.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
ServiceChecker.simpleRestricted evaluates to TRUE
ServiceMetaInformation HTTPSTATUS: 401
CheckServiceType
CheckServiceType: ServiceURL: https://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd-https.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
CheckServiceType: Restricted: Now chekcing for U and P.
CheckServiceType: Restricted. U and P not Null
CheckServiceType: Username and Password not empty
CheckServiceType: Username  ********* <- obfuscated
CheckServiceType: Password  ********* <- obfuscated
CheckService: ServiceURL: https://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd-https.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
ServiceChecker.simpleRestricted URL: https://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd-https.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
ServiceChecker.simpleRestricted evaluates to TRUE

##  No Map was shown.... Hitting again:

ServiceMetaInformation HTTPSTATUS: 401
CheckServiceType
CheckServiceType: ServiceURL: https://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd-https.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
CheckServiceType: Restricted: Now chekcing for U and P.
CheckServiceType: Restricted. U and P not Null
CheckServiceType: Username and Password not empty
CheckServiceType: Username  ********* <- obfuscated
CheckServiceType: Password  ********* <- obfuscated
CheckService: ServiceURL: https://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd-https.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
ServiceChecker.simpleRestricted URL: https://geoserv.weichand.de/cgi-bin/test-mapserver7-pwd-https.cgi?service=WFS&acceptversions=2.0.0&request=GetCapabilities
ServiceChecker.simpleRestricted evaluates to TRUE
## Now a Map is shown.
dmth commented 8 years ago

After implementing a new way to load services, this issue is resolved.