[Fedora-directory-commits] admservconsole/src/com/netscape/management/admserv/logging AccessLogViewerModel.java, 1.1.1.1, 1.2 ErrorLogViewerModel.java, 1.1.1.1, 1.2

Nathan Kinder (nkinder) fedora-directory-commits at redhat.com
Mon Jul 9 20:10:12 UTC 2007


Author: nkinder

Update of /cvs/dirsec/admservconsole/src/com/netscape/management/admserv/logging
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6902/src/com/netscape/management/admserv/logging

Modified Files:
	AccessLogViewerModel.java ErrorLogViewerModel.java 
Log Message:
Resolves: 247525
Summary: Fixed parameters passed to ReadLog CGI.  Also some packaging/build changes for building RPMs as well as a version bump.



Index: AccessLogViewerModel.java
===================================================================
RCS file: /cvs/dirsec/admservconsole/src/com/netscape/management/admserv/logging/AccessLogViewerModel.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- AccessLogViewerModel.java	22 May 2006 18:14:37 -0000	1.1.1.1
+++ AccessLogViewerModel.java	9 Jul 2007 20:10:10 -0000	1.2
@@ -70,8 +70,7 @@
         try {
             URL url = new URL(_url + "?op=read" + "&start=" +
                     rowStartIndex + "&stop=" +
-                    (rowStartIndex + numRows) + "&" +
-                    URLEncoder.encode("name=../../../../admin-serv/logs/access"));
+                    (rowStartIndex + numRows) + "&name=access");
             HttpManager _httpManager = new HttpManager();
             AccessDataCommClient commClient =
                     new AccessDataCommClient(this, _username, _password);
@@ -101,8 +100,7 @@
                 _logLengthCalculating = true;
                 _logLengthAvailable = false;
                 _logLengthStringBuffer = new StringBuffer();
-                URL url = new URL(_url + "?op=count" + "&" +
-                        URLEncoder.encode("name=../../../../admin-serv/logs/access"));
+                URL url = new URL(_url + "?op=count" + "&name=access");
                 HttpManager _httpManager = new HttpManager();
                 LogLengthCommClient commClient =
                         new AccessLogLengthCommClient(this, _username, _password);


Index: ErrorLogViewerModel.java
===================================================================
RCS file: /cvs/dirsec/admservconsole/src/com/netscape/management/admserv/logging/ErrorLogViewerModel.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- ErrorLogViewerModel.java	22 May 2006 18:14:38 -0000	1.1.1.1
+++ ErrorLogViewerModel.java	9 Jul 2007 20:10:10 -0000	1.2
@@ -65,8 +65,7 @@
         try {
             URL url = new URL(_url + "?op=read" + "&start=" +
                     rowStartIndex + "&stop=" +
-                    (rowStartIndex + numRows) + "&" +
-                    URLEncoder.encode("name=../../../../admin-serv/logs/error"));
+                    (rowStartIndex + numRows) + "&name=error");
             HttpManager _httpManager = new HttpManager();
             ErrorLogDataClient commClient =
                     new ErrorLogDataClient(_username, _password);
@@ -96,8 +95,7 @@
                 _logLengthCalculating = true;
                 _logLengthAvailable = false;
                 _logLengthStringBuffer = new StringBuffer();
-                URL url = new URL(_url + "?op=count" + "&" +
-                        URLEncoder.encode("name=../../../../admin-serv/logs/error"));
+                URL url = new URL(_url + "?op=count" + "&name=error");
                 HttpManager _httpManager = new HttpManager();
                 LogLengthCommClient commClient =
                         new ErrorLogLengthCommClient(_username, _password);




More information about the 389-commits mailing list