DO NOT REPLY [Bug 40288] base url requires /, failes otherwise

2012-04-06 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=40288

--- Comment #15 from Glenn Adams gl...@skynav.com 2012-04-07 01:44:07 UTC ---
resetting P2 open bugs to P3 pending further review

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


DO NOT REPLY [Bug 40288] base url requires /, failes otherwise

2012-04-06 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=40288

Glenn Adams gl...@skynav.com changed:

   What|Removed |Added

   Priority|P2  |P3

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-02-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |




--- Additional Comments From [EMAIL PROTECTED]  2007-02-27 01:31 ---
(In reply to comment #10)
 Created an attachment (id=19607)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19607action=view) 
[edit]
 logs full url - not just relative part if there is a failed resolution
 
 Ammends base url as necessary with trailing '/'.  I can't think of any
 reason/instance when you would want to lose the end part of your base url
 because you neglected to append a trailing slash.

Patch applied with some modifications. Thanks Adrian!

Please leave bugs open when submitting patches. We will close them when applying
the patches.
I re-open this bug because the problem isn't entirely solved yet. The full URL
doesn't appear in strict user config validation mode. Also, when I specify a
wrong base-font URL (pointing to a non-existing directory), this throws a
catched FileNotFoundException (FOURIResolver.java, l.159), and null is returned.
Thus FontSetup displays an error message (or throws a ConfigurationException)
with the relative URL (FontSetup.java, l.291).

Vincent

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-02-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288





--- Additional Comments From [EMAIL PROTECTED]  2007-02-27 02:58 ---
Isn't a full URL, that is a URL pointing to a file resource a legal base URL
which will now fail? For example if I set the base URL to the file I am
processing, lets say 'file:///home/mm/test.xml' the previous version would
accept that and resolve references relative to that while now we are appending a
/ and it will fail.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-02-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288





--- Additional Comments From [EMAIL PROTECTED]  2007-02-27 05:07 ---
(In reply to comment #12)
 Isn't a full URL, that is a URL pointing to a file resource a legal base URL
 which will now fail? For example if I set the base URL to the file I am
 processing, lets say 'file:///home/mm/test.xml' the previous version would
 accept that and resolve references relative to that while now we are 
 appending a
 / and it will fail.

Indeed, and I was also concerned by that at the beginning. But that code is used
only to handle the base and font-base elements in the user config file,
where it would be really unusual to see URLs pointing to files instead of
directories. And anyway such cases would happen with power users having a good
understanding of relative URL resolution. If they have the full URL in the error
message, they will understand that they have to remove the last part of it to
make the thing work. So this change looks safe to me.
Now if a majority of the developers have concerns about that I can revert it. We
can also move that piece of code to the place where base/font-base are 
retrieved.

WDYT?
Vincent

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-02-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288





--- Additional Comments From [EMAIL PROTECTED]  2007-02-27 05:39 ---
Admittedly I haven't looked at the code in detail but wouldn't the same logic
apply when setting the base URL programatically. I can easily envisage an
environment where the XML/FO to process comes from some source whose location
varies and the programmer dynamically sets the base URL to the input file in
question. It boils down to that a base URL is something different than a base
directory or base file system path.

I would prefer to strengthen our documentation, add appropriate comments to our
sample config file and may be add a hint as part of the error message compared
to making a FOP base URL meaning something different than in the rest of the URL
resolution world.

But in the end its really a very minor issue and I be happy to go with whatever
the FOP committer majority prefers.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-02-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288





--- Additional Comments From [EMAIL PROTECTED]  2007-02-16 04:12 ---
Created an attachment (id=19603)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19603action=view)
logs full url - not just relative part if there is a failed resolution


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-02-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-02-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19603|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2007-02-16 04:24 ---
Created an attachment (id=19604)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19604action=view)
logs full url - not just relative part if there is a failed resolution

not warns about base urls not ending with '/' chars

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-02-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288





--- Additional Comments From [EMAIL PROTECTED]  2007-02-16 04:38 ---
Not sure I like the warning. There is no requirement for a base URL to end with 
a /.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-02-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19604|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2007-02-16 06:44 ---
Created an attachment (id=19607)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19607action=view)
logs full url - not just relative part if there is a failed resolution

Ammends base url as necessary with trailing '/'.  I can't think of any
reason/instance when you would want to lose the end part of your base url
because you neglected to append a trailing slash.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-02-14 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |




--- Additional Comments From [EMAIL PROTECTED]  2007-02-14 06:31 ---
The full URL isn't yet displayed when the resolution of a resource failed.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-02-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-02-01 07:38 ---
This bug should be fixed/addressed by [PATCH]
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-01-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2006-08-20 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288





--- Additional Comments From [EMAIL PROTECTED]  2006-08-20 20:57 ---
Displaying the full URL in the error message sounds like a good solution to 
me. 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2006-08-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|normal  |critical




--- Additional Comments From [EMAIL PROTECTED]  2006-08-19 07:50 ---
(In reply to comment #0)
 A file:// url in the base element in fopconfig.xml must end with a slash on 
 Linux. If it does not, images (specified by url(foo) where foo is a 
 relative 
 file name) won't be found and will thus not be added to the PDF. FOP should 
 probably either accept both ways to specify the url or display an ERROR that 
 refers to this setting. This would make it much easier to debug this problem.

Well, this is the normal behavior of URLs (and more generally URIs). When
resolving a relative reference against a base URI, all the characters of the
base URI which are to the right of the rightmost slash are removed, and replaced
by the relative path:
file://path/to/images + myImage.png - file://path/to/myImage.png
file://path/to/images/ + myImage.png - file://path/to/images/myImage.png
So the ending slash is important!

The best Fop can do IMO is display the full resolved URI in the error message,
so that the user immediately sees that there is something wrong with URI 
resolution.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2006-08-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|critical|normal




--- Additional Comments From [EMAIL PROTECTED]  2006-08-19 07:54 ---
Hey, I didn't want to change the severity of this bug! Sorry :-\

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


Re: DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2006-08-19 Thread Simon Pepping
 (In reply to comment #0)
  A file:// url in the base element in fopconfig.xml must end with a slash 
  on 
  Linux. If it does not, images (specified by url(foo) where foo is a 
  relative 
  file name) won't be found and will thus not be added to the PDF. FOP should 
  probably either accept both ways to specify the url or display an ERROR 
  that 
  refers to this setting. This would make it much easier to debug this 
  problem.
 
 Well, this is the normal behavior of URLs (and more generally URIs). When
 resolving a relative reference against a base URI, all the characters of the
 base URI which are to the right of the rightmost slash are removed, and 
 replaced
 by the relative path:
 file://path/to/images + myImage.png - file://path/to/myImage.png
 file://path/to/images/ + myImage.png - file://path/to/images/myImage.png
 So the ending slash is important!
 
 The best Fop can do IMO is display the full resolved URI in the error message,
 so that the user immediately sees that there is something wrong with URI 
 resolution.

This could be documented on the configuration web page. There could
also be more info about debugging a configuration file, and about
debugging the font setup.

Regards, Simon

-- 
Simon Pepping
home page: http://www.leverkruid.eu