Skip to content

Commit b3f4538

Browse files
gaynor@illinois.edugaynor@illinois.edu
authored andcommitted
Getting ready for release
1 parent 48b2cf9 commit b3f4538

6 files changed

Lines changed: 49 additions & 17 deletions

File tree

.idea/workspace.xml

Lines changed: 18 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<dependency>
3333
<groupId>commons-codec</groupId>
3434
<artifactId>commons-codec</artifactId>
35-
<version>1.10</version>
35+
<version>1.11</version>
3636
</dependency>
3737
<dependency>
3838
<groupId>javax.inject</groupId>

crypto/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<dependency>
5353
<groupId>commons-codec</groupId>
5454
<artifactId>commons-codec</artifactId>
55-
<version>1.10</version>
55+
<version>1.11</version>
5656
</dependency>
5757
</dependencies>
5858
</project>

servlet/src/main/java/edu/uiuc/ncsa/security/servlet/ServletDebugUtil.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
public class ServletDebugUtil extends DebugUtil {
1414

1515
public static void printAllParameters(Class klasse, HttpServletRequest request) {
16-
if(!isEnabled()) {return;}
16+
printAllParameters(klasse,request,isEnabled());
17+
}
18+
public static void printAllParameters(Class klasse, HttpServletRequest request, boolean printIt) {
19+
if(!printIt) {return;}
1720
String reqUrl = request.getRequestURL().toString();
1821
String queryString = request.getQueryString(); // d=789
1922
if (queryString != null) {
@@ -59,5 +62,4 @@ public static void printAllParameters(Class klasse, HttpServletRequest request)
5962
}
6063
}
6164

62-
6365
}

util/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<dependency>
6868
<groupId>commons-codec</groupId>
6969
<artifactId>commons-codec</artifactId>
70-
<version>1.10</version>
70+
<version>1.11</version>
7171
</dependency>
7272
<dependency>
7373
<groupId>commons-cli</groupId>

util/src/main/java/edu/uiuc/ncsa/security/util/cli/CLIDriver.java

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,16 @@ protected String doRepeatCommand(String cmdLine) {
189189
say(REPEAT_LAST_COMMAND + " = repeat the last command. Identical to " + HISTORY_LIST_COMMAND + " 0");
190190
return null;
191191
}
192+
cmdLine = cmdLine.substring(REPEAT_LAST_COMMAND.length());
192193
if (0 < commandHistory.size()) {
193-
return commandHistory.get(0);
194+
String current = commandHistory.get(0);
195+
if(cmdLine.trim().length() == 0){
196+
return current;
197+
}
198+
current = current + " " + cmdLine;
199+
commandHistory.add(0, current);
200+
return current;
201+
//return commandHistory.get(0) + " " + cmdLine;
194202
}
195203
say("no commands found");
196204
return null;
@@ -215,10 +223,23 @@ protected String doHistory(String cmdLine) {
215223
if (st.hasMoreTokens()) {
216224
try {
217225
int lineNo = Integer.parseInt(st.nextToken());
226+
String rest = "";
227+
while(st.hasMoreTokens()){
228+
rest = rest + " " + st.nextToken();
229+
}
230+
218231
// allow signed command history numbers. so /h -1 is ok.
219232
lineNo = lineNo <0 ? (commandHistory.size() + lineNo): lineNo;
220-
if (0 <= lineNo && lineNo < commandHistory.size()) {
221-
return commandHistory.get(lineNo);
233+
if(rest.trim().length() == 0){
234+
if (0 <= lineNo && lineNo < commandHistory.size()) {
235+
return commandHistory.get(lineNo);
236+
}
237+
}else{
238+
if (0 <= lineNo && lineNo < commandHistory.size()) {
239+
String current = commandHistory.get(lineNo) + rest;
240+
commandHistory.add(0, current);
241+
return current;
242+
}
222243
}
223244
} catch (Throwable t) {
224245
// do nothing, just print out the history.

0 commit comments

Comments
 (0)