Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-5054

url_sig plugin loads configuration inconsistently

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 7.1.0
    • Component/s: Plugins
    • Labels:
      None

      Description

        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;
        }
      

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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jamespeach James Peach
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: