Changeset 3447 for cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/data/User.js
- Timestamp:
- 08/20/13 13:54:43 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/data/User.js
r2288 r3447 119 119 var uri = "http://isocat:8080/isocat/rest/user/"+escape(this._login)+"/session/0"; 120 120 this._prefix = jsx3.xml.CDF.getKey(); 121 req = jsx3.net.Request.open("P UT",uri,false,this._prefix+"-"+this._login,this._password);121 req = jsx3.net.Request.open("POST",uri,false,this._prefix+"-"+this._login,this._password); 122 122 org.isocat.data.User.log.info("uri["+uri+"] ["+this._prefix+"-"+this._login+":"+this._password+"]"); 123 req.send("<session/>");// P UT an empty session document123 req.send("<session/>");// POST an empty session document 124 124 } else if (this._method == "shib") { 125 125 var uri = "http://isocat:8080/isocat/rest/shib/sso"; … … 181 181 var uri = "http://isocat:8080/isocat/rest/user/"+escape(this._login)+".xml"; 182 182 183 //req = new jsx3.net.Request().open("P OST",uri,false,this._login,this._password);184 req = new jsx3.net.Request().open("P OST",uri,false);183 //req = new jsx3.net.Request().open("PUT",uri,false,this._login,this._password); 184 req = new jsx3.net.Request().open("PUT",uri,false); 185 185 req.setRequestHeader("Content-Type","application/xml");// IE doesn't set this automagically (FF does), and otherwise NK won't pass it on to the ISOcat accessors 186 186 req.send(res.toString()); … … 265 265 User_prototype.lockDC = function(id) { 266 266 var uri = "http://isocat:8080/isocat/rest/user/"+escape(this._login)+"/session/"+this._session.id+"/lock/dc/"+id; 267 org.isocat.data.User.log.info("request[P UT] uri["+uri+"]");268 var req = jsx3.net.Request.open("P UT",uri,false);269 req.send("<lock/>");// P UT an empty lock document270 org.isocat.data.User.log.info("request[P UT] uri["+uri+"] status["+req.getStatus()+"] response["+req.getResponseText()+"]["+req.getResponseXML()+"]");267 org.isocat.data.User.log.info("request[POST] uri["+uri+"]"); 268 var req = jsx3.net.Request.open("POST",uri,false); 269 req.send("<lock/>");// POST an empty lock document 270 org.isocat.data.User.log.info("request[POST] uri["+uri+"] status["+req.getStatus()+"] response["+req.getResponseText()+"]["+req.getResponseXML()+"]"); 271 271 if (req.getStatus()==201) { 272 272 // acquired the DC lock
Note: See TracChangeset
for help on using the changeset viewer.