From martin.ostlund at cendio.se Tue Jul 19 04:16:07 2022 From: martin.ostlund at cendio.se (=?UTF-8?Q?Martin_=c3=96stlund?=) Date: Tue, 19 Jul 2022 10:16:07 +0200 Subject: [moin-user] Negating Automatically Generated Links stopped working (sort of) Message-ID: <6fc546e7-915f-7374-b82b-1f27af7997a1@cendio.se> Hello list, Some months ago I was faced with a situation where I had to migrate moin 1.9.10 of from an old rhel6 server to rhel8, Since moin 1.9.10 requires python2 I installed moin (still v1.9.10) inside a docker container to keep things easily managed, and then restored the data and underlay folders, and wikiconfig.py as well. Everything seemed to be running well and smooth, until a colleague noticed that negating automatically generated links by putting an ! in front of it didn't have the same behavior as before the migration. The link will indeed be negated, but it will also output the ! infront of it, which it didn't do before. From HelpOnLinking: http://moinmo.in/HelpOnLinking "To keep a word like PageName from automatically being turned into a link, you can suppress CamelCase linking by putting an exclamation mark (!) before the word, i.e. !PageName. This method will not interfere with most searches (the exception is certain quoted phrases and regular expressions)." I'm not even sure where or how to start debugging this issue, any help and pointers are much appreciated. With kind regards, -- Martin ?stlund Support Cendio AB https://cendio.com Teknikringen 8 https://twitter.com/ThinLinc 583 30 Link?ping https://facebook.com/ThinLinc From jean-philippe.guerard at xn--tigreray-i1a.org Thu Jul 21 14:24:01 2022 From: jean-philippe.guerard at xn--tigreray-i1a.org (Jean-Philippe =?UTF-8?B?R3XDqXJhcmQ=?=) Date: Thu, 21 Jul 2022 20:24:01 +0200 Subject: [moin-user] Negating Automatically Generated Links stopped working (sort of) In-Reply-To: <6fc546e7-915f-7374-b82b-1f27af7997a1@cendio.se> References: <6fc546e7-915f-7374-b82b-1f27af7997a1@cendio.se> Message-ID: <20220721202401.54adaf38@tigreraye.home.arpa> Le Tue, 19 Jul 2022 10:16:07 +0200, Martin ?stlund via moin-user a ?crit : > Some months ago I was faced with a situation where I had to migrate > moin 1.9.10 of from an old rhel6 server to rhel8, > > Since moin 1.9.10 requires python2 I installed moin (still v1.9.10) > inside a docker container to keep things easily managed, and then > restored the data and underlay folders, and wikiconfig.py as well. > > Everything seemed to be running well and smooth, until a colleague > noticed that negating automatically generated links by putting an ! > in front of it didn't have the same behavior as before the migration. > The link will indeed be negated, but it will also output the ! > infront of it, which it didn't do before. > > From HelpOnLinking: > http://moinmo.in/HelpOnLinking > > "To keep a word like PageName from automatically being turned into a > link, you can suppress CamelCase linking by putting an exclamation > mark (!) before the word, i.e. !PageName. This method will not > interfere with most searches (the exception is certain quoted phrases > and regular expressions)." > > I'm not even sure where or how to start debugging this issue, any > help and pointers are much appreciated. Did you check the value of the bang_meta setting in your config or farm config? http://moinmo.in/HelpOnConfiguration#various HTH. -- Jean-Philippe Gu?rard https://tigreray?.org From martin.ostlund at cendio.se Fri Jul 22 02:32:05 2022 From: martin.ostlund at cendio.se (=?UTF-8?Q?Martin_=c3=96stlund?=) Date: Fri, 22 Jul 2022 08:32:05 +0200 Subject: [moin-user] Negating Automatically Generated Links stopped working (sort of) In-Reply-To: <20220721202401.54adaf38@tigreraye.home.arpa> References: <6fc546e7-915f-7374-b82b-1f27af7997a1@cendio.se> <20220721202401.54adaf38@tigreraye.home.arpa> Message-ID: <6bf38092-b500-d6ee-4f44-03b2bdc2daf2@cendio.se> On 7/21/22 20:24, Jean-Philippe Gu?rard wrote: > Le Tue, 19 Jul 2022 10:16:07 +0200, Martin ?stlund via moin-user a ?crit : >> Some months ago I was faced with a situation where I had to migrate >> moin 1.9.10 of from an old rhel6 server to rhel8, >> >> Since moin 1.9.10 requires python2 I installed moin (still v1.9.10) >> inside a docker container to keep things easily managed, and then >> restored the data and underlay folders, and wikiconfig.py as well. >> >> Everything seemed to be running well and smooth, until a colleague >> noticed that negating automatically generated links by putting an ! >> in front of it didn't have the same behavior as before the migration. >> The link will indeed be negated, but it will also output the ! >> infront of it, which it didn't do before. >> >> From HelpOnLinking: >> http://moinmo.in/HelpOnLinking >> >> "To keep a word like PageName from automatically being turned into a >> link, you can suppress CamelCase linking by putting an exclamation >> mark (!) before the word, i.e. !PageName. This method will not >> interfere with most searches (the exception is certain quoted phrases >> and regular expressions)." >> >> I'm not even sure where or how to start debugging this issue, any >> help and pointers are much appreciated. > > Did you check the value of the bang_meta setting in your config or farm > config? > > http://moinmo.in/HelpOnConfiguration#various > > HTH. > Greetings Jean-Philippe, Thank you for pointing that out to me, I was unaware of that setting. bang_meta was not defined in wikiconfig.py, so it should default to True. I also tried defining it without any difference. Moin is running in a venv using pypy & uwsgi and is built using this image https://codeberg.org/wombelix/moinmoin-pypy2-container I've tried a few other Docker images which does not use venv and pypy, and it seems to be working in those.. Regards, -- Martin ?stlund Support Cendio AB https://cendio.com Teknikringen 8 https://twitter.com/ThinLinc 583 30 Link?ping https://facebook.com/ThinLinc From martin.ostlund at cendio.se Fri Jul 22 08:32:17 2022 From: martin.ostlund at cendio.se (=?UTF-8?Q?Martin_=c3=96stlund?=) Date: Fri, 22 Jul 2022 14:32:17 +0200 Subject: [moin-user] Negating Automatically Generated Links stopped working (sort of) In-Reply-To: <6bf38092-b500-d6ee-4f44-03b2bdc2daf2@cendio.se> References: <6fc546e7-915f-7374-b82b-1f27af7997a1@cendio.se> <20220721202401.54adaf38@tigreraye.home.arpa> <6bf38092-b500-d6ee-4f44-03b2bdc2daf2@cendio.se> Message-ID: <2ac01cf8-2000-c137-c319-ca0e1098f1c9@cendio.se> On 7/22/22 08:32, Martin ?stlund via moin-user wrote: > On 7/21/22 20:24, Jean-Philippe Gu?rard wrote: >> Le Tue, 19 Jul 2022 10:16:07 +0200, Martin ?stlund via moin-user >> a ?crit : >>> Some months ago I was faced with a situation where I had to migrate >>> moin 1.9.10 of from an old rhel6 server to rhel8, >>> >>> Since moin 1.9.10 requires python2 I installed moin (still v1.9.10) >>> inside a docker container to keep things easily managed, and then >>> restored the data and underlay folders, and wikiconfig.py as well. >>> >>> Everything seemed to be running well and smooth, until a colleague >>> noticed that negating automatically generated links by putting an ! >>> in front of it didn't have the same behavior as before the migration. >>> The link will indeed be negated, but it will also output the ! >>> infront of it, which it didn't do before. >>> >>> ? From HelpOnLinking: >>> http://moinmo.in/HelpOnLinking >>> >>> "To keep a word like PageName from automatically being turned into a >>> link, you can suppress CamelCase linking by putting an exclamation >>> mark (!) before the word, i.e. !PageName. This method will not >>> interfere with most searches (the exception is certain quoted phrases >>> and regular expressions)." >>> >>> I'm not even sure where or how to start debugging this issue, any >>> help and pointers are much appreciated. >> >> Did you check the value of the bang_meta setting in your config or farm >> config? >> >> http://moinmo.in/HelpOnConfiguration#various >> >> HTH. >> > Greetings Jean-Philippe, > > Thank you for pointing that out to me, I was unaware of that setting. > bang_meta was not defined in wikiconfig.py, so it should default to True. > > I also tried defining it without any difference. > > Moin is running in a venv using pypy & uwsgi and is built using this > image https://codeberg.org/wombelix/moinmoin-pypy2-container > > I've tried a few other Docker images which does not use venv and pypy, > and it seems to be working in those.. > > Regards, After some more testing I've found that it works good with CPython and not-so-good with Pypy. I've created an issue for it: https://github.com/moinwiki/moin-1.9/issues/92 Kind regards, -- Martin ?stlund Support Cendio AB https://cendio.com Teknikringen 8 https://twitter.com/ThinLinc 583 30 Link?ping https://facebook.com/ThinLinc