|
From: <kc...@us...> - 2003-05-21 08:10:56
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler
In directory sc8-pr-cvs1:/tmp/cvs-serv9842/src/hk/hku/cecid/phoenix/message/handler
Modified Files:
Tag: b0931
MessageServiceHandler.java
Log Message:
compare trusted repository paths with canonical path
Index: MessageServiceHandler.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler/MessageServiceHandler.java,v
retrieving revision 1.148.2.15
retrieving revision 1.148.2.16
diff -C2 -d -r1.148.2.15 -r1.148.2.16
*** MessageServiceHandler.java 20 May 2003 04:58:46 -0000 1.148.2.15
--- MessageServiceHandler.java 21 May 2003 08:10:53 -0000 1.148.2.16
***************
*** 785,789 ****
(trustedRepo, DELIMITER);
while (listenerDirs.hasMoreTokens()) {
! trustedListenerRepository.add(listenerDirs.nextToken());
}
}
--- 785,793 ----
(trustedRepo, DELIMITER);
while (listenerDirs.hasMoreTokens()) {
! try {
! File f = new File(listenerDirs.nextToken());
! trustedListenerRepository.add(f.getCanonicalPath());
! }
! catch (IOException e) {}
}
}
***************
*** 1497,1502 ****
// Not client message listener and it's not using trusted repository
if (clientUrl.getProtocol().equals(MessageListener.PROTOCOL_FILE)) {
! boolean isServerRepository =
! trustedListenerRepository.contains(clientUrl.getPath());
boolean isClientRepository =
listener instanceof ClientMessageListenerImpl;
--- 1501,1511 ----
// Not client message listener and it's not using trusted repository
if (clientUrl.getProtocol().equals(MessageListener.PROTOCOL_FILE)) {
! File clientUrlFile = new File(clientUrl.getPath());
! boolean isServerRepository = false;
! try {
! isServerRepository = trustedListenerRepository.contains(
! clientUrlFile.getCanonicalPath());
! }
! catch (IOException e) {}
boolean isClientRepository =
listener instanceof ClientMessageListenerImpl;
|