[fossil-users] TinyMCE for editing wiki pages

2017-06-06 Thread Chris Rydalch
I tried following the Cookbook page, but haven't had luck getting it to work. I assume it's because a lot has changed in the last 8 years, both with Fossil and TinyMCE. I tried adapting the instructions, but they don't seem to be applicable anymore. Does anyone have a recent example repo using

Re: [fossil-users] Fossil JSON API: How to create a wiki page?

2017-06-06 Thread Stephan Beal
Sorry, that last one is wrong. Instead, change: http://fossil-scm.org/index.html/artifact?ln=1385=cc8d06a2d208ad00 To: while(0); tmp = 0 (with no trailing semicolon) - stephan Sent from a mobile device, possibly from bed. Please excuse brevity, typos, and top-posting. On Jun 7, 2017

Re: [fossil-users] Fossil JSON API: How to create a wiki page?

2017-06-06 Thread Stephan Beal
Aaaand: add 1 line between these two: http://fossil-scm.org/index.html/artifact?ln=1380-1381=cc8d06a2d208ad00 Add: tmp = 0; \ To avoid a separate (potential) corner case bug. - stephan Sent from a mobile device, possibly from bed. Please excuse brevity, typos, and top-posting. On Jun 7,

Re: [fossil-users] Fossil JSON API: How to create a wiki page?

2017-06-06 Thread Stephan Beal
The error is triggered here: http://fossil-scm.org/index.html/artifact?ln=1518-1525=cc8d06a2d208ad00 Because of: ... Hmmm... i THINK (not certain) it's because json_respone_command_path() is, via, json_create_response() returning null because of missing data in g.json. It interprets that as an

[fossil-users] Make two fossil repositories "friends" ?

2017-06-06 Thread Roy Keene
All, I have two Fossil repositories hosted on the same server and serving related projects so it would be helpful to me to make them "friends" somehow... Probably as an extension of the login-group functionality (and depndant upon it) would be some way to make Fossil look into its friends

Re: [fossil-users] Fossil JSON API: How to create a wiki page?

2017-06-06 Thread Stephan Beal
Here we go: http://fossil-scm.org/index.html/info/2accaaeeadd34cb6 - stephan Sent from a mobile device, possibly from bed. Please excuse brevity, typos, and top-posting. On Jun 7, 2017 04:41, "Stephan Beal" wrote: > Afaik, all errors except allocation failures do

Re: [fossil-users] Fossil JSON API: How to create a wiki page?

2017-06-06 Thread Stephan Beal
Afaik, all errors except allocation failures do return the error in json form (i had to jump through some hoops to get that working way back then, due to fossil's fail-fast-via-exit() approach to error handling). The mis-triggered alloc report here is, as you say, likely a side effect of the null

Re: [fossil-users] Fossil JSON API: How to create a wiki page?

2017-06-06 Thread Warren Young
On Jun 6, 2017, at 5:58 PM, Stephan Beal wrote: > > If you leave quotes off of the property names, it's not json Yes, but that’s only one of the three problems here. The other two are: 1. It should diagnose the error correctly. (The error has nothing to do with memory

Re: [fossil-users] Fossil JSON API: How to create a wiki page?

2017-06-06 Thread Warren Young
On Jun 6, 2017, at 5:51 PM, Offray Vladimir Luna Cárdenas wrote: > > When I try something similar with: > > curl -H "Content-Type: application/json" \ -d '{"authToken": > "mytoken",\ >"payload": {"name": “foo", "content": "bar"}}' >

Re: [fossil-users] Fossil JSON API: How to create a wiki page?

2017-06-06 Thread Stephan Beal
If you leave quotes off of the property names, it's not json and the request cannot be parsed at all. Why that shows up as a response allocation error, i can't say off hand. It's a bug - the response should be that the request is missing data/parameters. - stephan Sent from a mobile device,

Re: [fossil-users] Fossil JSON API: How to create a wiki page?

2017-06-06 Thread Offray Vladimir Luna Cárdenas
Thanks Warren for your quick answer. When I try something similar with: curl -H "Content-Type: application/json" \ -d '{"authToken": "mytoken",\ "payload": {"name": “foo", "content": "bar"}}' http://localhost:8081/json/wiki/create I get: curl: (6) Could not

Re: [fossil-users] Fossil JSON API: How to create a wiki page?

2017-06-06 Thread Warren Young
On Jun 6, 2017, at 1:09 PM, Offray Vladimir Luna Cárdenas wrote: > > I don't know how the page name is supposed to be given in the URL. The document you point to says it’s supposed to be sent in the payload, not in the request URL: $ curl -H "Content-Type:

[fossil-users] Fossil JSON API: How to create a wiki page?

2017-06-06 Thread Offray Vladimir Luna Cárdenas
Hi, I've been trying to create a wiki page, ufollowing the documentation of the Fossil JSON API . When I put the URL |http://myrepo.top/json/wiki/create?name=test| I get and answer similar

Re: [fossil-users] "fossil http" doubts

2017-06-06 Thread Richard Hipp
On 6/6/17, Johan Kuuse wrote: > Hi, > > Is there any way to access the Fossil built-in webpages using the "fossil > http"? > In the example below, I try to access the /setup page from localhost, > but it seems I don't get authorized. Instead I get redirected to the > /login page.

[fossil-users] "fossil http" doubts

2017-06-06 Thread Johan Kuuse
Hi, Is there any way to access the Fossil built-in webpages using the "fossil http"? In the example below, I try to access the /setup page from localhost, but it seems I don't get authorized. Instead I get redirected to the /login page. Best Regards, Johan fossil setting | grep localauth

[fossil-users] Help messages in add.c

2017-06-06 Thread Johan Kuuse
Hi, The following commands, executed without any arguments, are mute: f add f rm f delete f forget IMHO, they should show a help message instead. Best Regards, Johan fossil diff --unified Index: src/add.c == --- src/add.c +++

Re: [fossil-users] Webpage for multiple fossil repositories - configuration options?

2017-06-06 Thread John Pateman
Yes, this was my usercase. Specifically I would like to configure the page generated by the `—repolist` option in `fossil server`. Whilst the `—files GLOBPATTERN` is helpful in so far as generating an alternative html page, I really wanted to be able to use a config option in `fossil server` to