[Trac] Re: remote access - url format?

2008-06-06 Thread Shun-ichi GOTO

2008/6/6 km <[EMAIL PROTECTED]>:
>
>> If you can, try accessing without authentication by allowing XML-RPC
>> access for everyone (by add XML_RPC action to anonymous).
>
> good idea.  i upgraded to emacs 22.2 and tried, but now i get the
> following error: "ERROR: The site seems not support XML-RPC."
>
> hmm. is there a non-browser way to see if site is actually running
> xmlrpc?  all but one of the xmlrpc options are ticked ("xmlrpcWeb") --
> and xml_rpc does appear in the permissions pull-down menu.

Please update to trac-wiki.el ver. 1.8 first, then try again.
It has some bug fixes on the case of interactive url input.

  http://www.meadowy.org/~gotoh/projects/trac-wiki/wiki


>> (let ((auth (base64-encode-string (format "%s:%s" "yourname" 
>> "yourpassword"
>>   (set (symbol-value 'url-basic-real-auth-storage)
>>`(("www.some.org:80" ("realm string for the site" . ,auth)
>
> where would this code actually be inserted?
>
> (note: i think there is a typo on your web page. shouldn't "url-digets-
> auth-storage" be "url-digest-auth-storage"?)

Sorry it's not good.
Please use this:

(eval-after-load "url-auth"
  '(let ((auth (base64-encode-string (format "%s:%s" "yourname"
"yourpassword"
 (set (symbol-value 'url-basic-auth-storage)
  `(("www.some.org:80" ("realm string for the site" . ,auth))

Put the code above in *scratch* buffer then evaluate it (by C-x C-e at
end of last line. If it is good, put it in your .emacs for next use.



>> Anyway, I'll try with most recent emacs on debian later...
>
> that would be great. (i see that you are running meadowy.org on trac
> 0.10.4 -- perhaps we should revert our site to this early version of
> trac.)

I've got success with newly compiled emacs 22.1 and latest 23.0.60
on debian. I use standard library of url package provided with emacs.
So, I don't know why you fail.
If you can, please show me the content of buffer " *http www..xx:80*"

-- 
Shun-ichi GOTO

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-05 Thread km

> If you can, try accessing without authentication by allowing XML-RPC
> access for everyone (by add XML_RPC action to anonymous).

good idea.  i upgraded to emacs 22.2 and tried, but now i get the
following error: "ERROR: The site seems not support XML-RPC."

hmm. is there a non-browser way to see if site is actually running
xmlrpc?  all but one of the xmlrpc options are ticked ("xmlrpcWeb") --
and xml_rpc does appear in the permissions pull-down menu.

> auth-storage
> issue described on trac-wiki page and you may take a workaround by specifying
> auth data by your hand like this (of course, fill your name, pass, site, 
> etc.):
>
> (let ((auth (base64-encode-string (format "%s:%s" "yourname" 
> "yourpassword"
>   (set (symbol-value 'url-basic-real-auth-storage)
>        `(("www.some.org:80" ("realm string for the site" . ,auth)

where would this code actually be inserted?

(note: i think there is a typo on your web page. shouldn't "url-digets-
auth-storage" be "url-digest-auth-storage"?)

> Anyway, I'll try with most recent emacs on debian later...

that would be great. (i see that you are running meadowy.org on trac
0.10.4 -- perhaps we should revert our site to this early version of
trac.)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-05 Thread km

> you can't access Trac via sftp.

thanks. that's useful to know.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-05 Thread Erik Bray

On Thu, Jun 5, 2008 at 4:34 AM, km <[EMAIL PROTECTED]> wrote:
>
>> Not sure what you think you are going to do, but whatever it is you cannot.
>
> perhaps  the odd logic of the charming reply above is because i
> unintentionally gave the impression that i am trying to hack into or
> edit someone else's site (named www.trac-server.com in my example).

No, if I had to guess, I think the "odd logic" of it is that you can't
access Trac via sftp.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-05 Thread Shun-ichi GOTO

2008/6/5 km <[EMAIL PROTECTED]>:
> it asks me if i want to login -- then it prompts for user/pass. i
> assume that this url is restricted for authenticated users, so that
> seems correct.

OK, it seems to be corrected.

> however, if i try the same for my site, i get into the eternal loop of
> asking for username/password. you mention this on your info page. but
> i actually have the latest version cvs version of url-http.el from
> here: 
> http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/url/url-http.el?revision=1.59&view=markup
>
> so i'm not sure what is the problem.

Hmm...
It looks like same behaviour I fought with.
# url library is one of heavily modified and unstabled library in
emacs devel even now.

If you can, try accessing without authentication by allowing XML-RPC
access for everyone
(by add XML_RPC action to anonymous). Is it success? If so, it might
be a auth-storage
issue described on trac-wiki page and you may take a workaround by specifying
auth data by your hand like this (of course, fill your name, pass, site, etc.):

(let ((auth (base64-encode-string (format "%s:%s" "yourname" "yourpassword"
  (set (symbol-value 'url-basic-real-auth-storage)
   `(("www.some.org:80" ("realm string for the site" . ,auth)
;;; assume the site uses basic authentication

Does it solve?

Anyway, I'll try with most recent emacs on debian later...

-- 
Shun-ichi GOTO

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-05 Thread km

> What version of emacs and what type of os are you using?

22.1.1 on ubuntu hardy.

there were some problems with my installation of "url" package.

now, when i test: http://www.meadowy.org/~gotoh/projects/trac-wiki/

it asks me if i want to login -- then it prompts for user/pass. i
assume that this url is restricted for authenticated users, so that
seems correct.

however, if i try the same for my site, i get into the eternal loop of
asking for username/password. you mention this on your info page. but
i actually have the latest version cvs version of url-http.el from
here: 
http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/url/url-http.el?revision=1.59&view=markup

so i'm not sure what is the problem.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-05 Thread km

update. just tried accessing http://www.meadowy.org/~gotoh/projects/trac-wiki/

and got the same emacs error. so, i need to look into  what is going
on at my end within emacs.

thanks for all the help. (and thanks to you, Shun-ichi GOTO, for
writing trac-wiki.el - i am really looking forward to using it!)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-05 Thread Shun-ichi GOTO

2008/6/5 km <[EMAIL PROTECTED]>:
> "error in process sentinel: Symbol's function definition is void: url-
> file-directory"
>
> note: our entire trac project itself sits behind authentication at
> this point. could this be an issue for trac-wiki.el?

I guess this might be a issue on emacs, especialy on url library,
and  not in trac-wiki itself because url-file-directory function is not used
in its code.

What version of emacs and what type of os are you using?
I've tested with emacs 21.4 on debian etch and with meadow
(based on emacs 22.2) on windows.

-- 
Shun-ichi GOTO

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-05 Thread km

> If XML_RPC does not show up in the pulldown menu of actions in the
> webadmin interface, the xmlrpc-plugins is most probably not working.

ah, i was wondering about this. our server is runing 0.11rc1 and we
ran into the xmlrpc bug reported here:

http://trac-hacks.org/ticket/2922

we had disabled most of the options. i just tried playing with
different configurations of options (basically, alternating between
the web page throwing up errors -- and removing options in the file
via the terminal). the culprit seems to be trac.rpc_ui

enabling everything else and the xmlrpc option now appears in the
action menu.

> you could also try to accesshttp://yourserver.tld/trac/xmlrpc  directly with 
> a browser.

this generates a 404. i wonder if this is because of disabling
trac.rpc_ui

trying to access the page with emacs trac-wiki generates the
following:

"error in process sentinel: Symbol's function definition is void: url-
file-directory"

note: our entire trac project itself sits behind authentication at
this point. could this be an issue for trac-wiki.el?

thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-05 Thread Thomas Moschny

2008/6/5 km <[EMAIL PROTECTED]>:
>> Make sure that you have a trac user with XML_RPC rights.
>
> actually this is another issue that is a bit confusing. this portion
> of the trac-wiki instructions makes it sound as if i need to add the
> *action* XML_RPC to the (existing) "authenticated " *subject*
>
> in other words, i already have an "authenticated" subject -- but it is
> not clear how to create/add new actions to associate with it. the web
> interface seems to allow only the use of actions already appearing on
> the pull-down menu -- and i have not been able to find documentation
> for how to create new actions by editing (a trac.ini ?) file directly.
>
> how/where is this done?

If XML_RPC does not show up in the pulldown menu of actions in the
webadmin interface, the xmlrpc-plugins is most probably not working.

Is it installed correctly and enabled? See
http://trac.edgewall.org/wiki/TracPlugins. You should check the
webadmin's general -> plugins tab, and you could also try to access
http://yourserver.tld/trac/xmlrpc directly with a browser.

- Thomas

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-05 Thread km

> The url to be given there is the same url you would use when accessing
> the root of your trac installation with a browser. trac-wiki appends
> "/xmlrpc" itself.

ah, ok, thanks. it sounds as if my mistake was assuming that i need to
specify an actual file (with its correct file extension) in the
directory (eg., index.html, or index.wiki, or etc.)

> Make sure that you have a trac user with XML_RPC rights.

actually this is another issue that is a bit confusing. this portion
of the trac-wiki instructions makes it sound as if i need to add the
*action* XML_RPC to the (existing) "authenticated " *subject*

in other words, i already have an "authenticated" subject -- but it is
not clear how to create/add new actions to associate with it. the web
interface seems to allow only the use of actions already appearing on
the pull-down menu -- and i have not been able to find documentation
for how to create new actions by editing (a trac.ini ?) file directly.

how/where is this done?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-05 Thread Shun-ichi GOTO

2008/6/5 km <[EMAIL PROTECTED]>:
>> i have installed xmlrpc on my server -- and have seen information
> about trac-wiki (plugin for emacs) and an eclipse plugin. it is very
> possible that i am completely confused, but presumably i need to pass
> a url to these editors to actually edit pages. so, what is the format
> of the urls?

For  'trac-wiki" on emacs, url is a  target trac site url itself.
For example, to access to trac page of emacs-trac-wiki project,
you would specify http://www.meadowy.org/~gotoh/projects/trac-wiki/

-- 
Shun-ichi GOTO

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-05 Thread Thomas Moschny

2008/6/5 km <[EMAIL PROTECTED]>:
> let me try again. if i have MY OWN server with MY OWN installation of
> trac running on it, what are the ways in which i can pull down, edit,
> and then resubmit MY OWN pages using an editor on my machine? i would
> prefer to used emacs (or even a local text editor) to the process of
> logging into my trac projects and updating the pages inside the
> browser.
>
> i have installed xmlrpc on my server -- and have seen information
> about trac-wiki (plugin for emacs) and an eclipse plugin. it is very
> possible that i am completely confused, but presumably i need to pass
> a url to these editors to actually edit pages. so, what is the format
> of the urls?

In your .emacs, you should have something like
;; ---
(require 'trac-wiki)
(trac-wiki-define-project "yourproject" "http://yourserver.tld/trac/"; t)
;; ---
The url to be given there is the same url you would use when accessing
the root of your trac installation with a browser. trac-wiki appends
"/xmlrpc" itself. Note that "M-x trac-wiki" also lets you define new
locations interactively, and stores their definition in your .emacs
file.

Make sure that you have a trac user with XML_RPC rights.

- Thomas

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-05 Thread km

> Not sure what you think you are going to do, but whatever it is you cannot.

perhaps  the odd logic of the charming reply above is because i
unintentionally gave the impression that i am trying to hack into or
edit someone else's site (named www.trac-server.com in my example).

let me try again. if i have MY OWN server with MY OWN installation of
trac running on it, what are the ways in which i can pull down, edit,
and then resubmit MY OWN pages using an editor on my machine? i would
prefer to used emacs (or even a local text editor) to the process of
logging into my trac projects and updating the pages inside the
browser.

i have installed xmlrpc on my server -- and have seen information
about trac-wiki (plugin for emacs) and an eclipse plugin. it is very
possible that i am completely confused, but presumably i need to pass
a url to these editors to actually edit pages. so, what is the format
of the urls?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: remote access - url format?

2008-06-04 Thread Noah Kantrowitz

km wrote:

I would like to edit certain trac pages from within my local editor
(from within emacs, using tramp, but that isn't important). What is
the format for trac urls?

Assume I wanted to grab a copy of the top-level wiki page for trac-
project at www.trac-server.com

  sftp [EMAIL PROTECTED]/trac-project/wiki/[WHAT GOES HERE?]



Not sure what you think you are going to do, but whatever it is you cannot.

--Noah



signature.asc
Description: OpenPGP digital signature