The firewall encountered an error after upgrading to 23.01
-
@hugoeyng it could be that it won't start because the array holding the urls can not be iterated due to that line being removed. Can you find where that specific array is instantiated at? Also does this array have the correct elements in it? I see it they have it instantiated sgxml as an array in that function at the top. Come to think of it, what is that array pfxml used for is that the full config of pfsense? You have to convert it too or reseralize it? Keep in mind I am still a computer science student. PfSense farsantes me. It's amazing. I really want to learn how to debug the software like the ide jGRASP's debug. I can do programming in Java and Python. Again when you are coding for specific firewall hardware how can you debug it without the hardware? Do you use a virtual machine. I really need to learn that. We learned how to code but not with specific environments.
-
@hugoeyng can you do a try catch instead?
-
@jonathanlee please write how would you do it
-
I know in Java It would be something like this photo. Again it needs the C programming version of it so you can read the specific error. This photo I have a array that is out of bounds when it prints that element, notice the error is caught. You can do more than print the error you can redirect it to other code also, so if something was missing in that config it could flag it if needed would need more code.
-