Access to "https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/first.xml" blocked?
Thursday, 11 November 2021 · 5 messages
BE
Ben Engbers11 Nov 2021 16:14 #
Hi,
Allthough I have never had any feedback on my R-client to BaseX, I have steadily been working on a new version (even while being retired, I still like to program :-).
At present all tests are passed, except one test on adding content to a database.
On my Linux-machine 'url
exists("https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/first.xml")' returns TRUE and 'first.xml' is added to a database.
When executed on a Windows machine, the same test returns FALSE. I have tested other URL's - starting with https or http - and they are all accepted.
Any clue why
"https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/first.xml" is blocked?
Ben
IL
Imsieke, Gerrit, le-tex11 Nov 2021 16:24 #
Hi Ben,
What about other resources there, like:
https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/input.xml https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/response.txt
Do they pass on Windows?
Gerrit
Quoted text · Ben Engbers · 22 lines
On 11.11.2021 16:14, Ben Engbers wrote: > Hi, > > Allthough I have never had any feedback on my R-client to BaseX, I have > steadily been working on a new version (even while being retired, I > still like to program :-). > At present all tests are passed, except one test on adding content to a > database. > > On my Linux-machine 'url > exists("https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/first.xml")' > returns TRUE and 'first.xml' is added to a database. > > When executed on a Windows machine, the same test returns FALSE. > I have tested other URL's - starting with https or http - and they are > all accepted. > > Any clue why > "https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/first.xml" > is blocked? > > Ben
IL
Imsieke, Gerrit, le-tex11 Nov 2021 16:45 #
Maybe related to the HTTP header field x-content-type-options: nosniff
https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/compatibility/gg622941(v=vs.85)?redirectedfrom=MSDN
What is the tool/library you are using on Windows? Is it an R HTTP client that is interfacing some Windows DLL? Maybe they put this rejection in the DLL.
Maybe you can find another proxying server for raw Github files?
https://stackoverflow.com/questions/40728554/resource-blocked-due-to-mime-type-mismatch-x-content-type-options-nosniff
Gerrit
Quoted text · Ben Engbers · 46 lines
On 11.11.2021 16:37, Ben Engbers wrote: > They are both rejected. I also tried with "https://www.cnn.com" and > "https://nos.nl". The first is accepted, the second is rejected. > > In firefox all URL's are accepted. > > Ben > > Op 11-11-2021 om 16:24 schreef Imsieke, Gerrit, le-tex: >> Hi Ben, >> >> What about other resources there, like: >> >> https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/input.xml >> >> https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/response.txt >> >> >> Do they pass on Windows? >> >> Gerrit >> >> >> On 11.11.2021 16:14, Ben Engbers wrote: >>> Hi, >>> >>> Allthough I have never had any feedback on my R-client to BaseX, I >>> have steadily been working on a new version (even while being >>> retired, I still like to program :-). >>> At present all tests are passed, except one test on adding content to >>> a database. >>> >>> On my Linux-machine 'url >>> exists("https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/first.xml")' >>> returns TRUE and 'first.xml' is added to a database. >>> >>> When executed on a Windows machine, the same test returns FALSE. >>> I have tested other URL's - starting with https or http - and they >>> are all accepted. >>> >>> Any clue why >>> "https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/first.xml" >>> is blocked? >>> >>> Ben >>
BE
Ben Engbers11 Nov 2021 17:18 #
On both machines I use the most recent versions of R and RStudio. I'll also drop a question in the R-community and (tomorrow) I'll look at the URL's you suggested.
Ben
Quoted text · Imsieke, Gerrit, le-tex · 16 lines
Op 11-11-2021 om 16:45 schreef Imsieke, Gerrit, le-tex: > Maybe related to the HTTP header field x-content-type-options: nosniff > > https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/compatibility/gg622941(v=vs.85)?redirectedfrom=MSDN > > > What is the tool/library you are using on Windows? Is it an R HTTP > client that is interfacing some Windows DLL? Maybe they put this > rejection in the DLL. > > Maybe you can find another proxying server for raw Github files? > > https://stackoverflow.com/questions/40728554/resource-blocked-due-to-mime-type-mismatch-x-content-type-options-nosniff > > > Gerrit
BE
They are both rejected. I also tried with "https://www.cnn.com" and "https://nos.nl". The first is accepted, the second is rejected.
In firefox all URL's are accepted.
Ben
Quoted text · Imsieke, Gerrit, le-tex · 38 lines
Op 11-11-2021 om 16:24 schreef Imsieke, Gerrit, le-tex: > Hi Ben, > > What about other resources there, like: > > https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/input.xml > > https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/response.txt > > > Do they pass on Windows? > > Gerrit > > > On 11.11.2021 16:14, Ben Engbers wrote: >> Hi, >> >> Allthough I have never had any feedback on my R-client to BaseX, I >> have steadily been working on a new version (even while being retired, >> I still like to program :-). >> At present all tests are passed, except one test on adding content to >> a database. >> >> On my Linux-machine 'url >> exists("https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/first.xml")' >> returns TRUE and 'first.xml' is added to a database. >> >> When executed on a Windows machine, the same test returns FALSE. >> I have tested other URL's - starting with https or http - and they are >> all accepted. >> >> Any clue why >> "https://raw.githubusercontent.com/BaseXdb/basex/master/basex-api/src/test/resources/first.xml" >> is blocked? >> >> Ben >
Written for BaseX 9.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery