NATION

PASSWORD

[FIXED] Dispatches blocked from updating by parts of code

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Khoronzon
Spokesperson
 
Posts: 187
Founded: Jul 31, 2019
Ex-Nation

[FIXED] Dispatches blocked from updating by parts of code

Postby Khoronzon » Thu Jun 04, 2020 9:04 pm

EDIT: Updated the thread title to more accurately describe the problem at hand. Used to be "Security check failed after successful captcha".

EDIT 2: Resolved as per this thread.

Pretty much what the title says. Whenever I try to update a dispatch, I get sent to the captcha screen, and upon successfully completing it, I still get a message saying "This request failed a security check" and the edit doesn't go through. I'm also getting this on one other puppet (Khorzromoth), but not any others. This doesn't apply to mobile, though being relegated to solely updating my dispatches on mobile is extremely annoying, especially given the fancy formatting I tend to employ. Clearing my cache hasn't worked, neither has relogging, and at this point I'm getting kind of desperate to be able to update my factbooks again.
Last edited by Khoronzon on Fri Jun 12, 2020 4:24 pm, edited 2 times in total.
Vʏʜʜ Xsʜʀ Xsʜʀɪɴ Tʜʀʜ
Leader
Figures
Culture
Regions
Military
World
The world is no longer as it once was, moulded beyond recognition by the hands of its coming masters. Humanity is faced with a simple choice: evolve, or die.

△▽△
[all lore is under reconstruction]
▽△▽
ooc: they/them/girl/boss - notorious wumao - blowfly creature
flag homies: the celestial shurayu republic and uij, checkem out they're v based
all rise for the national anthem

中国共产党万岁

User avatar
Frisbeeteria
Senior Game Moderator
 
Posts: 27796
Founded: Dec 16, 2003
Capitalizt

Postby Frisbeeteria » Fri Jun 05, 2020 7:02 am

Security check failures have to do with other nations being opened in other tabs, or on other devices. You were probably answering issues or playing cards or RPing in another puppet while you were writing.

You should do your composition offline in a word processor, then log on to the relevant puppet and post. That way your complicated formatting doesn't get lost when you bounce.

User avatar
Khoronzon
Spokesperson
 
Posts: 187
Founded: Jul 31, 2019
Ex-Nation

Postby Khoronzon » Fri Jun 05, 2020 10:05 am

Frisbeeteria wrote:You were probably answering issues or playing cards or RPing in another puppet while you were writing.

That isn't actually the case. I don't have any other accounts open - I literally just opened my browser, logged into NS, and when I tried to post an update to a dispatch, it wouldn't let me.
Vʏʜʜ Xsʜʀ Xsʜʀɪɴ Tʜʀʜ
Leader
Figures
Culture
Regions
Military
World
The world is no longer as it once was, moulded beyond recognition by the hands of its coming masters. Humanity is faced with a simple choice: evolve, or die.

△▽△
[all lore is under reconstruction]
▽△▽
ooc: they/them/girl/boss - notorious wumao - blowfly creature
flag homies: the celestial shurayu republic and uij, checkem out they're v based
all rise for the national anthem

中国共产党万岁

User avatar
Phydios
Minister
 
Posts: 2572
Founded: Dec 06, 2014
Left-Leaning College State

Postby Phydios » Fri Jun 05, 2020 10:53 am

Khoronzon wrote:
Frisbeeteria wrote:You were probably answering issues or playing cards or RPing in another puppet while you were writing.

That isn't actually the case. I don't have any other accounts open - I literally just opened my browser, logged into NS, and when I tried to post an update to a dispatch, it wouldn't let me.

Do you have any other devices that are logging into NS? Maybe a smartphone with the browser left open to NS?
If you claim to be religious but don’t control your tongue, you are fooling yourself, and your religion is worthless. Pure and genuine religion in the sight of God the Father means caring for orphans and widows in their distress and refusing to let the world corrupt you. | Not everyone who calls out to me, ‘Lord! Lord!’ will enter the Kingdom of Heaven. Only those who actually do the will of my Father in heaven will enter. On judgment day many will say to me, ‘Lord! Lord! We prophesied in your name and cast out demons in your name and performed many miracles in your name.’ But I will reply, ‘I never knew you. Get away from me, you who break God’s laws.’
James 1:26-27, Matthew 7:21-23

User avatar
Khoronzon
Spokesperson
 
Posts: 187
Founded: Jul 31, 2019
Ex-Nation

Postby Khoronzon » Fri Jun 05, 2020 11:07 am

Phydios wrote:Do you have any other devices that are logging into NS? Maybe a smartphone with the browser left open to NS?

No, I've made sure that was logged out as well before checking. If there's any device that's logged into my account, I wouldn't be aware of it, though I did change my password and I'm pretty sure that logging out on one device also logs out any other currently active instances so that shouldn't be a factor.

