Subversion Repositories SmartDukaan

Rev

Rev 35943 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35943 Rev 37728
Line 42... Line 42...
42
		LOGGER.debug("request is received before uri [{}], method [{}]", request.getRequestURI(), request.getMethod());
42
		LOGGER.debug("request is received before uri [{}], method [{}]", request.getRequestURI(), request.getMethod());
43
		LoginDetails loginDetails = null;
43
		LoginDetails loginDetails = null;
44
		try {
44
		try {
45
			loginDetails = cookiesProcessor.getCookiesObject(request);
45
			loginDetails = cookiesProcessor.getCookiesObject(request);
46
		} catch (ProfitMandiBusinessException e) {
46
		} catch (ProfitMandiBusinessException e) {
-
 
47
			// DEBUG, not ERROR: an expired session is an ordinary outcome. The exception is
-
 
48
			// rethrown, so whatever genuinely needs to report it still can.
47
			LOGGER.error("Requested session is expired", e);
49
			LOGGER.debug("Requested session is expired", e);
48
			throw e;
50
			throw e;
49
		}
51
		}
50
		return roleManager.isAuthorizedURI(loginDetails.getRoleIds(), request.getContextPath(), request.getRequestURI(), request.getMethod());
52
		return roleManager.isAuthorizedURI(loginDetails.getRoleIds(), request.getContextPath(), request.getRequestURI(), request.getMethod());
51
	}
53
	}
52
	
54