Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    HAproxy-Devel config GUI bug

    Scheduled Pinned Locked Moved Cache/Proxy
    haproxybugbackendacl
    1 Posts 1 Posters 596 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MrPeteM
      MrPete
      last edited by

      A subtle bug discovered in the backend config:
      Assume a typical use of HAproxy to select among several web server names, using ACL's and actions.

      1. Note that you can NOT do this all in a single command (at least the way it is interpreted right now)
      • If you define multiple options in a single ACL, it seems that ought to work...
      • Because while each action specified can be tied to a specific ACL option...
      • ... If you do that, you get an error.
      1. So, I create a separate ACL+action pair for each option. If everything is configured just-so, it does work correctly.

      2. Here is an easy typo, that could be caught in the GUI, but causes no error until compile time, and requires some head-scratching to decipher:

      • Set up ACL "xyz" on host matching xyz.example.com

      • Set up action underneath (obviously tied to that ACL) to use server xyz

      • Save... set up other ACL's...

      • This one causes a compile error, because a crucial field was left blank.

      • "Condition ACL names" must be filled in by manually typing "xyz" to match the ACL name "xyz" above.

      That cannot be left blank. ALWAYS generates an error because the config produced is "use-server xyz" which is not allowed. MUST say "use-server xyz if xyz"

      So. Why not either auto-fill, or have a dropdown to select from available ACL's, or give an error if left blank?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.