You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (Created) (JIRA)" <ji...@apache.org> on 2011/10/23 00:42:32 UTC

[jira] [Created] (TS-1000) Improve Remap plugin "instantiation" to send the parse From and To URL

Improve Remap plugin "instantiation" to send the parse From and To URL
----------------------------------------------------------------------

                 Key: TS-1000
                 URL: https://issues.apache.org/jira/browse/TS-1000
             Project: Traffic Server
          Issue Type: New Feature
          Components: TS API
            Reporter: Leif Hedstrom
            Assignee: Leif Hedstrom


Right now, when you instantiate a remap plugin (via TSRemapNewInstance), you always get the following "parameters"

argv[0] == The FromURL from remap.config, as a string
argv[1] == The ToURL from remap.config, as a string


Even though this might be useful, it would be much more useful to also have the actual "parsed" URL objects passed to the instantiator. In fact, the strings for the above are simply created upon plugin instantiation, e.g.

err = mp->fromURL.string_get(NULL))


I'm not sure how we can accomplish this without breaking the APIs. Well, without breaking the APIs, we'd have to create a new entry point for plugins to use, e.g.

TSRemapNewInstanceWithUrls()

which adds the from and to URLs as arguments. I'd then argue that argv[0] and argv[1] should not be populated, i.e. make it up to the plugin implementor if he wants to call the string_get() or not.

Thoughts?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (TS-1000) Improve Remap plugin "instantiation" to send the parse From and To URL

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom resolved TS-1000.
-------------------------------

    Resolution: Won't Fix

This is a pointless idea, it happens only on config reload, who cares if it's expensive or inflexible.
                
> Improve Remap plugin "instantiation" to send the parse From and To URL
> ----------------------------------------------------------------------
>
>                 Key: TS-1000
>                 URL: https://issues.apache.org/jira/browse/TS-1000
>             Project: Traffic Server
>          Issue Type: New Feature
>          Components: TS API
>            Reporter: Leif Hedstrom
>            Assignee: Leif Hedstrom
>
> Right now, when you instantiate a remap plugin (via TSRemapNewInstance), you always get the following "parameters"
> argv[0] == The FromURL from remap.config, as a string
> argv[1] == The ToURL from remap.config, as a string
> Even though this might be useful, it would be much more useful to also have the actual "parsed" URL objects passed to the instantiator. In fact, the strings for the above are simply created upon plugin instantiation, e.g.
> err = mp->fromURL.string_get(NULL))
> I'm not sure how we can accomplish this without breaking the APIs. Well, without breaking the APIs, we'd have to create a new entry point for plugins to use, e.g.
> TSRemapNewInstanceWithUrls()
> which adds the from and to URLs as arguments. I'd then argue that argv[0] and argv[1] should not be populated, i.e. make it up to the plugin implementor if he wants to call the string_get() or not.
> Thoughts?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira