mail_mod/util/normalize.lua:54: attempt to call method 'gmatch' (a nil value) #6198

Closed
opened 2024-02-03 18:27:30 +00:00 by AliasAlreadyTaken · 9 comments
2024-02-03 18:26:10: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'yl_report' in callback environment_Step(): ....0/Minetest_test/bin/../mods/mail_mod/util/normalize.lua:54: attempt to call method 'gmatch' (a nil value)
2024-02-03 18:26:10: ERROR[Main]: stack traceback:
2024-02-03 18:26:10: ERROR[Main]: 	....0/Minetest_test/bin/../mods/mail_mod/util/normalize.lua:54: in function 'parse_player_list'
2024-02-03 18:26:10: ERROR[Main]: 	....0/Minetest_test/bin/../mods/mail_mod/util/normalize.lua:39: in function 'normalize_players_and_add_recipients'
2024-02-03 18:26:10: ERROR[Main]: 	...test_test/bin/../mods/yl_commons/chatcommands/ignore.lua:305: in function 'send'
2024-02-03 18:26:10: ERROR[Main]: 	.../5.8.0/Minetest_test/bin/../mods/yl_report/functions.lua:12: in function 'mail_send'
2024-02-03 18:26:10: ERROR[Main]: 	.../5.8.0/Minetest_test/bin/../mods/yl_report/functions.lua:61: in function 'result_of_gitea'
2024-02-03 18:26:10: ERROR[Main]: 	/home/mt/5.8.0/Minetest_test/bin/../mods/yl_report/init.lua:59: in function 'callback'
2024-02-03 18:26:10: ERROR[Main]: 	/home/mt/5.8.0/Minetest_test/bin/../builtin/game/misc.lua:213: in function 'func'
2024-02-03 18:26:10: ERROR[Main]: 	...e/mt/5.8.0/Minetest_test/bin/../builtin/common/after.lua:27: in function <...e/mt/5.8.0/Minetest_test/bin/../builtin/common/after.lua:11>
2024-02-03 18:26:10: ERROR[Main]: 	...t/5.8.0/Minetest_test/bin/../builtin/common/register.lua:26: in function <...t/5.8.0/Minetest_test/bin/../builtin/common/register.lua:12>
``` 2024-02-03 18:26:10: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'yl_report' in callback environment_Step(): ....0/Minetest_test/bin/../mods/mail_mod/util/normalize.lua:54: attempt to call method 'gmatch' (a nil value) 2024-02-03 18:26:10: ERROR[Main]: stack traceback: 2024-02-03 18:26:10: ERROR[Main]: ....0/Minetest_test/bin/../mods/mail_mod/util/normalize.lua:54: in function 'parse_player_list' 2024-02-03 18:26:10: ERROR[Main]: ....0/Minetest_test/bin/../mods/mail_mod/util/normalize.lua:39: in function 'normalize_players_and_add_recipients' 2024-02-03 18:26:10: ERROR[Main]: ...test_test/bin/../mods/yl_commons/chatcommands/ignore.lua:305: in function 'send' 2024-02-03 18:26:10: ERROR[Main]: .../5.8.0/Minetest_test/bin/../mods/yl_report/functions.lua:12: in function 'mail_send' 2024-02-03 18:26:10: ERROR[Main]: .../5.8.0/Minetest_test/bin/../mods/yl_report/functions.lua:61: in function 'result_of_gitea' 2024-02-03 18:26:10: ERROR[Main]: /home/mt/5.8.0/Minetest_test/bin/../mods/yl_report/init.lua:59: in function 'callback' 2024-02-03 18:26:10: ERROR[Main]: /home/mt/5.8.0/Minetest_test/bin/../builtin/game/misc.lua:213: in function 'func' 2024-02-03 18:26:10: ERROR[Main]: ...e/mt/5.8.0/Minetest_test/bin/../builtin/common/after.lua:27: in function <...e/mt/5.8.0/Minetest_test/bin/../builtin/common/after.lua:11> 2024-02-03 18:26:10: ERROR[Main]: ...t/5.8.0/Minetest_test/bin/../builtin/common/register.lua:26: in function <...t/5.8.0/Minetest_test/bin/../builtin/common/register.lua:12> ```
AliasAlreadyTaken added the
1. kind/bug
2. prio/critical
3. source/mod upstream
labels 2024-02-03 18:27:46 +00:00
flux added
3. source/integration
and removed
3. source/mod upstream
labels 2024-02-03 20:08:03 +00:00
Member

this is an integration issue, not necessarily a mail_mod issue. they changed part of their internal API and the "ignore" code doesn't account for that.

this is an integration issue, not necessarily a mail_mod issue. they changed part of their internal API and the "ignore" code doesn't account for that.
Member

this is the commit that broke us: 570cf788ec

this is the commit that broke us: https://github.com/mt-mods/mail/commit/570cf788ecca9f4174f923b07e46b9bb84c419db
Member

i remarked in #5480 that our code was brittle, i guess this demonstrates that. i'm no longer sure what part of the code i need to modify to ensure things are ignored properly.

i remarked in #5480 that our code was brittle, i guess this demonstrates that. i'm no longer sure what part of the code i need to modify to ensure things are ignored properly.
Member

i've removed the broken code while i try to figure out how to achieve the same effect again c9c06b3db0

i've removed the broken code while i try to figure out how to achieve the same effect again https://gitea.your-land.de/your-land/yl_commons/commit/c9c06b3db074dd5ad12ff86304f563b53ebbfaed
Member

this seems to work: 0e53886a8d

this seems to work: https://gitea.your-land.de/your-land/yl_commons/commit/0e53886a8d68001b0edc8b03022878e2a2f61ee6
AliasAlreadyTaken added this to the 1.1.123 milestone 2024-02-04 18:01:50 +00:00
Author
Owner

You think it's ready for QA?

You think it's ready for QA?
flux added the
4. step/ready to QA test
label 2024-02-04 20:11:05 +00:00
Member

yes

yes
Member

Tried ignoring my one of my alts and sending mails to both, ignore/unignore works as expected.

Tried ignoring my one of my alts and sending mails to both, ignore/unignore works as expected.
whosit added the
ugh/QA OK
label 2024-02-05 16:06:12 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2024-03-28 21:20:28 +00:00
Member

live

live
flux closed this issue 2024-03-28 21:20:34 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#6198
No description provided.