One more thing I just noticed is that this issue doesn't apply to all of my dispatches. I can't really be bothered going through every single one, but so far, these three factbooks can't be updated, but these other three seem to work just fine. That might also be why I didn't appear to be getting the issue on all of my puppets earlier - it seems to affect dispatches rather than nations, and the one factbook I have on Khorzromoth just happened to be affected while the dispatches on other puppets that I tested this on were not.

Additionally, if I make a new dispatch and copy-paste the contents of one of the blocked dispatches (e.g. the first three mentioned above) into it, it runs into the same problem. However, if I copy-paste the contents of a non-blocked dispatch into it, it can be updated without issue. I suppose what this means is that the problem is somewhere in the content of the dispatches, but I'm really not sure what it could be at the moment. It also does actually apply on mobile, not quite sure why it didn't earlier but now I'm getting the same problems as I am on my laptop.

As another update, I asked someone else to try copy-pasting the raw code from one of my blocked dispatches and posting it as a new dispatch on their own account, and it went through without issue. No captcha test, no failed security check, which means that while the problem may have something to do with the content of the dispatch, it only applies when I try to post it - whether on this nation or on a puppet, even a newly-created one on a different browser.
Last edited by Khoronzon on Fri Jun 05, 2020 5:29 pm, edited 10 times in total.
Vʏʜʜ Xsʜʀ Xsʜʀɪɴ Tʜʀʜ
Leader
Figures
Culture
Regions
Military
World
The world is no longer as it once was, moulded beyond recognition by the hands of its coming masters. Humanity is faced with a simple choice: evolve, or die.

△▽△
[all lore is under reconstruction]
▽△▽
ooc: they/them/girl/boss - notorious wumao - blowfly creature
flag homies: the celestial shurayu republic and uij, checkem out they're v based
all rise for the national anthem

中国共产党万岁

User avatar
Khoronzon
Spokesperson
 
Posts: 187
Founded: Jul 31, 2019
Ex-Nation

Postby Khoronzon » Fri Jun 05, 2020 3:56 pm

I've been doing some testing to find potential workarounds for the problem, and I've had a few weird finds. Using this dispatch to repost one of my blocked factbooks (this one, for comparison) piece by piece, the basic layout worked as normal (background, header, footer, text boxes, etc), as did the images, but when I tried to put in the opening paragraph of the first section, this part had to be taken out in order for the dispatch to be successfully updated:

Code: Select all
[i](birth name: Alexius XKV66-A; Khoryaz romanisation: Narshiss Imperator; born 18th Aug. 2302)[/i]

When I posted the paragraph on its own in a separate dispatch, that line didn't prevent it from being posted, but in the initial test dispatch that featured the original factbook's formatting, it seemed to be the sole aspect of the opening paragraph that prevented it from going through. I'm at a loss as to what about that line is preventing the dispatch from being updated, but that's just how it is. In any case, I think by now it's fairly obvious that whatever the problem is, it isn't quite like the usual fare in terms of security check issues.

Editing in the table beneath the opening paragraph was a fairly similar procedure - most of the parts that had to be taken out were contained within parentheses, which suggests that parentheses might be related to the problem at hand for whatever reason. Though the wingdings from the original were taken out, that wasn't because of testing, I just thought it would work better. The Early Life section, though it didn't have any text enclosed in parentheses, would only go through after I removed all the text enclosed in quotation marks - after some more testing, I've found that text enclosed in " ", ' ', ( ), { }, [ ], and < > acts as a "blocker". This seems to be applied selectively, with some enclosed strings of text being allowed through and some being blocked. An example of blocked text would be the line I posted above in the code box - replacing the parentheses around it still didn't let it go through - while an example of text that seemingly should get blocked but doesn't is the large quote above the text boxes, which may be related to the fact that it isn't enclosed in a text box.

These "blocker" characters weren't the only thing preventing me from updating the dispatch, though - I still had to delete some paragraphs that were being problematic for reasons I'm not quite sure of before I could post new edits. As far as I can tell, what this basically means is that there isn't really an easy workaround and I most likely won't be able to make a satisfactory approximation of the original factbook just by taking out a few simple bits here and there, though I may still end up finding ways to make something half-decent via band-aid fixes.

I repurposed the dispatch I initially used to post the opening paragraph without the extra formatting, using it as a paste dump for the text from the original factbook without the visual embellishments. It went as normal for the most part until I reached the paragraph beginning with Once the first phase, at which point I had to take out the quotation marks around "Manifesto of Lux" in order for the edit to be published. I didn't have any issues with previous instances of quotation marks in the dispatch, which could potentially mean that there's a limit to how many I can include, but given that I'm doing everything based on guesswork, I'm still very uncertain about how this works.

The next two paragraphs highlighted some additional information: the first contained a number of terms enclosed in quotation marks, all of which were within a point-form list block, while the second had one term in quotation marks and no list. I added the first one without any problems, but when I added the second paragraph, I had to remove the quotations around the term in question before I could publish the newly edited dispatch. My guess is that the limit I mentioned earlier doesn't apply to lists, which have their own internal limit for the amount of quotation marks I can use. This was just turned on its head after I added in a new paragraph, which contained a few terms in quotation marks yet didn't have any effect on my ability to publish the edit. At this point I have no idea what's happening. In any case, the paragraph after it initially blocked me from updating the dispatch, but I managed to proceed normally after replacing "5cm" with "five centimetres". Something about numbers being adjacent to letters, maybe. Turns out I can't include numbers at all in the later parts of the factbook, I have to write them all out as words.

I'll continue to update this post as I keep trying to remake the original factbook. Hopefully a solution can be found before I end up combing through all of my blocked factbooks in this manner to look for "bad" elements, but at the very least some sort of progress is being made.
Last edited by Khoronzon on Fri Jun 05, 2020 7:43 pm, edited 15 times in total.
Vʏʜʜ Xsʜʀ Xsʜʀɪɴ Tʜʀʜ
Leader
Figures
Culture
Regions
Military
World
The world is no longer as it once was, moulded beyond recognition by the hands of its coming masters. Humanity is faced with a simple choice: evolve, or die.

△▽△
[all lore is under reconstruction]
▽△▽
ooc: they/them/girl/boss - notorious wumao - blowfly creature
flag homies: the celestial shurayu republic and uij, checkem out they're v based
all rise for the national anthem

中国共产党万岁

User avatar
Bloodshade
Diplomat
 
Posts: 540
Founded: May 28, 2017
Democratic Socialists

Postby Bloodshade » Fri Jun 05, 2020 5:23 pm

I helped out Khoronzon by posting the code in question and submitting it as a factbook and I've had no issues whatsoever. I am even more perplexed to hear that there are band-aids to fixing this. There should be more to it. I had no issues with CAPTCHA, at least in my experience, and it didn't even appear when I submitted the factbook. I'm just wondering what exactly is causing this problem for Khoronzon.
An interstellar civilization that survived the self-induced destruction of its now long-gone homeworld and is trying to live the good life, all the while avoiding getting its ass kicked around.
Bloodshade Broadcasting Company| Actually re-writing my lore, I should't be on the forums but I am | Updated my video game screenshots, features Planet Zoo and Warhammer 2 | I need sleep but sleep doesn't need me | Edelgard is the cutest warmonger |

User avatar
Khoronzon
Spokesperson
 
Posts: 187
Founded: Jul 31, 2019
Ex-Nation

Postby Khoronzon » Sat Jun 06, 2020 9:45 am

It is now day three of my factbooks being broken. Attempts to add formatting to this dispatch to create an approximation of the original failed as text colouring couldn't be applied to the last few paragraphs (since I use text boxes to organise sections, I have to add text colouring to each box individually, rather than one instance of text colouring throughout the dispatch) without me running into the security check error when I tried to update it - that's probably the last "discovery" I'll be making for a while since this whole thing has me rather exhausted. If anyone has some idea of what's happening with my dispatches (and forum posts as well - I've been starting to get similar issues when trying to insert additional code blocks into my previous post), or could come up with an actual solution instead of the minor workarounds I've been trying to find, it would be greatly appreciated.
Vʏʜʜ Xsʜʀ Xsʜʀɪɴ Tʜʀʜ
Leader
Figures
Culture
Regions
Military
World
The world is no longer as it once was, moulded beyond recognition by the hands of its coming masters. Humanity is faced with a simple choice: evolve, or die.

△▽△
[all lore is under reconstruction]
▽△▽
ooc: they/them/girl/boss - notorious wumao - blowfly creature
flag homies: the celestial shurayu republic and uij, checkem out they're v based
all rise for the national anthem

中国共产党万岁

User avatar
Khoronzon
Spokesperson
 
Posts: 187
Founded: Jul 31, 2019
Ex-Nation

Postby Khoronzon » Tue Jun 09, 2020 9:40 pm

Bumping this thread again - I've started transporting my lore info from NS factbooks to a personal wiki I recently made, but this is still a rather notable concern as not everything that I have will translate well into that format, and it's probably just a better idea to actually get to the bottom of this issue instead of leaving it be regardless of how well the wiki approach works as a substitute. As far as I know, I've done what I can and laid out just about everything I could find - though maybe the semi-coherent rant format I put it in isn't exactly the best - though from here it'll probably take a greater degree of access to and familiarity with the site's code to get the whole thing over with, unless there's just a really stupid and easy solution that I've somehow missed.
Vʏʜʜ Xsʜʀ Xsʜʀɪɴ Tʜʀʜ
Leader
Figures
Culture
Regions
Military
World
The world is no longer as it once was, moulded beyond recognition by the hands of its coming masters. Humanity is faced with a simple choice: evolve, or die.

△▽△
[all lore is under reconstruction]
▽△▽
ooc: they/them/girl/boss - notorious wumao - blowfly creature
flag homies: the celestial shurayu republic and uij, checkem out they're v based
all rise for the national anthem

中国共产党万岁


Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Flanderlion, Khantin

Advertisement

Remove ads