Priority: Enhancement
Current State: Closed
Released In: 2.0.0
Target Release: major
Configure is in an unfinished state, and, I am concerned that the approach being taken - while perfectly valid - is increasing complexity way beyond where it should be. So I have cherry-picked some of the core Configure code to create the
experimental ConfigurePlugin. This provides an RPC interface to the reading, checking and saving support. It still needs (a cut down)
configure
, but only for initial configuration. Existing
configure
currently still works as written, but I think this new "lighter" interface should provide a more future-proof approach, as well as significantly lightening the core code and giving us an opportunity to release 1.2.0.
Requirements include:
- Able to run from command-line ( Item9880 )
- Configure operations can be called using RPC - getspec, check, change etc
- Simple UI using jQuery
- Existing checkers can be re-used
- Basic config (environment, non-negotiable dependencies) done using a stripped-down
configure
--
CrawfordCurrie - 29 May 2013
Here are some testing results:
-
SCRIPTHASH.pm
failed to find the bin directory. $0 doesn't work under apache suexec. Fix checked in.
-
Data::Structure::Util
appears to be an undocumented dependency
- jsonrpc fails with
Unknown encoding '' at /var/www/foswiki/trunk/core/lib/Foswiki/Response.pm line 377
when {Site}{CharSet}
is set to an empty string.
- This doesn't make a lot of sense to me. Foswiki runs fine without a
CharSet
specified, and Foswiki.pm
line 1722 supplies a default, so it should never be empty. The error reports: Encode::encode('', '{"jsonrpc":"2.0","id":"cfgroot_0","result":[{"title":"General...', 0) called at /var/www/foswiki/trunk/core/lib/Foswiki/Response.pm line 377
and the encoding is blank. That shouldn't happen, since a print in Foswiki.pm confirms that it is set to iso-8895-1
- Noticed that the GUI seems to have issues.
- The drop-down boxes show the first selection, not the configured value.
- Some areas appear to be missing data, for ex. only 2 plugins show in the list of enabled plugins.
--
GeorgeClark - 12 Dec 2013
cpanm Data::Structure::Util
fails to build. Seems to be broken upstream.
--
MichaelDaum - 03 Aug 2014