speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
292 stars 36 forks source link

`<URL>` cannot be parsed #529

Closed pgundlach closed 8 months ago

pgundlach commented 8 months ago

Discussed in https://github.com/speedata/publisher/discussions/528

Originally posted by **pr-apes** October 18, 2023 @pgundlach I have the following layout (`testing.xml`): ``` xml ``` With the following `data.xml`: ``` xml https://a.b/c ``` I get fine validation from both: ``` xmllint --noout testing.xml && xmllint --noout --relaxng ../speedata-publisher/share/schema/layoutschema-en.rng testing.xml ``` But `sp --layout testing.xml` gives the following error: ```` […]\commands.lua:4633: invalid value (table) at index 1 in table for 'concat' stack traceback: ...tilidades\speedata-publisher\sw/lua/publisher\spinit.lua:54: in function 'call' ...tilidades\speedata-publisher\sw/lua/publisher\spinit.lua:397: in function 'main_loop' ...tilidades\speedata-publisher\sw/lua/publisher\spinit.lua:406: in main chunk [C]: in function 'require' [\directlua]:1: in main chunk Stop processing data 1 errors occurred ```` From reasons unknown to me, `` cannot be parsed. It has to be my stupid mistake (but I ignore which one 😅). Many thanks for your help.
pgundlach commented 8 months ago

This is a bug. Will fix. Thank you for the report. I don't have a workaround yet.

pr-apes commented 8 months ago

Many thanks for your fast reply, @pgundlach.

It drove me crazy, since I didn't understand what was wrong in my code.

pgundlach commented 8 months ago

Not sure if this fix (in version 4.15.6) really fixes it. It is a bit of a rewrite.

pr-apes commented 8 months ago

Many thanks for the fix, @pgundlach.

I have another layout to test this with, so I'll report later.