Item8086: Direct file I/O fails when outside of Pub, and Apache config requirements not documented

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release:
Applies To: Extension
Component: DirectedGraphPlugin
Branches:
Reported By: Foswiki:Main.MartinCleaver
Waiting For: Foswiki:Main.GeorgeClark
Last Change By: GeorgeClark
Reported initially against Foswikitask:Item5954 by Foswiki:Main.MartinCleaver Opening a new task to track checkins.

Below report exposed 2 issues:
  • Documentation does not reflect Apache changed needed for Direct File I/O outside of Pub.
  • I/O outside of Pub wasn't working. Pub was always used regardless of setting.


Note that this is incompatible with the ApacheConfigGenerator, as you need to manually add the line:

Alias /dpg-attach "/.../htdocs/dgp-attach"

to your site's apache.conf

Kinda defeats the purpose.

-- MartinCleaver - 24 Mar 2009

Hi Martin. If you set the attachPath to the pub directory, then it shouldn't impact the Apache configuration. If you configure the plugin to write outside of the Foswiki pub directory, then you not only need to add the alias, you probably also have to add a statement. if you decide to configure the plugin to write outside of the default Foswiki directories, then the Apache configuration will have to reflect that configuration. I guess that would suggest that this is for "Expert Users" - maybe I should flag these as expert level parameters?

I'll try to add some documentation to the configuration.

And an update from Martin - This additional directory appears to be incompatible with the rewrite rules for shorter URLs. It's probably an issue with the rewrite rules, as any added content directories would have the same issue.

And another update. Martin, you found a significant bug. Even when configured to write outside of the pub directory, the plugin continues to operate on the pub directory. So the failure was unrelated to the Short URL configuration. I've got a fix working here complete with short URL,s but I want to test further and also test on Windows before releasing. Hopefully I can finish this all off this week.

-- GeorgeClark - 25 Mar 2009

-- GeorgeClark - 26 Mar 2009

ItemTemplate edit

Summary Direct file I/O fails when outside of Pub, and Apache config requirements not documented
ReportedBy Foswiki:Main.MartinCleaver
Codebase 1.0.4, 1.0.0
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component DirectedGraphPlugin
Priority Normal
CurrentState Closed
WaitingFor Foswiki:Main.GeorgeClark
Checkins
ReleasedIn
Topic revision: r2 - 05 Apr 2009, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy