Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-128

Have assigning req.filename automatically update req.finfo.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.x
    • 3.3.1
    • core
    • None

    Description

      Although it is possible to assign a new value to "req.filename", it is not possible to update "req.finfo" based on the new filename.

      Suggest that if "req.filename" is assigned a new value, that apr_stat() be automatically called to update "req.finfo". Ie., internally mod_python would do something like:

      apr_stat(&r->finfo, r->filename, APR_FINFO_MIN, r->pool);

      I believe that mod_perl supports a similar feature, but would need to confirm this.

      Related to "req.filename", the "req.canonical_filename" should also be writable as when changing "req.filename" the latter should also by rights be updated as well.

      Attachments

        1. MP128_20060423_grahamd_1.diff
          1 kB
          Graham Phillip Dumpleton

        Issue Links

          Activity

            People

              grahamd Graham Phillip Dumpleton
              grahamd Graham Phillip Dumpleton
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: