Ticket #2488: spacesInWindowsURLs.patch

File spacesInWindowsURLs.patch, 2.2 KB (added by mira, 15 years ago)
  • modules/org.sophie2.s2s/src/main/java/org/sophie2/s2s/ServerModule.java

    ### Eclipse Workspace Patch 1.0
    #P sophie
     
    4646                                                ServerResourceHelper helper = resourceHelperExtension.getObject(); 
    4747                                                helper.initialize(); 
    4848 
    49                                                 WebAppModule.get().startServer(); 
     49                                                WebAppModule.get().startServer(9016); 
    5050                                        } 
    5151                                }); 
    5252 
  • modules/org.sophie2.server.webui/src/main/resources/jsps/resource_book.jspx

     
    5050                                                var bookRefValue = href + separator + serverUrl + separator + userSessionId; 
    5151                                                var attributes = { 
    5252                                                        code: "org.sophie2.launcher.AppletMain.class", 
    53                                                         codebase: "http://sophie.org/sophie2-reader-applet/reader/", 
     53                                                        codebase: "http://straxil.asteasolutions.net/applet-demo/reader/",  
    5454                                                        archive: "org.sophie2.launcher-2.0.1.jar", 
    5555                                                        width: width, 
    5656                                                        height: height 
  • modules/org.sophie2.reader/src/main/java/org/sophie2/reader/ReaderModule.java

     
    128128                //open only first book. 
    129129                ResourceRefR4 bookRef; 
    130130                AccessOptions options = AccessOptions.DEFAULT_ACCESS_OPTIONS.modifyViewId(); 
    131                 String bookLocation = startUpBookFiles[0]; 
     131                //if this string comes from a windows url 
     132                String bookLocation = startUpBookFiles[0].replaceAll("%20", " "); 
    132133                if (bookLocation.startsWith(LocationPrefix.FILE)) { 
    133134                        bookRef = ResourceRefR4.make(bookLocation); 
    134135                } else if (bookLocation.startsWith(LocationPrefix.SERVER)) {