Giter Site home page Giter Site logo

Cannot create CTF from scratch about ctfnote HOT 5 CLOSED

tfns avatar tfns commented on August 31, 2024
Cannot create CTF from scratch

from ctfnote.

Comments (5)

JJ-8 avatar JJ-8 commented on August 31, 2024

I tried the new graphql branch using the new dev documentation (great btw!) and I did not encounter this issue.
However, I have the issue that if I add a new CTF (creating, not importing), it is not immediately shown. I have to reload the page in order to see it.

from ctfnote.

JJ-8 avatar JJ-8 commented on August 31, 2024

I want to withdraw my remark: it is also doesn't work for me. Now I encounter exactly the same issue.

from ctfnote.

JJ-8 avatar JJ-8 commented on August 31, 2024

I have zero experience with this so maybe this is all wrong, but looking at the source I think I have found the possible mistake/solution:

Creating a task has an explicit function for this: https://github.com/TFNS/CTFNote/blob/graphql/api/migrations/sqls/20210405191743-task-table-up.sql#L24
However, creating a ctf does not have this explicit function. Maybe if that is added, it does not complain about a missing secretId because it is generated inside the function?
@B-i-t-K What do you think of this?

from ctfnote.

JJ-8 avatar JJ-8 commented on August 31, 2024

I have fixed this issue in my fork.
Commit
EDIT: accidentally pushed a wrong migration. This commit fixes it.

from ctfnote.

XeR avatar XeR commented on August 31, 2024

Fixed in v2.0.0

from ctfnote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.