ufal / perl-pmltq-web

Simple web build on the top of the PML Tree Query server
https://lindat.mff.cuni.cz/services/pmltq/
0 stars 0 forks source link

Permanent link to query no longer works #157

Closed dan-zeman closed 3 years ago

dan-zeman commented 3 years ago

When I am looking at a query and press the button "Permanent link", the URL field in the window that pops up is empty.

I tried this with UD Portuguese Bosque and GSD, release 2.6. The query was

a-node [form~"\\$"];
matyaskopp commented 3 years ago

it seems that problem is with lindat/services/shortener. I will report it image

curl 'https://lindat.mff.cuni.cz/services/shortener/api/v1/handles' \
  -H 'Connection: keep-alive' \
  -H 'Pragma: no-cache' \
  -H 'Cache-Control: no-cache' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'DNT: 1' \
  -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36' \
  -H 'Content-Type: application/json;charset=UTF-8' \
  -H 'Origin: https://lindat.mff.cuni.cz' \
  -H 'Sec-Fetch-Site: same-origin' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Referer: https://lindat.mff.cuni.cz/services/pmltq/' \
  -H 'Accept-Language: cs,en-US;q=0.9,en;q=0.8' \
  --data-binary $'{"url":"https://lindat.mff.cuni.cz/services/pmltq/#\u0021/treebank/pdt35/query/IYWgdg9gJgpgBAbQLoG4g?filter=true&timeout=30&limit=100","title":"Prague Dependency Treebank 3.5 | Query | PML Tree-Query Engine","reportemail":"lindat-help@ufal.mff.cuni.cz","subprefix":"PMLTQ"}' \
  --compressed
matyaskopp commented 3 years ago

shortener fixed