Hi Andy, Thanks for the quick response. Here are the logs:
Test with windows (apache-jena-fuseki v4.1.0) 11:12:35 INFO Fuseki :: [2] POST http://localhost:3030/eva-dev/data?graph=http://www.ericsson.com/eva/graph%23backhaul 11:12:37 INFO Fuseki :: [2] Body: Content-Length=18309874, Content-Type=text/turtle, Charset=utf-8 => Turtle : Count=391385 Triples=391385 Quads=0 Test with Linux (apache-jena-fuseki v4.1.0) 09:22:30 INFO Fuseki :: [1] POST http://localhost:3030/eva-dev/data?graph=http://www.ericsson.com/eva/graph%23backhaul 09:22:30 INFO Fuseki :: [1] 400 Bad Request (15 ms) I also attached complete log as well. Thank you for your suggestion for the graph names Regards, Sarbashis From: Andy Seaborne <a...@apache.org> Date: Monday, 6 September 2021 at 19:17 To: users@jena.apache.org <users@jena.apache.org> Subject: Re: Graph names accepted in Windows but not in linux Hi there, I can't explain the Linux/Windows difference. Fuseki was wrong (it could double decode because the servlet API does decoding) For Linux - looks like there is still a bug - it should work (I tried using using curl and a Fuseki server in Jetty). What does the Fuseki log file say? The POST or PUT should be logged. Is it the same on Windows and Linux? There seems to be missing text in your message - see below. But. Because "#" is fragment and there are several pieces of software that may be involved in %-encoding handling, it is best to not use '#' for a Graph Store Protocol graph name. You may find on other systems it remains as %23, which is not entirely wrong. Andy On 06/09/2021 15:31, Sarbashis Das wrote: > Hi Users, > I have been testing apache-jena-fuseki version 4.1.0. and > found one issue with the graph name. > > Previously I was using apache-jena-fuseki 3.14.0 and upload ttl files using > python post request using graph names. As an example > > http://localhost:3030/eva-dev/data?graph=http://www.mysite.com/eva/graph%23backhaul > > (Graph names has “#” which is encoded as %23) > > Now with fuseki v4.1.0, my python request failed with error as follow in > linux and Mac > > urllib3.exceptions.ProtocolError: ('Connection aborted.', BrokenPipeError(32, > 'Broken pipe')) > > During handling of the above exception, another exception occurred: Is there something missing here? > > However it works with windows system > > I am wondering what is the reason for this difference and how can I fix that. > Below are some info to reproduce the issue > > Apache-jena-fuseki-4.1.0 > Java version: > java 12.0.1 2019-04-16 > Java(TM) SE Runtime Environment (build 12.0.1+12) > Java HotSpot(TM) 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing) > > Python version: 3.8.2 > > > > Thanks in advance for your support > > Regards, > Sarbashis > >
[2021-09-07 07:26:35] Server INFO Apache Jena Fuseki 4.1.0 [2021-09-07 07:26:36] Config INFO FUSEKI_HOME=/apache-jena/fuseki [2021-09-07 07:26:36] Config INFO FUSEKI_BASE=/apache-jena/run [2021-09-07 07:26:36] Config INFO Shiro file: file:///apache-jena/run/shiro.ini [2021-09-07 07:26:36] Config INFO Load configuration: file:///apache-jena/run/configuration/eva-dev.ttl [2021-09-07 07:26:38] Server INFO Configuration file: /apache-jena/run/config.ttl [2021-09-07 07:26:38] Server INFO Path = /eva-dev [2021-09-07 07:26:38] Server INFO System [2021-09-07 07:26:38] Server INFO Memory: 3.9 GiB [2021-09-07 07:26:38] Server INFO Java: 14.0.2 [2021-09-07 07:26:38] Server INFO OS: Linux 5.4.72-microsoft-standard-WSL2 amd64 [2021-09-07 07:26:38] Server INFO PID: 11 [2021-09-07 07:26:38] Server INFO Started 2021/09/07 07:26:38 UTC on port 3030 [2021-09-07 07:26:47] Fuseki INFO [1] POST http://localhost:3030/eva-dev/data?graph=http://www.ericsson.com/eva/graph%23backhaul [2021-09-07 07:26:47] Fuseki INFO [1] 400 Bad Request (24 ms)
09:28:53 INFO Server :: Apache Jena Fuseki 4.1.0 09:28:53 INFO Config :: FUSEKI_HOME=C:\Users\eohldav\Programs\apache-jena-fuseki-4.1.0\. 09:28:53 INFO Config :: FUSEKI_BASE=C:\Users\eohldav\Programs\apache-jena-fuseki-4.1.0\run 09:28:53 INFO Config :: Shiro file: file://C:\Users\eohldav\Programs\apache-jena-fuseki-4.1.0\run\shiro.ini 09:28:53 INFO Config :: Load configuration: file:///C:/Users/eohldav/Programs/apache-jena-fuseki-4.1.0/run/configuration/eva-dev.ttl 09:28:56 INFO Server :: Configuration file: C:\Users\eohldav\Programs\apache-jena-fuseki-4.1.0\run\config.ttl 09:28:56 INFO Server :: Path = /eva-dev 09:28:56 INFO Server :: System 09:28:56 INFO Server :: Memory: 4,0 GiB 09:28:56 INFO Server :: Java: 16.0.2 09:28:56 INFO Server :: OS: Windows 10 10.0 amd64 09:28:56 INFO Server :: PID: 9912 09:28:56 INFO Server :: Started 2021/09/07 09:28:56 CEST on port 3030 09:29:04 INFO Fuseki :: [1] POST http://localhost:3030/eva-dev/data?graph=http://www.ericsson.com/eva/graph%23backhaul 09:29:07 INFO Fuseki :: [1] Body: Content-Length=18309874, Content-Type=text/turtle, Charset=utf-8 => Turtle : Count=391385 Triples=391385 Quads=0 09:29:13 INFO Fuseki :: [1] 201 Created (8,714 s)