You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/05/20 03:07:59 UTC

[Bug 1323] Changed - Should return better error message for non-URI paths

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1323

*** shadow/1323	Fri May 18 13:15:37 2001
--- shadow/1323.tmp.8148	Sat May 19 18:07:59 2001
***************
*** 1,10 ****
  +============================================================================+
! | Xalan treats UNC names as relative paths                                   |
  +----------------------------------------------------------------------------+
  |        Bug #: 1323                        Product: XalanJ2                 |
! |       Status: NEW                         Version: 2.0.1                   |
! |   Resolution:                            Platform: PC                      |
! |     Severity: Major                    OS/Version: Windows NT/2K           |
  |     Priority: Medium                    Component: org.apache.xml.utils    |
  +----------------------------------------------------------------------------+
  |  Assigned To: xalan-dev@xml.apache.org                                     |
--- 1,10 ----
  +============================================================================+
! | Should return better error message for non-URI paths                       |
  +----------------------------------------------------------------------------+
  |        Bug #: 1323                        Product: XalanJ2                 |
! |       Status: RESOLVED                    Version: 2.0.1                   |
! |   Resolution: REMIND                     Platform: PC                      |
! |     Severity: Enhancement              OS/Version: Windows NT/2K           |
  |     Priority: Medium                    Component: org.apache.xml.utils    |
  +----------------------------------------------------------------------------+
  |  Assigned To: xalan-dev@xml.apache.org                                     |
***************
*** 110,113 ****
  
  ------- Additional Comments From curcuru@apache.org  2001-05-18 13:15 -------
  Better bug categorization: API/programmatic problems versus stylesheet 
! execution/output creation problems.
--- 110,130 ----
  
  ------- Additional Comments From curcuru@apache.org  2001-05-18 13:15 -------
  Better bug categorization: API/programmatic problems versus stylesheet 
! execution/output creation problems.
! 
! ------- Additional Comments From curcuru@apache.org  2001-05-19 18:07 -------
! After discussing this with several committers, I've changed the summary of this 
! bug and turned it into an enhancement (and do not intend to apply the patch 
! attached here), for several reasons:
! The JAXP spec clearly states that it expects URI's to it's files, not native 
! paths (which would include UNC paths on a Windows system).  Adding this patch to 
! allow UNC names would actually be incorrect as per the spec; plus it would 
! require more testing and possibly documentation for the rest of our users who 
! never use UNC paths.
! There's a fairly easy and perfectly functional workaround: simply pass your 
! local path (UNC or whatever) into a java.io.File object, and create your sources 
! that way instead of passing a string.
! I will leave this bug open as an enhancement, since I agree that the error 
! message isn't as helpful as it should be, and even if we're following the spec 
! that only allows URIs, we should still be more polite to users who don't realize 
! this at first.