Project

General

Profile

« Previous | Next » 

Revision 5057

Added by daigle over 14 years ago

Add session validation to metacat tpc and workflow scheduler. Fix sanparks skin session management so it always uses the logged in session id.

View differences:

WorkflowSchedulerClient.java
94 94

  
95 95
		try {
96 96
			params.put("action", new String[] { "scheduleWorkflow" });
97
			params.put("sessionid", new String[] { RequestUtil.getSessionData(request).getId() });
97 98
			
98 99
			String schedulerUrl = PropertyService.getProperty("workflowScheduler.url");
99 100
			String result = RequestUtil.get(schedulerUrl, params);
......
155 156
			String[] groups) throws MetacatSchedulerException {
156 157
		try {
157 158
			params.put("action", new String[] { "unscheduleWorkflow" });
159
			params.put("sessionid", new String[] { RequestUtil.getSessionData(request).getId() });
158 160
			
159 161
			String schedulerUrl = PropertyService.getProperty("workflowScheduler.url");
160 162
			String result = RequestUtil.get(schedulerUrl, params);
......
217 219
		 		
218 220
		try {
219 221
			params.put("action", new String[] { "rescheduleWorkflow" });
222
			params.put("sessionid", new String[] { RequestUtil.getSessionData(request).getId() });
220 223
			
221 224
			String schedulerUrl = PropertyService.getProperty("workflowScheduler.url");
222 225
			String result = RequestUtil.get(schedulerUrl, params);
......
267 270
			String[] groups) throws MetacatSchedulerException {
268 271
		try {
269 272
			params.put("action", new String[] { "deleteScheduledWorkflow" });
273
			params.put("sessionid", new String[] { RequestUtil.getSessionData(request).getId() });
270 274
			
271 275
			String schedulerUrl = PropertyService.getProperty("workflowScheduler.url");
272 276
			String result = RequestUtil.get(schedulerUrl, params);
......
327 331
			Hashtable<String, String[]> params, String username,
328 332
			String[] groups) throws MetacatSchedulerException {
329 333
		
330
//		StringWriter stringWriter = null;
331 334
		try {	
332 335
			params.put("action", new String[] { "getScheduledWorkflow" });
333 336
			
334 337
			String schedulerUrl = PropertyService.getProperty("workflowScheduler.url");
335 338
			String result = RequestUtil.get(schedulerUrl, params);
336 339
			
337
//			stringWriter = new StringWriter();
338
			
339 340
			String qformats[] = params.get("qformat");			
340 341
			String qformat = null;
341 342
			if (qformats == null || qformats.length == 0) {

Also available in: Unified diff