Changeset 6335 for cowsclient


Ignore:
Timestamp:
19/01/10 14:48:11 (9 years ago)
Author:
domlowe
Message:

Fixed bug reported in  http://proj.badc.rl.ac.uk/badc/ticket/21469

Location:
cowsclient/trunk/cowsclient
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/trunk/cowsclient/lib/wmc_util.py

    r5841 r6335  
    118118            # User is authenticated but doesn't have the required permissions 
    119119            # or an error occurred in the authorization process 
    120             # Read response                    
    121             xresponse = e.read() 
    122             # Send response to user 
    123             self.start_response("%d %s" % (e.code, e.msg), e.headers.dict.items()) 
    124             return xresponse 
     120            # User is authenticated but doesn't have the required permissions 
     121            # or an error occurred in the authorization process 
     122            return abort(403) 
    125123        else: 
    126124            raise e 
  • cowsclient/trunk/cowsclient/public/js/layerControl.js

    r6334 r6335  
    239239     
    240240            } 
     241            else if (resp.status == 403) { 
     242                alert('Login to secure service was unsucessful: you are logged in but do not have the correct permissions to access this data.'); 
     243                this.tree.removeNode(loadingNode); 
     244                this.redrawTree(); 
     245                WMSC.log("Attempt to retrive endpoint " + wmcEndpoint + " failed, response.status = " + resp.status + " (" + resp.statusText + ")" + "."); 
     246            } 
    241247            else { 
    242248                alert("Attempt to retrive endpoint " + wmcEndpoint + " failed, response.status = " + resp.status + " (" + resp.statusText + ")" + "."); 
Note: See TracChangeset for help on using the changeset viewer.