You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "James Peach (JIRA)" <ji...@apache.org> on 2016/11/15 04:57:58 UTC

[jira] [Created] (TS-5054) url_sig plugin loads configuration inconsistently

James Peach created TS-5054:
-------------------------------

             Summary: url_sig plugin loads configuration inconsistently
                 Key: TS-5054
                 URL: https://issues.apache.org/jira/browse/TS-5054
             Project: Traffic Server
          Issue Type: Bug
          Components: Plugins
            Reporter: James Peach


{noformat}
  const char *install_dir = TSInstallDirGet();
  snprintf(config_file, sizeof(config_file), "%s/%s/%s", install_dir, "etc/trafficserver", argv[2]);
  TSDebug(PLUGIN_NAME, "config file name: %s", config_file);
  FILE *file = fopen(config_file, "r");
  if (file == NULL) {
    snprintf(errbuf, errbuf_size - 1, "[TSRemapNewInstance] - Error opening file %s.", config_file);
    return TS_ERROR;
  }
{noformat}

The policy for plugins is to load absolute paths if specified, then treat is as a path relative to {{TSConfigDirGet}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)