Re: [fossil-users] Simple edit of a wiki page name

2012-01-18 Thread Williams, Brian
Typically, one creates the correctly named page and abandons the
original...

 

From: fossil-users-boun...@lists.fossil-scm.org
[mailto:fossil-users-boun...@lists.fossil-scm.org] On Behalf Of Stephan
Beal
Sent: Wednesday, January 18, 2012 2:16 AM
To: Fossil SCM user's discussion
Subject: Re: [fossil-users] Simple edit of a wiki page name

 

As the old song goes: "what's done cannot be undone, not here not in
London."

- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal

On Jan 18, 2012 5:15 AM, "Matt Young"  wrote:

I Added a wiki page, I accept the changes then discover you want to edit
the wiki page name. How does one do that? 
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

___
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] Simple edit of a wiki page name

2012-01-18 Thread Stephan Beal
As the old song goes: "what's done cannot be undone, not here not in
London."

- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
On Jan 18, 2012 5:15 AM, "Matt Young"  wrote:

> I Added a wiki page, I accept the changes then discover you want to edit
> the wiki page name. How does one do that?
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
___
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] fossil http does not allow periods in fossil name, fossil server does

2012-01-18 Thread Nick Zalutskiy
Dug through the source a bit. It seems this is by design, from
main.c:cmd_http -> main.c:process_one_web_page

  /* To avoid mischief, make sure the repository basename contains no
  ** characters other than alphanumerics, "-", "/", and "_".
  */
  for(j=strlen(g.zRepositoryName)+1, k=0; zRepo[j] && khttp://fossils.example.com/repo.1.master local.fossil
will actually fetch /dir/on/host/repo_one_master.fossil
$ fossil clone http://fossils.example.com/repo_1.master local.fossil
will fetch the same thing for no obvious reason,
even if there are two different files, repo_1.master.fossil and
repo.1.master, on the server

* The list of allowed characters should probably be longer, if only
for consistency with 'fossil server'. We can even allow periods and
check the result against file.c:file_is_canonical to avoid said
mischief?

Non of this is catastrophic, but... surprised me nonetheless.

Thanks!

-Nick


On Wed, Jan 18, 2012 at 1:45 AM, Nick Zalutskiy  wrote:
>
> I have setup fossil to serve repositories using inetd (xinetd in my case) as 
> per http://fossil-scm.org/index.html/doc/tip/www/server.wiki
>
> Lets say http://example.com:8585 is serving from /home/fossil/repos and there 
> are two fossil files in there:
>   repo1.fossil
>   repo.name.with.periods.fossil
>
> Then:
>
> $ fossil clone http://example.com:8585/repo1 repo1.fossil
> [OK]
> $ fossil clone http://example.com:8585/repo.name.with.periods repo2.fossil
> fossil: server says: 404 not found
> ...
>
> At the same time if, on the server, we do 'fossil server', instead of serving 
> using 'fossil http' + inetd:
>
> $ fossil server --port 8686 /home/fossil/repos/repo.name.with.periods.fossil
>
> Then the earlier clone succeeds:
>
> $ fossil clone http://example.com:8686/repo.name.with.periods repo2.fossil
> [NOW OK]
>
> Is this a bug?
>
> -Nick
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users