gbv / bartoc.org

Source code of BARTOC.org user interface
https://bartoc.org/
23 stars 10 forks source link

Error 403 when saving #205

Open amadeupons opened 9 months ago

amadeupons commented 9 months ago

This JSKOS record could not be saved:

{
  "ADDRESS": {
    "code": "08037 ",
    "country": "Spain",
    "locality": "Barcelona",
    "street": "Mallorca, 272"
  },
  "API": [],
  "FORMAT": [
    {
      "uri": "http://bartoc.org/en/Format/PDF"
    },
    {
      "uri": "http://bartoc.org/en/Format/Printed"
    },
    {
      "uri": "http://bartoc.org/en/Format/EPUB"
    }
  ],
  "definition": {
    "en": [
      "Terminological dictionary with 500 terms related to the COVID-19 pandemic and the coronavirus SARS-CoV-2 defined in Catalan and with equivalents in 9 languages: Occitan, Basque, Galician, Spanish, English, French, Portuguese (with variants from Portugal and Brazil), Dutch and Arabic."
    ],
    "und": [
      "Diccionari terminològic amb 500 termes relacionats amb la pandèmia COVID-19 i el coronavirus SARS-CoV-2 definits en català i amb equivalents en 9 idiomes: occità, basc, gallec, castellà, anglès, francès, portuguès (amb variants de Portugal i Brasil), holandès i àrab."
    ]
  },
  "extent": "500 terms",
  "languages": [
    "ca",
    "oc",
    "eu",
    "gl",
    "es",
    "en",
    "fr",
    "pt",
    "nl",
    "ar"
  ],
  "prefLabel": {
    "ca": "Diccionari multilingüe de la COVID-19",
    "en": "Multilingual dictionary of the COVID-19"
  },
  "publisher": [
    {
      "prefLabel": {
        "en": "TERMCAT"
      },
      "uri": "https://viaf.org/viaf/136700347/"
    }
  ],
  "startDate": "2020",
  "subject": [
    {
      "uri": "http://dewey.info/class/61/e23/",
      "inScheme": [
        {
          "uri": "http://bartoc.org/en/node/241"
        }
      ],
      "notation": [
        "61"
      ]
    },
    {
      "uri": "http://dewey.info/class/616/e23/",
      "inScheme": [
        {
          "uri": "http://bartoc.org/en/node/241"
        }
      ],
      "notation": [
        "616"
      ]
    }
  ],
  "subjectOf": [
    {
      "url": "https://www.esteve.org/ca/libros/diccionari-covid-19/"
    }
  ],
  "type": [
    "http://www.w3.org/2004/02/skos/core#ConceptScheme",
    "http://w3id.org/nkos/nkostype#terminology",
    "http://w3id.org/nkos/nkostype#dictionary"
  ],
  "uri": "http://bartoc.org/en/node/20454",
  "url": "https://www.termcat.cat/ca/diccionaris-en-linia/286"
}

The request included no token.

stefandesu commented 7 months ago

Hi, sorry for getting back to you with such a big delay. Can you give us some context? Where does that record come from? Are you using a self-hosted instance? The URI http://bartoc.org/en/node/20454 seems to represent a different vocabulary from the one you're trying to save. Is there anything in the response (looking at the data in the browser's dev tools) in addition to it being an error 403?

Or in short: How can we reproduce this error in order to fix it?

Thanks!

amadeupons commented 7 months ago

Hi, thanks for your reply. The problem occurred when I was working with the Firefox navigator. I tried then with Chrome, and then all was OK. So, the issue didn't exist anymore using Chrome as a platform to work. See you,