[ 
https://issues.apache.org/jira/browse/JENA-1854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikael updated JENA-1854:
-------------------------
    Description: 
When posting 40k turtle data that results error

"Error 400: Parse error: [line: 1, col: 34] Undefined prefix: ebucore"

the response is sent before entire input data is received. That confuses proxy 
and instead of above Fuseki error, client receives proxy error

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
 <html><head>
 <title>502 Bad Gateway</title>
 </head><body>
 <h1>Bad Gateway</h1>
 <p>The proxy server received an invalid
 response from an upstream server.<br />
 </p>
 <hr>
 <address>Apache/2.4.18 (Ubuntu) Server at xxx.fi Port
 443</address>
 </body></html>

 

Posting data:

curl -v -X POST -H "Content-type: text/turtle" --data-binary @/tmp/subtitle.ttl 
[https://xxx.fi/fuseki/ds?graph=https://resource.lingsoft.fi/graph/demo]

 

Proxy:

[https://xxx.fi/fuseki/ds] is proxy address pointing to 
[http://127.0.0.1:3030/ds|http://127.0.0.1:3030/]

 

Discussion:

[https://mail-archives.apache.org/mod_mbox/jena-users/202003.mbox/%3c9b87af5d-cdbe-d611-37b4-0a981fa04...@lingsoft.fi%3e]

  was:
When sending a 40k turtle data that results error

"Error 400: Parse error: [line: 1, col: 34] Undefined prefix: ebucore"

the response is sent before entire input data is received. That confuses proxy 
and instead of above Fuseki error, client receives proxy error

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Bad Gateway</title>
</head><body>
<h1>Bad Gateway</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at xxx.fi Port
443</address>
</body></html>

 

Discussion:

https://mail-archives.apache.org/mod_mbox/jena-users/202003.mbox/%3c9b87af5d-cdbe-d611-37b4-0a981fa04...@lingsoft.fi%3e


> 502 Bad Gateway with reverse proxy on Fuseki
> --------------------------------------------
>
>                 Key: JENA-1854
>                 URL: https://issues.apache.org/jira/browse/JENA-1854
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: Fuseki
>    Affects Versions: Jena 3.11.0, Jena 3.14.0
>            Reporter: Mikael
>            Priority: Major
>
> When posting 40k turtle data that results error
> "Error 400: Parse error: [line: 1, col: 34] Undefined prefix: ebucore"
> the response is sent before entire input data is received. That confuses 
> proxy and instead of above Fuseki error, client receives proxy error
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
>  <html><head>
>  <title>502 Bad Gateway</title>
>  </head><body>
>  <h1>Bad Gateway</h1>
>  <p>The proxy server received an invalid
>  response from an upstream server.<br />
>  </p>
>  <hr>
>  <address>Apache/2.4.18 (Ubuntu) Server at xxx.fi Port
>  443</address>
>  </body></html>
>  
> Posting data:
> curl -v -X POST -H "Content-type: text/turtle" --data-binary 
> @/tmp/subtitle.ttl 
> [https://xxx.fi/fuseki/ds?graph=https://resource.lingsoft.fi/graph/demo]
>  
> Proxy:
> [https://xxx.fi/fuseki/ds] is proxy address pointing to 
> [http://127.0.0.1:3030/ds|http://127.0.0.1:3030/]
>  
> Discussion:
> [https://mail-archives.apache.org/mod_mbox/jena-users/202003.mbox/%3c9b87af5d-cdbe-d611-37b4-0a981fa04...@lingsoft.fi%3e]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to