1.8.1 Import Problem

17 views
Skip to first unread message

justin.keogh

unread,
Apr 8, 2009, 1:19:44 PM4/8/09
to ccTiddly
When I go to import, select cctiddly type, and enter http://wiki.osmosoft.com/alpha/
(or any other cctiddly)I get:

[Exception... "Access to restricted URI denied" code: "1012" nsresult:
"0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "http://mysite.com/
Line: 11732"]

Do I need to edit config.php? Thanks -jk

simon mcmanus

unread,
Apr 9, 2009, 9:35:52 AM4/9/09
to ccTi...@googlegroups.com


2009/4/8 justin.keogh <justin...@gmail.com>


You should not need to edit the config.php file.

I think you just need to import using the TiddlyWiki server type. I realise this is slightly confusing but as the wiki.osmosoft.com/alpha presents a complete TiddlyWiki file the TiddlyWiki server tye is the correct one to use.

Hope this helps.

Thanks






--
Simon McManus

blog : http://simonmcmanus.com

justin.keogh

unread,
Apr 9, 2009, 8:42:57 PM4/9/09
to ccTiddly

With the server type set to TiddlyWiki to http://wiki.osmosoft.com/alpha/
I get "getting the list of available tiddlers" quickly followed by
"Error getting list of tiddlers, click Cancel to try again"

Thanks!


On Apr 9, 9:35 am, simon mcmanus <mcmanus.si...@gmail.com> wrote:
> 2009/4/8 justin.keogh <justin.ke...@gmail.com>

simon mcmanus

unread,
Apr 16, 2009, 9:52:53 AM4/16/09
to ccTi...@googlegroups.com


2009/4/10 justin.keogh <justin...@gmail.com>



With the server type set to TiddlyWiki to http://wiki.osmosoft.com/alpha/
I get "getting the list of available tiddlers" quickly followed by
"Error getting list of tiddlers, click Cancel to try again"

Thanks!

How interesting. Its actually symptomatic of another bug in ccTiddly.

Basically the forward slash is being stripped so the request goes to http://wiki.osmosoft.com/alpha which would usually provide a 301 redirect to http://wiki.osmosoft.com/alpha/.

Unfortunately the proxy code is unable to handle the 301 redirect.


As a temporary hack you could do change the following in the LoadRemoteFileThroughProxy tiddler :

loadRemoteFile = function(url,callback,params)
{
 if ((document.location.toString().substr(0,4) == "http") && (url.substr(0,4) == "http")){
 url = store.getTiddlerText("SiteProxy", "/proxy/") + url;
 }
url = url+"/";
 return bidix.core.loadRemoteFile(url,callback,params);
}

I have created a ticket :

http://trac.tiddlywiki.org/ticket/1037

Thanks for letting me know. 

Simon




On Apr 9, 9:35 am, simon mcmanus <mcmanus.si...@gmail.com> wrote:
> 2009/4/8 justin.keogh <justin.ke...@gmail.com>
>
>
>
> > When I go to import, select cctiddly type, and enter
> >http://wiki.osmosoft.com/alpha/
> > (or any other cctiddly)I get:
>
> > [Exception... "Access to restricted URI denied" code: "1012" nsresult:
> > "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "http://mysite.com/
> > Line: 11732"]
>
> > Do I need to edit config.php? Thanks -jk
>
> You should not need to edit the config.php file.
>
> I think you just need to import using the TiddlyWiki server type. I realise
> this is slightly confusing but as the wiki.osmosoft.com/alpha presents a
> complete TiddlyWiki file the TiddlyWiki server tye is the correct one to
> use.
>
> Hope this helps.
>
> Thanks
>
>
>
> --
> Simon McManus
>
> blog :http://simonmcmanus.com

Justin Keogh

unread,
Apr 18, 2009, 3:59:21 PM4/18/09
to ccTi...@googlegroups.com
I updated LoadRemoteFileThroughProxy

reloaded, and I still get:

"getting the list of available tiddlers" quickly followed by
"Error getting list of tiddlers, click Cancel to try again"

the test site is: http://0x1a.nfshost.com/

-justin

simon mcmanus

unread,
Apr 27, 2009, 2:26:56 PM4/27/09
to ccTi...@googlegroups.com


2009/4/18 Justin Keogh <justin...@gmail.com>

I updated LoadRemoteFileThroughProxy

reloaded, and I still get:

"getting the list of available tiddlers" quickly followed by
"Error getting list of tiddlers, click Cancel to try again"

the test site is: http://0x1a.nfshost.com/

-justin

Hi Justin,

I need to spend some time investigating this properly. I will try and look at it next week. Sorry for the delay. 

Thanks for getting back to me.

Simon


 

simon mcmanus

unread,
May 15, 2009, 7:42:26 AM5/15/09
to ccTi...@googlegroups.com
Hi Justin,


I have modified proxy.php so that it can follow 301 redirects.  This could be useful in a number of other situations too. It should mean the issue you describe above is now fixed.

This code is available in SVN now and will be included in the next release of ccTiddly.

Thanks

Simon

2009/4/27 simon mcmanus <mcmanu...@gmail.com>
Reply all
Reply to author
Forward
0 new messages