WillyXJ / facileManager

A modular suite of web apps built with the sysadmin in mind.
www.facilemanager.com
GNU General Public License v2.0
88 stars 37 forks source link

[ISSUE] Cannot Import Zone Files #633

Closed kclinsd closed 4 days ago

kclinsd commented 3 months ago

fM Version : v4.6.2 fmDNS Version : v6.0.5

Ubuntu 24.04 LTS PHP 8.3.6 (cli) (built: Jun 13 2024 15:23:20) (NTS) Copyright (c) The PHP Group Zend Engine v4.3.6, Copyright (c) Zend Technologies with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies Server version: Apache/2.4.58 (Ubuntu) Server built: 2024-04-18T15:13:41 Mysql 8.0

In raising this issue, I confirm the following (please check boxes, eg [X]):


(BUG | ISSUE) Expected Behavior: I can use the import zone files feature.

(BUG | ISSUE) Actual Behavior: I can't use the import zone files feature, after selecting the file to import and selecting the import zone I can press the import zones button, but there are no other options and the zone cannot be imported successfully. I have checked the logs from apache error.log and access.log but did not find any useful clues.

(BUG | ISSUE) Steps to reproduce: Fresh install from this repository using Ubuntu 24.04 LTS, PHP 8.3, Apache/2.4, and MySQL 8.

kclinsd commented 3 months ago

After seeing that there was an update for the fmDNS v6.0.6 module at https://www.facilemanager.com/modules/fmdns/, I tried to upgrade the fmDNS module. After successfully upgrading, it turned out that it was still the same and still couldn't import zones

WillyXJ commented 3 months ago

Besides not importing your zone file, what is the user experience? Any errors? Any blank screens? How long do you wait? How many records are in the file you are importing?

kclinsd commented 3 months ago

I only tried for 2 zones and each zone contained 10 records. When just importing records it also doesn't work. After clicking the import record/zone button, the page immediately returns to the same page. Data is not imported at all.

kclinsd commented 3 months ago

The issue is like this ezgif-3-b5248cfd91

WillyXJ commented 3 months ago

It looks like you aren't selecting the zone to import the data into -- you need to select the zone as well.

kclinsd commented 3 months ago

Still the same, I have tried selecting zone but it still doesn't work

WillyXJ commented 3 months ago

I'm able to reproduce it now. It seems to be a bug introduced in 6.0.5. Feel free to install v6.0.4 until a fix is released.

kclinsd commented 3 months ago

It seems like the bug is in facileManager v4.6.2, because I tried using facileManager v4.6.1 with fmDNS v6.0.6 the import menu can work.

WillyXJ commented 2 months ago

Thanks for the additional testing and report. This should be fixed in the next release of fM.

imyller commented 1 month ago

@WillyXJ could you please consider making an interim release for fmDNS and core soon?

WillyXJ commented 1 month ago

Beta1 of the core and all modules is now available. I'm hoping to get a stable release out in October.

image

WillyXJ commented 4 days ago

This is now fixed in fM 4.7.0 and later.