datagov-cz / sgov

SGoV server and tooling
MIT License
2 stars 1 forks source link

Validation not working #79

Open MichalMed opened 4 years ago

MichalMed commented 4 years ago

When I run the validation in eSbírka WS, nothing happens, the in progress circle just keep rotating.

bindeali commented 4 years ago

@psiotwo This might be a problem with the server. Validating the ontoGrapher test workspace returns results just fine after about 5-10 seconds, eSbírka fails after about two minutes with a 502. Tested with ontoGrapher and cURL.

Request URL: https://kbss.felk.cvut.cz/sgov-server/workspaces/instance-1703508316/validate?namespace=https://slovn%C3%ADk.gov.cz/datov%C3%BD/pracovn%C3%AD-prostor/pojem/metadatov%C3%BD-kontext/
Request Method: GET
Status Code: 502 Proxy Error
Remote Address: 147.32.80.105:443
Referrer Policy: strict-origin-when-cross-origin
Connection: Keep-Alive
Content-Length: 425
Content-Type: text/html; charset=iso-8859-1
Date: Mon, 09 Nov 2020 11:36:06 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.25 (Debian)
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-language: cs
Connection: keep-alive
Host: kbss.felk.cvut.cz
Referer: http://127.0.0.1:3000/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36
namespace: https://slovník.gov.cz/datový/pracovní-prostor/pojem/metadatový-kontext/ 
curl https://kbss.felk.cvut.cz/sgov-server/workspaces/instance-1703508316/validate?namespace=https://slovn%C3%ADk.gov.cz/datov%C3%BD/pracovn%C3%AD-prostor/pojem/metadatov%C3%BD-kontext/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request<p>Reason: <strong>Error reading from remote server</strong></p></p>
<hr>
<address>Apache/2.4.25 (Debian) Server at kbss.felk.cvut.cz Port 443</address>
</body></html>
psiotwo commented 4 years ago

Yes, I confirm, it is a server issue. Moving the ticket to sgov project.

psiotwo commented 4 years ago

@MichalMed please test on main ontographer deploy (for eSbirka the validation still takes 10-20sec).

MichalMed commented 4 years ago

It's functional, but results are not good. I see some false violations on the first sight :

I have experimentally created term with duplicated name. I have got two errors to that. Next to the one, that labels are not ambiguous, I have got (with higher priority) the violation of IRI pojmu není v souladu s názvem pojmu. This is cause by the fact that if you are creating a new term with the existing name, iri is created as label1. I think this behavior is systematically wrong. You shall not be able to create the term in the first place. Even if you are able to do that, yo cannot do anything about the violation, because there is no way how to even see the IRI (not talking about editing it).