|
From: <kc...@us...> - 2003-05-21 08:15:53
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler
In directory sc8-pr-cvs1:/tmp/cvs-serv10661/src/hk/hku/cecid/phoenix/message/handler
Modified Files:
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.167
retrieving revision 1.168
diff -C2 -d -r1.167 -r1.168
*** MessageServiceHandler.java 20 May 2003 09:40:34 -0000 1.167
--- MessageServiceHandler.java 21 May 2003 08:12:20 -0000 1.168
***************
*** 784,788 ****
(trustedRepo, DELIMITER);
while (listenerDirs.hasMoreTokens()) {
! trustedListenerRepository.add(listenerDirs.nextToken());
}
}
--- 784,792 ----
(trustedRepo, DELIMITER);
while (listenerDirs.hasMoreTokens()) {
! try {
! File f = new File(listenerDirs.nextToken());
! trustedListenerRepository.add(f.getCanonicalPath());
! }
! catch (IOException e) {}
}
}
***************
*** 1506,1511 ****
// 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;
--- 1510,1520 ----
// 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;
|