Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

'Invalid CSRF token' error on bootstrap #679

Closed
tademianhess opened this issue Oct 21, 2016 · 2 comments
Closed

'Invalid CSRF token' error on bootstrap #679

tademianhess opened this issue Oct 21, 2016 · 2 comments

Comments

@tademianhess
Copy link

tademianhess commented Oct 21, 2016

Received error when doing the following:

  1. Cloned roxy (v1.7.3).
  2. Opened console in directory
  3. Ran: ml init --app-type=rest --server-version=8
  4. Ran: ml local bootstrap
    System reported error:
    Bootstrapping your project into MarkLogic 8 on localhost...
    ERROR: 500 "SECURITY-BADREQUEST (err:FOER0000): Invalid CSRF token. Refresh Query Console to generate a new secure token."
    ERROR: {"error":{"format-string":"SECURITY-BADREQUEST (err:FOER0000): Invalid CSRF token. Refresh Query Console to generate a new secure token."}}

System details:
MarkLogic: 8.0-6
OS: Windows 10

Special notes: I noticed that if I checked out the head of dev branch, the bootstrap worked. I checked out commits from head of master toward head of dev and found that at commit 72d0fd9, the error disappeared.

In other words, doing a bootstrap with code from commit bd1e1bf (20 June) resulted in an error. Using code from commit 72d0fd9 (11 July) did not raise an error.

I could work on the dev branch, but was hoping a fix could be pushed out or you could explain how to avoid the error using v1.7.3.

@RobertSzkutak
Copy link
Contributor

RobertSzkutak commented Oct 22, 2016

This issue is known which is why it is already fixed in the Dev branch as you said. It affects only MarkLogic 8.0-6 and up which was released earlier this week. A new release to the master branch is coming very soon!

@dmcassel
Copy link
Collaborator

dmcassel commented Oct 24, 2016

Duplicate of #670. Already resolved on dev and will soon be available on master, so closing.

... but thank you for filing -- better to hear about it twice than not at all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants