-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External request lookup order issue #703
Comments
@kesara@staff.ietf.org commented From
|
@kesara@staff.ietf.org changed priority from |
@kesara@staff.ietf.org changed status from |
@kesara@staff.ietf.org changed status from |
@kesara@staff.ietf.org set owner to |
@kesara@staff.ietf.org commented The source directory will be allowed by default similar to the templates directory. xml2rfc will introduce a new warning when a
References: |
@kesara@staff.ietf.org changed status from |
@kesara@staff.ietf.org set resolution to |
@kesara@staff.ietf.org commented Fixed in de047a5: Improve local file lookup
Fixes #703. Commit ready for merge. |
@rjsparks@nostrum.com commented Fixed in e5a555c: Merged in de047a5 from krathnayake@ietf.org:\n Improve local file lookup
|
owner:kesara@staff.ietf.org
resolution_fixed
type_defect
| by kesara@staff.ietf.orgWhen processing external request lookups, if the request is not an existing absolute path,
xml2rfc
must first look at thetemplates
directory then fall back to the source directory.At the moment when resolving an external resource such as
resolver logic is already presented with an absolute path like
/<source dir absolute path>/rfc2629-xhtml.ent
soxml2rfc
treatsrfc2629-xhtml.ent
as an absolute path.In scenarios where
rfc2629-xhtml.ent
file exists in the source directory,xml2rfc
tries to access that file source directory instead of therfc2629-xhtml.ent
file intemplates
directory.This results in a local file access error because by default only files in the template directory can be accessed.
Issue migrated from trac:703 at 2022-02-08 07:19:03 +0000
The text was updated successfully, but these errors were encountered: