Hi Julien,sorry for the late reply. Please use the attached patch and enable error backtracing via:
__dbf_set ('callstack_on_exception', 2); Then retry and give me the full error you receive. Thanks, Sebastian On 11.07.2014 17:28, Julien Plu wrote:
Hi Sebastian, No problem :-) So here the address and logs to test. I created a user and its logs are (this user has absolutely no rights on the Virutoso instance) : account : test password : test So if you log this user here : http://data.lirmm.fr/oauth you will that there is already a key which has been generated, so copy the token and paste on the interface here : http://data.lirmm.fr/oauth/sparql.vsp Doesn't matter the query if you click on Run Query you will see the error message that I talked about which is "Invalid token supplied". Hope you will able to see what's going wrong :-) Best. Julien. 2014-07-11 17:08 GMT+02:00 Sebastian Trüg <sebast...@trueg.de <mailto:sebast...@trueg.de>>: yes, please, sorry, my other email did not get through to the list. On 10.07.2014 10:12, Julien Plu wrote: Hi Sebastian, Would you like to test this behaviour on my machine, as I said I can provide you an access and mayble you will able to solve it :-) Best Julien. 2014-07-08 10:54 GMT+02:00 Julien Plu <julien.plu@redaction-__developpez.com <mailto:julien....@redaction-developpez.com> <mailto:julien.plu@redaction-__developpez.com <mailto:julien....@redaction-developpez.com>>>: Hi Sebastian, I compiled Virtuoso myself from the Github repository (develop/7 branch). So I compiled it with the "--enable-ods-vad" option (among others) in the configure. Then I went to the conductor, installed the package "ods framework" as written in the tutorial liked before and when I arrive to the step 20 I have this error. But if you want I can provide you a fake user, you create the token through the GUI and try to query the endpoint, and like that you will able to see the issue. Is-that fit you ? Best. Julien. 2014-07-08 10:25 GMT+02:00 Sebastian Trüg <sebast...@trueg.de <mailto:sebast...@trueg.de> <mailto:sebast...@trueg.de <mailto:sebast...@trueg.de>>>: On 07.07.2014 15:29, Julien Plu wrote: > Hi ! > > I currently try to manage the OAuth possibilities implemented inside > Virtuoso via the "ods_framework" VAD as explained here : > http://virtuoso.openlinksw.__com/dataspace/doc/dav/wiki/__Main/VirtOAuthSPARQL <http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtOAuthSPARQL> > > Everything goes well until the step 20, when I click on "Run Query" I > have an error message telling : > > Invalid token supplied > The action could not be performed because of an Invalid token supplied. > Please correct the above and try again. > > I'm using Virtuoso 7.1 from the develop branch on Github. > > So is-it a bug or is-it something else ? > > Thanks in advance. > Hello Julien, I was not able to reproduce your problem. Which packages do you have installed and where did you get them? Regards, Sebastian > Best. > > Julien. > > > ------------------------------__------------------------------__------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > > > > _________________________________________________ > Virtuoso-users mailing list > Virtuoso-users@lists.__sourceforge.net <mailto:Virtuoso-users@lists.sourceforge.net> <mailto:Virtuoso-users@lists.__sourceforge.net <mailto:Virtuoso-users@lists.sourceforge.net>> > https://lists.sourceforge.net/__lists/listinfo/virtuoso-users <https://lists.sourceforge.net/lists/listinfo/virtuoso-users> > ------------------------------__------------------------------__------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _________________________________________________ Virtuoso-users mailing list Virtuoso-users@lists.__sourceforge.net <mailto:Virtuoso-users@lists.sourceforge.net> <mailto:Virtuoso-users@lists.__sourceforge.net <mailto:Virtuoso-users@lists.sourceforge.net>> https://lists.sourceforge.net/__lists/listinfo/virtuoso-users <https://lists.sourceforge.net/lists/listinfo/virtuoso-users>
diff --git a/appsrc/ODS-Framework/oauth/sparql.vsp b/appsrc/ODS-Framework/oauth/sparql.vsp index 0cdc223..7365d7d 100644 --- a/appsrc/ODS-Framework/oauth/sparql.vsp +++ b/appsrc/ODS-Framework/oauth/sparql.vsp @@ -70,11 +70,11 @@ else if ({?'rt'} is not null and sid is null) -- ask for token { over: - declare exit handler for sqlstate '*' { - http_status_set (301); - http_header (sprintf ('Location: oauth_error.vspx?err=%U\r\n', 'Invalid token supplied')); - return; - }; + --declare exit handler for sqlstate '*' { + -- http_status_set (301); + -- http_header (sprintf ('Location: oauth_error.vspx?err=%U\r\n', 'Invalid token supplied')); + -- return; + --}; url := srv||'request_token'; url := OAUTH..sign_request ('GET', url, 'oauth_client_ip='||http_client_ip (), consumer_key, sid); res := http_get (url);
------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds
_______________________________________________ Virtuoso-users mailing list Virtuoso-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtuoso-users