Not signed in (Sign In)

Not signed in

Want to take part in these discussions? Sign in if you have an account, or apply for one below

  • Sign in using OpenID

Site Tag Cloud

2-category 2-category-theory abelian-categories adjoint algebra algebraic algebraic-geometry algebraic-topology analysis analytic-geometry arithmetic arithmetic-geometry book bundles calculus categorical categories category category-theory chern-weil-theory cohesion cohesive-homotopy-type-theory cohomology colimits combinatorics comma complex complex-geometry computable-mathematics computer-science constructive cosmology deformation-theory descent diagrams differential differential-cohomology differential-equations differential-geometry digraphs duality elliptic-cohomology enriched fibration finite foundation foundations functional-analysis functor gauge-theory gebra geometric-quantization geometry graph graphs gravity grothendieck group group-theory harmonic-analysis higher higher-algebra higher-category-theory higher-differential-geometry higher-geometry higher-lie-theory higher-topos-theory homological homological-algebra homotopy homotopy-theory homotopy-type-theory index-theory integration integration-theory k-theory lie-theory limits linear linear-algebra locale localization logic mathematics measure-theory modal modal-logic model model-category-theory monad monads monoidal monoidal-category-theory morphism motives motivic-cohomology nlab noncommutative noncommutative-geometry number-theory of operads operator operator-algebra order-theory pages pasting philosophy physics pro-object probability probability-theory quantization quantum quantum-field quantum-field-theory quantum-mechanics quantum-physics quantum-theory question representation representation-theory riemannian-geometry scheme schemes set set-theory sheaf simplicial space spin-geometry stable-homotopy-theory stack string string-theory superalgebra supergeometry svg symplectic-geometry synthetic-differential-geometry terminology theory topology topos topos-theory tqft type type-theory universal variational-calculus

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome to nForum
If you want to take part in these discussions either sign in now (if you have an account), apply for one now (if you don't).
    • CommentRowNumber1.
    • CommentAuthorMike Shulman
    • CommentTimeApr 24th 2018

    When using Chrome in Windows, I can’t seem to save page edits. When I make changes onthe edit page and click “Submit” it takes me to the “Page Name is locked” page and says “Mike Shulman just started editing this page.” If I click “Edit the page anyway”, it takes me back to the edit page with all my previous changes lost. If I click “Cancel” it takes me back to the regular page with all my changes lost (but the spurious lock remains, so I can’t edit it again without breaking my lock).

    • CommentRowNumber2.
    • CommentAuthorDavid_Corfield
    • CommentTimeApr 24th 2018

    Yes, I’ve had that. Clearing cookies resolved it for a time. Now I avoid Chrome.

  1. Interesting, thanks for bringing it up. I’ll need to look into it; it doesn’t seem the easiest thing in the world to reproduce. I wonder if there might be perhaps be a race condition of some kind, although I can’t imagine why it would be specific to Chrome on Windows. I’ll add it to the TODO list.

    • CommentRowNumber4.
    • CommentAuthorMike Shulman
    • CommentTimeApr 24th 2018

    Well, I don’t think I’ve actually tried to edit the lab in Chrome on other OS’s recently; for all I know it might happen in Chrome everywhere.

    • CommentRowNumber5.
    • CommentAuthorMike Shulman
    • CommentTimeApr 24th 2018

    Clearing cookies didn’t help me.

    • CommentRowNumber6.
    • CommentAuthorTim_Porter
    • CommentTimeApr 25th 2018

    I just edited my main page Tim Porter using Chrome on my Macbook with no difficulty.

  2. I was able to edit the Sandbox just now with Chrome on a Windows machine. I don’t think it has anything to do with cookies, I don’t think they are involved in the locking process. I still suspect a race condition, which would be consistent with the bug only occasionally appearing. I’ll dig into it further when I get the chance.

  3. Although removing the cookies might possibly slow down the page load slightly after the edit and hence avoid the race condition in some cases, which might explain why David C had some success with this.

    • CommentRowNumber9.
    • CommentAuthorUrs
    • CommentTimeApr 25th 2018
    • (edited Apr 25th 2018)

    Richard,

    just for the record I say that there was some issue with cookies and saving edits a few months back: This happened after some modification that Adeel had made. When I couldn’t save any entries anymore (upon “Submit” I was always told that I “cannot resubmit” or similar) Adeel told me to clear my cookies. Back then that worked for me, and also for some other regulars here.

    Now the present issue must be something different, I suppose, but maybe Adeel might remember and see some relation.

  4. Thanks very much, Urs, this is very good to know.

  5. Mike, could you try to reproduce the problem, this time after clicking F12 in Chrome and looking at what happens in the ’Network’ tab when you click ’Submit’? The problem seems very strange, but one thing that might possibly happen is that the edit page gets reloaded in the time that the Submit request is processing; this would cause the behaviour that you are seeing. I am hoping that you will see the reload in the ’Network’ tab. I cannot reproduce the problem on my side, so it is a bit hard for me to check.

    • CommentRowNumber12.
    • CommentAuthorRodMcGuire
    • CommentTimeApr 25th 2018

    Strange, but I’m having that problem in Firefox, not Chrome. I suspect my clearing cookies hasn’t fully worked though I have yet to see if creating a new profile does work.

  6. Could you try to observe whether the edit page is reloading after you click submit, Rod?

    • CommentRowNumber14.
    • CommentAuthorRodMcGuire
    • CommentTimeApr 25th 2018

    I just tried editing Sandbox.

    The first time I hit submit I got

    You must have Javascript on, and cookies enabled, to submit this form.

    Anonymous has been editing this page for 1 minutes.

    without going back to the edit page view.

    On subsequent tries it did go back to edit page.

    One thing I’ve noticed is that my name isn’t remembered, even after I change it to RodMcGuire.

    nLab always thinks I’m Anymous.

    Is this enough info?

    • CommentRowNumber15.
    • CommentAuthorRichard Williamson
    • CommentTimeApr 25th 2018
    • (edited Apr 25th 2018)

    (This cross-posted with Rod’s comment). Yes, I believe this (i.e. what I ask about in #13) is what is happening. Here are some nginx logs.

    [removed IP address] - - [25/Apr/2018:07:51:29 -0400] "GET /nlab/edit/Sandbox HTTP/1.1" 200 14572 "https://ncatlab.org/nlab/show/Sandbox" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:61.0) Gecko/20100101 Firefox/61.0"
    [removed IP address] - - [25/Apr/2018:07:52:52 -0400] "POST /nlab/save/Sandbox HTTP/1.1" 302 103 "https://ncatlab.org/nlab/edit/Sandbox" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:61.0) Gecko/20100101 Firefox/61.0"
    [removed IP address] - - [25/Apr/2018:07:52:52 -0400] "GET /nlab/edit/Sandbox HTTP/1.1" 302 105 "https://ncatlab.org/nlab/edit/Sandbox" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:61.0) Gecko/20100101 Firefox/61.0"
    [removed IP address] - - [25/Apr/2018:07:52:52 -0400] "GET /nlab/locked/Sandbox HTTP/1.1" 200 9651 "https://ncatlab.org/nlab/edit/Sandbox" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:61.0) Gecko/20100101 Firefox/61.0"
    

    I believe this is you, Rod! One can see from this that you go to edit the Sandbox (do a GET), then you Submit (do a POST), then ’you’ try to edit the Sandbox (do a GET) again. This should not happen in the correct sequence: the correct sequence is, after the POST to /save, to proceed (do a GET) to /show. I say ’you’ because I assume that you are not manually refreshing the page, it is something your browser is doing under the hood.

    That explains the bug, anyway. It is not a race condition, but something causing the edit page to reload before submission has been completed. If this happens, it is ’correct’ that the page will be locked.

    So the question is why the page is reloading! I do not have time to look more into it just now, but I will try this evening (European time) to fix it one way or another.

  7. Thanks very much for testing, Rod, it provided me with the necessary logs!

    • CommentRowNumber17.
    • CommentAuthorRichard Williamson
    • CommentTimeApr 25th 2018
    • (edited Apr 25th 2018)

    Mike, Rod, and David, I’ve now made a couple of small tweaks. Could you please test to see if the problem still occurs?

    The tweaks are only an attempt to improve the situation, not to fundamentally solve the problem (and I am not even sure that they will even improve things sufficiently to solve the immediate problem). Really the locking mechanism is a bit fragile, and there will always be the possibility for problems. Keeping the locking information in memory rather than in the database would improve things. But it is difficult to imagine a really rigorous way to handle it. One could drop it completely, and rather check to see if there have been any changes when one submits, sending the author to a page where they can see the diff if so, or possibly to the nForum. Wikipedia takes something like this approach, I believe.

    • CommentRowNumber18.
    • CommentAuthorRodMcGuire
    • CommentTimeApr 25th 2018

    in my wedged Firefox when I try to edit Sandbox I still get

    You must have Javascript on, and cookies enabled, to submit this form.

    Anonymous has been editing this page for 1 minutes.

  8. Thanks very much, Rod, much appreciated! I’ll look further into it. Just to be certain: you receive that message when you click ’Submit’, not when you wish to start editing? The message that you are getting may indicate an issue with the spam prevention mechanism, akin to that which I addressed for file uploads recently.

    • CommentRowNumber20.
    • CommentAuthorRodMcGuire
    • CommentTimeApr 25th 2018

    yes, I get the message when I submit. I’ve had the problem for quite a while and rather than tracking down a fix I just use Chrome for nLab edits.

    • CommentRowNumber21.
    • CommentAuthorMike Shulman
    • CommentTimeApr 25th 2018

    I still have the same problem. The display in the Network tab starts with

    Name Status Initiator Time
    Sandbox (https://ncatlab.org/nlab/save/Sandbox) 302 Other 532 ms
    Sandbox (https://ncatlab.org/nlab/edit/Sandbox) 302 /nlab/save/Sandbox 418 ms
    Sandbox (https://ncatlab.org/nlab/locked/Sandbox) 200 Sandbox (https://ncatlab.org/nlab/edit/Sandbox) 324 ms

    (The parentheticals are mouseover popups.)

    • CommentRowNumber22.
    • CommentAuthorRodMcGuire
    • CommentTimeApr 26th 2018

    I finally resolved my cookie problem (I think) in a new empty Firefox profile

    In the empty profile I can Edit and Submit Sandbox successfully.

    When I copied in “cookies.sqlite” from the old profile

    I can click Edit but then when I click Submit I get the error message

    Sandbox is locked You must have Javascript on, and cookies enabled, to submit this form.

    Anonymous has been editing this page for 1 minutes.

    Edit the page anyway Cancel

    Then I went to about:preferences#privacy, clicked [Manage Data], and deleted all the ncatlab.org cookies. Which made things work again.

    I’m currently running FirefoxNightly. Two things I noticed since I last tried to fix cookies

    1. You have to reload about:preferences#privacy if you want to see if cookies have been added. Just clicking on [Manage Data] again won’t reflect changes.

    2. Individual cookies are no longer shown in preferences nor is their data accessible. From there I can only delete all 3 cookies from ncatlab.org. If I really want to look at individual cookies I have to use the Storage Inspector in the Web Developer.

    3. After clicking on [Manage Data] you have to click [Remove Selected] and[Save Changes] and sometimes, for no reason that I can tell, the [Save Changes] button is not present.

    I must have made some mistakes the last time I tried to clear the ncatlab cookies.

    I’m still keeping my bad cookies in case the nLab could be fixed to deal with them.

    • CommentRowNumber23.
    • CommentAuthorRichard Williamson
    • CommentTimeApr 26th 2018
    • (edited Apr 26th 2018)

    Thanks very much for testing, Rod and Mike. Upon further investigation, I believe that this was indeed the same issue as we had for the file uploader, described here. It was already on the TODO list to remove the spam prevention tool completely; I have now done so.

    Could you please test again, Rod, with your old cookies? Could you also please test, Mike? Unfortunately I have not been able to reproduce the issue, so cannot test myself.

    If anybody notices any odd behaviour, or encounters an error message about the spam filter kicking in, please let me know.

    • CommentRowNumber24.
    • CommentAuthorRodMcGuire
    • CommentTimeApr 26th 2018

    I just successfully edited Sandbox#1501 in my main profile with the defective cookies.

    My cookies are probably good now, but I could restore a copy of the bad ones.

    • CommentRowNumber25.
    • CommentAuthorMike Shulman
    • CommentTimeApr 26th 2018

    My computer that runs Windows is on the blink, but if it comes back, I’ll try again.

  9. Thanks very much, Rod and Mike. I’m reasonably confident that the issue is fixed now, but it would be good with as much testing as possible. David C, if you see this, could you try editing something in Chrome on Windows?

    My cookies are probably good now, but I could restore a copy of the bad ones.

    If you think that would more accurately reproduce the state of affairs when you were not able to submit, that would be great and much appreciated!

    • CommentRowNumber27.
    • CommentAuthorDavid_Corfield
    • CommentTimeApr 27th 2018

    I’ll take a look on my office machine later today. I’ve never had a problem using a chromebook.

  10. Nobody has mentioned that anything is amiss, so I’ve now pushed the changes to github.