public class XsrfErrorAction extends JiraWebActionSupport
javax.servlet.forward to figure out what the original request was.JiraWebActionSupport.MessageTypeI18nHelper.BeanFactoryErrorCollection.Reason| Modifier and Type | Field and Description |
|---|---|
static String |
FORWARD_PATH
The path to use when forwarding to this action.
|
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULT| Constructor and Description |
|---|
XsrfErrorAction(RedirectSanitiser safeRedirectChecker) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
doExecute() |
String |
execute() |
String |
getEncodedRedirectUrl() |
String |
getForwardRequestUri() |
boolean |
getNoRequestParameters() |
String |
getRequestMethod() |
Set<Map.Entry<String,List<String>>> |
getRequestParameters() |
String |
getRequestURL()
Returns url to return to once token is re-issued.
|
String |
getSessionTimeoutDuration() |
String |
getSessionTimeoutUnit() |
boolean |
isHasRedirectUrl() |
boolean |
isRequestParamsDisplayEnabled() |
boolean |
isSafeToRedirect() |
boolean |
isSessionExpired() |
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, addMessageToResponse, addReason, addReasons, checkIfUrlIsAllowed, forceRedirect, getActionName, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getComponentInstanceOfType, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDefaultResourceBundle, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getI18nHelper, getJiraContactHelper, getJiraServiceContext, getKeysForPrefix, getLanguage, getLocale, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOfBizDelegator, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getRequestSourceType, getResourceBundle, getResult, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTimeFormat, getUnescapedText, getUntransformedRawText, getUriValidator, getUserFullName, getUserManager, getUserPreferences, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasAnyErrors, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isAdministrator, isIndexing, isInlineDialogMode, isKeyDefined, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, removeKeyOrAddError, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncodeaddError, addErrorMessage, doDefault, doValidation, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddError, addErrorMessage, setErrorMessagespublic static final String FORWARD_PATH
public XsrfErrorAction(RedirectSanitiser safeRedirectChecker)
protected String doExecute() throws Exception
doExecute in class webwork.action.ActionSupportExceptionpublic String execute() throws Exception
execute in interface webwork.action.Actionexecute in class JiraWebActionSupportExceptionpublic boolean isHasRedirectUrl()
public String getEncodedRedirectUrl()
public String getSessionTimeoutDuration()
public String getSessionTimeoutUnit()
public boolean isSessionExpired()
public String getRequestURL()
RedirectSanitiser to make sure returned url is safe (e.g. not a different host).
It will default to the safe FORWARD_PATH should forward request URI be considered unsafe.public boolean isSafeToRedirect()
public String getForwardRequestUri()
public String getRequestMethod()
public boolean getNoRequestParameters()
public boolean isRequestParamsDisplayEnabled()
Copyright © 2002-2024 Atlassian. All Rights Reserved.