[fossil-users] Ticket editing problems
I have a user with limited access. The account can only handle wiki, attachments and tickets. But I am unable to modify tickets in the web gui as no clickable links are active. Here is the permission string bcfjkmnrtw. Did I miss something? /Jousef Fossil version 1.19 [6517b5c857] 2011-09-01 18:25:19 ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Ticket editing problems
On Fri, Sep 16, 2011 at 4:24 PM, Jousef Lofstrom jou...@netscape.netwrote: Here is the permission string bcfjkmnrtw. According to the sources, permission k==write wiki and: if( (rid g.perm.WrWiki) || (!rid g.perm.NewWiki) ){ style_submenu_element(Edit, Edit Wiki Page, %s/wikiedit?name=%T, g.zTop, zPageName); } rid is the ... whatever this is: rid = db_int(0, SELECT rid FROM tagxref WHERE tagid=(SELECT tagid FROM tag WHERE tagname=%Q) ORDER BY mtime DESC, zTag ); which i assume has a valid value for any valid tag. i.e. this looks okay to me. Have you got the latest fossil? In the json branch there's a way to check your permissions: do a /json/cap request. -- - stephan beal http://wanderinghorse.net/home/stephan/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Ticket editing problems
On Fri, Sep 16, 2011 at 4:29 PM, Stephan Beal sgb...@googlemail.com wrote: On Fri, Sep 16, 2011 at 4:24 PM, Jousef Lofstrom jou...@netscape.netwrote: Here is the permission string bcfjkmnrtw. According to the sources, permission k==write wiki and: sorry, thought-error on my part - i mis-read ticket as wiki... -- - stephan beal http://wanderinghorse.net/home/stephan/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Ticket editing problems
On Fri, Sep 16, 2011 at 4:30 PM, Stephan Beal sgb...@googlemail.com wrote: On Fri, Sep 16, 2011 at 4:29 PM, Stephan Beal sgb...@googlemail.comwrote: On Fri, Sep 16, 2011 at 4:24 PM, Jousef Lofstrom jou...@netscape.netwrote: Here is the permission string bcfjkmnrtw. According to the sources, permission k==write wiki and: sorry, thought-error on my part - i mis-read ticket as wiki... And now for the real code: if( g.perm.WrTkt || g.perm.ApndTkt ){ style_submenu_element(Edit, Edit The Ticket, %s/tktedit?name=%T, g.zTop, PD(name,)); } WrTkt=w, ApndTkt=c, i.e. you have all the permissions. Can you please try with the latest trunk? -- - stephan beal http://wanderinghorse.net/home/stephan/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Ticket editing problems
Stephan Beal sgbeal@... writes: ... I cloned http://www.fossil-scm.org/ and built on 32 bit CentOS 5 and now have ... Fossil version 1.19 [9f5c40cbe7] 2011-09-16 11:19:08. Alas, with the same result. /Jousef ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Ticket editing problems
On Fri, Sep 16, 2011 at 4:55 PM, Jousef Lofstrom jou...@netscape.netwrote: Stephan Beal sgbeal@... writes: I cloned http://www.fossil-scm.org/ and built on 32 bit CentOS 5 and now have ... Fossil version 1.19 [9f5c40cbe7] 2011-09-16 11:19:08. Alas, with the same result. i can't explain that but i have one thing we can try: fossil co json make and then visit your repo with these paths: /json/login?n=yournamep=yourpassword the response should NOT contain the string: resultCode:...anything If it does _not_ contain that then the login worked. And then please try: /json/stat and post the results of the second request. If that doesn't match up with your permissions then maybe i can find where the disconnect is. -- - stephan beal http://wanderinghorse.net/home/stephan/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Ticket editing problems
On Fri, Sep 16, 2011 at 4:59 PM, Stephan Beal sgb...@googlemail.com wrote: And then please try: /json/stat sorry: /json/cap not /json/stat (that's the repo stats) -- - stephan beal http://wanderinghorse.net/home/stephan/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Ticket editing problems
Stephan Beal sgbeal@... writes: ... http://localhost:8080/tvo/json/login?n=usernamep=password == { fossil:afd36e987ca1f2841bd2d819e64804c1f1a9f971, timestamp:1316185867, resultCode:FOSSIL-1002, resultText:Unknown Command } HTTP/1.0 200 OK Date: Fri, 16 Sep 2011 15:11:07 GMT Connection: close X-Frame-Options: SAMEORIGIN Cache-control: no-cache, no-store Content-Type: application/json; charset=utf-8; charset=utf-8 Content-Length: 0 http://localhost:8080/tvo/json/stat == { fossil:afd36e987ca1f2841bd2d819e64804c1f1a9f971, timestamp:1316186057, resultCode:FOSSIL-1002, resultText:Unknown Command } HTTP/1.0 200 OK Date: Fri, 16 Sep 2011 15:14:17 GMT Connection: close X-Frame-Options: SAMEORIGIN Cache-control: no-cache, no-store Content-Type: application/json; charset=utf-8; charset=utf-8 Content-Length: 0 /Jousef ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Ticket editing problems
On Fri, Sep 16, 2011 at 5:20 PM, Stephan Beal sgb...@googlemail.com wrote: aha - that's because of the /tvo part. i don't yet handle sub-repositories. Damn. i need to figure out how to do that (i've never used sub-repos before). Doh - i'm also seeing this now without the prefix, so i've apparently broken something horribly. i hope to have this resolved in the next hour or two. -- - stephan beal http://wanderinghorse.net/home/stephan/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Ticket editing problems
On Fri, Sep 16, 2011 at 5:39 PM, Stephan Beal sgb...@googlemail.com wrote: On Fri, Sep 16, 2011 at 5:20 PM, Stephan Beal sgb...@googlemail.comwrote: aha - that's because of the /tvo part. i don't yet handle sub-repositories. Damn. i need to figure out how to do that (i've never used sub-repos before). Doh - i'm also seeing this now without the prefix, so i've apparently broken something horribly. i hope to have this resolved in the next hour or two. LOL! This was a usage error on my part: ~ f ui the problem is that f is an alias for ~/bin/fossil, which isn't the binary i want to test. When i use ./fossil ... it works as expected. i'm fixing the /pathprefix problem right now - the current code won't dispatch properly with that (and i'm not 100% certain it will after my fix!). In any case, the headers are being output as part of the body (again) and that's a bug. -- - stephan beal http://wanderinghorse.net/home/stephan/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Ticket editing problems
On Fri, Sep 16, 2011 at 5:51 PM, Stephan Beal sgb...@googlemail.com wrote: the problem is that f is an alias for ~/bin/fossil, which isn't the binary i want to test. When i use ./fossil ... it works as expected. i'm fixing the /pathprefix problem right now - the current code won't dispatch properly with that (and i'm not 100% certain it will after my fix!). In any case, the headers are being output as part of the body (again) and that's a bug. The problem is that server mode isn't identical to CGI mode (i thought it was), and thus JSON mode is misbehaving (halfway thinking it's in CLI mode). e.g. server mode doesn't have the PATH_INFO env var, which the JSON bits currently use to dispatch to the proper place. i'll need to replace those bits with fossil's way of handling the path. -- - stephan beal http://wanderinghorse.net/home/stephan/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Ticket editing problems
On Fri, Sep 16, 2011 at 5:18 PM, Jousef Lofstrom jou...@netscape.netwrote: resultCode:FOSSIL-1002 That should be fixed now in server and CGI modes. The bug was in a mismatch between server mode and CGI mode. i have added code to accommodate the optional /prefix path part (everything up to the first instance of json is consider a prefix), but i don't have a setup to test that with, so there might still be an outstanding bug here. Could you please update and try: /json/login?n=...p=... then /json/stat ? -- - stephan beal http://wanderinghorse.net/home/stephan/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Ticket editing problems
On Fri, Sep 16, 2011 at 7:28 PM, Stephan Beal sgb...@googlemail.com wrote: then /json/stat i just can't get this right today: /json/cap, not /json/stat -- - stephan beal http://wanderinghorse.net/home/stephan/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users