Marius Hanganu | 3 Aug 13:48
Picon

Snipsnap RSS

Hi,

I am using Snipsnap, but I really do feel the need of a RSS newsfeed for the ENTIRE wiki site. I've seen you have support for RSS for individuals snips. I am using a rather small wiki, so having a rss for the entire wiki would be great.

I've seen a plugin called rss-ng, manage to build it, but have no idea how to install plugins in snipsnap.

I would appreciate your feedback on this matter,
Thanks,
Marius

_______________________________________________
SnipSnap-Users Mailing List
snipsnap-users <at> snipsnap.org | http://snipsnap.org/
http://snipforge.org/cgi-bin/mailman/listinfo/snipsnap-users
Marius Hanganu | 4 Aug 10:08
Picon

Accessing servletContext of another web app from Snipsnap

Hi,

I am trying to access from SnipSnap's filters (GZIPFilter and InitFilter) some variables from another web application.

I have the following webapps: "/app1" and "/snipsnap". I have configured app1 and successfully tested the access to its variables using a second app called  "/app2".

In GZipFilter or InitFilter I wrote the following sequence (pretty standard for retrieving variables from other webapps):

-------------------------------------------------
FilterConfig filterConfig = null;

public void init(FilterConfig filterconfig) {
        this.filterConfig = filterconfig;
}

public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
    throws IOException, ServletException {
        // filterConfig is stored
        ServletContext servletContext = filterConfig.getServletContext();
        ServletContext context = servletContext.getContext("/app1");
        System.out.println(">>>>>>>>>> context = " + context);
        ..............
}
----------------------------------------

At this point the context of /app1 is always null, no matter what I do. The same context is valid and not-null when using the same construction from my test /app2 (which uses the same filter).

Both /app1 and /snipsnap have their context.xml file located in META-INF with crossContext set to true.

Appreciate any feedback,
Regards,
Marius

_______________________________________________
SnipSnap-Users Mailing List
snipsnap-users <at> snipsnap.org | http://snipsnap.org/
http://snipforge.org/cgi-bin/mailman/listinfo/snipsnap-users
Nick Rothwell | 14 Aug 13:19
Favicon
Gravatar

Proxy cookies broken in 1.0...?

I'm messing around with 1.0b2 and having problems with login (which I
guess is a cookie issue). If I connect to the instance directly (port
8668) then everything works fine, but if I connect via an Apache
proxy, the login only succeeds for the following page, and is then
dropped.

I've just tested again with 0.5.2a and the problem doesn't arise there.

I'm using the Apache rewrite module. Here's a chunk of my httpd.conf:

<VirtualHost 66.199.228.111>
    ServerName wiki.cassiel.com
    ....
    RewriteRule ^/((space|comments|theme|exec)/.*) http://127.0.0.1:8668/cassiel-wiki/$1 [P]
</VirtualHost>

Is there an obvious reason why login would break, when proxied,
between 0.5.2a and 1.0b2?

	-- N.

--

-- 

  nick rothwell -- composition, systems, performance -- http://www.cassiel.com
Nick Rothwell | 18 Aug 11:46
Favicon
Gravatar

Proxy cookie issue - fixed...

A quick follow-up to the problems I was having with proxied SnipSnaps
not preserving logins... Turns out it was just pilot error. For some
daft reason, I'd been saying

	http://<server>:8668/install?expert=true

for each "instance", setting the application prefix each time. This
was giving me several complete webapps. The application prefix meant
that each one would get the cookie path for logins right with a direct
connection to <server>:8668, but not when proxied through Apache.

The correct action, of course, is

	http://<server>:8668/admin/configure?prefix=/xxxx

which creates a new instance inside an existing webapp, and sets up
prefix which works correctly via proxying.

The real giveaway was the diagnostics given out by SnipSnap when it
starts up: one gets to see each webapp in turn, and all the SnipSnap
instances (and prefixes) per webapp.

Thanks to Leo for spending time looking into this with me...

	-- N.

--

-- 

  nick rothwell -- composition, systems, performance -- http://www.cassiel.com
Sushil Bajracharya | 19 Aug 00:59
Picon
Gravatar

changing the application folder in file based installation

I just installed snipsnap in a  WindowsXP machine. I am running it
with file based storage. By default snipsnap fetches file from the
folder 'applications' inside the users 'Document and Settings' folder.
How can I make it run from a custom folder. I tried to change the
value of the entry key "snipsnap.server.webapp.root" to the location
of the custom folder, but it does not work. I'll appreciate any
suggestions on this.

- sushil
Spence, Ian (ELS-CAM | 19 Aug 14:05
Picon
Favicon

Moving {weblog} ??

I would like the weblog listing to appear on a different page, not the start page.

When I try to move it and displaying the page, nothing appears?
(I simply move {weblog} from start to a page called [ Go to Weblog ]

____________________________________
Ian Spence
Senior Developer, Clinical Decision Support
Elsevier Health Sciences Division
http://iconsult.elsevier.com/

Elsevier
32 Jamestown Road
London NW1 7BY
UK
[t] +44 (0)20 7424 4240
[m] +44 (0)7891 875735
[e] i.spence <at> elsevier.com
____________________________________
CONFIDENTIALITY NOTICE: This email message and any accompanying data are confidential and intended solely for use of the named recipient(s). If you are not the intended recipient(s), you are hereby notified that the dissemination, distribution, and or copying of this message is strictly prohibited. If you receive this message in error, or are not the named recipient(s), please notify the sender at the email address above, delete this email from your computer, and destroy any copies in any form immediately.


_______________________________________________
SnipSnap-Users Mailing List
snipsnap-users <at> snipsnap.org | http://snipsnap.org/
http://snipforge.org/cgi-bin/mailman/listinfo/snipsnap-users
Nick Rothwell | 19 Aug 15:43
Favicon
Gravatar

Re: Moving {weblog} ??

> When I try to move it and displaying the page, nothing appears?
> (I simply move {weblog} from start to a page called [ Go to Weblog ]

The way it works as I understand it, and as I'm using it (I'm sure
I'll be corrected if I'm wrong) is that every page potentially has its
own weblog. If you hit "post blog" on a page containing a {weblog}, it
logs to the weblog of that page. If you hit "post blog" on any other
page, it posts to the weblog of [start].

If you want to move the actual weblog entries from one page to
another, I suspect you'll have to do some manual rearrangement of the
data storage, or else export the instance in XML and modify it there.

While we're on the subject: is it intentional that any page with a
{weblog} has its title (and history information) suppressed? It seems
to be the case but I thought I'd ask.

	-- N.

--

-- 

  nick rothwell -- composition, systems, performance -- http://www.cassiel.com

Gmane