Author: max
Date: 2007-08-22 10:18:35 -0700 (Wed, 22 Aug 2007)
New Revision: 6183

Modified:
   openlaszlo/branches/wafflecone/lps/utils/viewer/viewer.jsp
Log:
Change 20070822-maxcarlson-o by [EMAIL PROTECTED] on 2007-08-22 10:06:35 PDT
    in /Users/maxcarlson/openlaszlo/wafflecone
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: Vis source viewer JSP

New Features:

Bugs Fixed: LPP-4425 - Source for Small applications, Demos, and Components 
can't be viewed

Technical Reviewer: promanik
QA Reviewer: ben
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: Use new fileresolver API
    

Tests: 
http://localhost:8080/wafflecone/lps/utils/viewer/viewer.jsp?file=/demos/amazon/amazon.lzx
 works again.



Modified: openlaszlo/branches/wafflecone/lps/utils/viewer/viewer.jsp
===================================================================
--- openlaszlo/branches/wafflecone/lps/utils/viewer/viewer.jsp  2007-08-22 
17:10:53 UTC (rev 6182)
+++ openlaszlo/branches/wafflecone/lps/utils/viewer/viewer.jsp  2007-08-22 
17:18:35 UTC (rev 6183)
@@ -56,7 +56,7 @@
       try {
        String p = getServletContext().getRealPath(fname);
        if (p != null && !new File(p).exists()) {
-           String resolved = FileResolver.DEFAULT_FILE_RESOLVER.resolve(fname, 
base).toString();
+           String resolved = FileResolver.DEFAULT_FILE_RESOLVER.resolve(fname, 
base, false).toString();
            if (resolved.startsWith(getServletContext().getRealPath(""))) {
              fname = 
resolved.substring(getServletContext().getRealPath("").length());
              found = true;
@@ -178,6 +178,6 @@
     writer.close();
 %>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2007 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to