Skip to content

Commit

Permalink
Merge pull request #696 from mwarhaftig/issue665
Browse files Browse the repository at this point in the history
Issue #665 - Relaxed Test & Page History to only secure-read.
  • Loading branch information
amolenaar committed Mar 30, 2015
2 parents db14ad1 + 9b9fbfb commit 8021128
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
!|operation is authenticated|
|operation|
|purgeHistory|
|testHistory|
|pageHistory|
|shutdown|
|renamePage|
|deletePage|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@
|importAndView|
|getPage|
|packet|
|testHistory|
|pageHistory|

Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import java.util.Date;

import fitnesse.FitNesseContext;
import fitnesse.authentication.AlwaysSecureOperation;
import fitnesse.authentication.SecureOperation;
import fitnesse.authentication.SecureResponder;
import fitnesse.authentication.SecureReadOperation;
import fitnesse.html.template.HtmlPage;
import fitnesse.html.template.PageTitle;
import fitnesse.http.Request;
Expand Down Expand Up @@ -97,6 +97,6 @@ public void setResultsDirectory(File resultsDirectory) {
}

public SecureOperation getSecureOperation() {
return new AlwaysSecureOperation();
return new SecureReadOperation();
}
}
4 changes: 2 additions & 2 deletions src/fitnesse/responders/testHistory/PageHistoryResponder.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

import util.FileUtil;
import fitnesse.FitNesseContext;
import fitnesse.authentication.AlwaysSecureOperation;
import fitnesse.authentication.SecureOperation;
import fitnesse.authentication.SecureResponder;
import fitnesse.authentication.SecureReadOperation;
import fitnesse.http.Request;
import fitnesse.http.Response;
import fitnesse.http.Response.Format;
Expand Down Expand Up @@ -187,6 +187,6 @@ private void prepareResponse(Request request) {
}

public SecureOperation getSecureOperation() {
return new AlwaysSecureOperation();
return new SecureReadOperation();
}
}
4 changes: 2 additions & 2 deletions src/fitnesse/responders/testHistory/TestHistoryResponder.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import org.apache.velocity.VelocityContext;

import fitnesse.FitNesseContext;
import fitnesse.authentication.AlwaysSecureOperation;
import fitnesse.authentication.SecureOperation;
import fitnesse.authentication.SecureReadOperation;
import fitnesse.authentication.SecureResponder;
import fitnesse.http.Request;
import fitnesse.http.Response;
Expand Down Expand Up @@ -63,6 +63,6 @@ private boolean formatIsXML(Request request) {
}

public SecureOperation getSecureOperation() {
return new AlwaysSecureOperation();
return new SecureReadOperation();
}
}

0 comments on commit 8021128

Please sign in to comment.