Commit graph

257 commits

Author SHA1 Message Date
dwetzel
4fc53b0cea * read POST data before contacting the app
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26165 72102866-910b-0410-8b05-ffd578937521
2008-03-01 19:47:30 +00:00
dwetzel
e3e78d7c04 pass more info to the application
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26094 72102866-910b-0410-8b05-ffd578937521
2008-02-18 21:42:13 +00:00
ayers
f16a58bdee * GSWeb.framework/GSWUtils.m (boolValueFor,boolValueWithDefaultFor): Rely
on [NSString-boolValue] as it handle NO and digits more correctly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26057 72102866-910b-0410-8b05-ffd578937521
2008-02-13 00:50:10 +00:00
dwetzel
afd8540a8d * GSWKeyValueAssociation
added _isValueSettable
added _setValueNoValidation: inComponent:
* GSWRepetition.m
use private _setValueNoValidation: inComponent: to speed things up


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25651 72102866-910b-0410-8b05-ffd578937521
2007-11-30 21:24:24 +00:00
dwetzel
c73ec0db7a add _setValueNoValidation:inComponent:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25647 72102866-910b-0410-8b05-ffd578937521
2007-11-30 13:30:33 +00:00
dwetzel
2d0513e0dc * rewrote large parts of GSWDefaultAdaptor
* new GSWHTTPIO and GSWWorkerThread
* dropped GSWDefaultAdaptorThread
* some takeValue:forKey: fixes
* started to remove global inclues


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25611 72102866-910b-0410-8b05-ffd578937521
2007-11-25 16:49:37 +00:00
dwetzel
ea8ca90177 * strip \r off on line end before \n
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25606 72102866-910b-0410-8b05-ffd578937521
2007-11-25 10:03:55 +00:00
ayers
28bf170448 * GSWeb.framework/GSWApplication+Defaults.m
(TAKEVALUEFORKEY): Rely on setValue:forKey: to handle
	nil values.

	* GSWExtensions.framework/GSWKeyValueConditional.h
	* GSWExtensions.framework/GSWKeyValueConditional.api
	Convert from DOS to UNIX line feeds.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25604 72102866-910b-0410-8b05-ffd578937521
2007-11-24 10:13:22 +00:00
dwetzel
69168f9959 2007-06-22 David Wetzel <dave@turbocat.de>
* GSWAdaptors/Apache2/mod_gsw.c
    * GSWSWeb.framework/GSWComponentRequestHandler.m
    * GSWeb.framework/GSWDefaultAdaptorThread.m

    Added support for POST requests from browsers without content-length header.
    (firefox does this without proxy)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25287 72102866-910b-0410-8b05-ffd578937521
2007-06-22 16:12:16 +00:00
dwetzel
f64550f135 made Application name clickable on status page
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25162 72102866-910b-0410-8b05-ffd578937521
2007-05-15 11:49:06 +00:00
dwetzel
65b3d15769 fixed "if" statement
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25132 72102866-910b-0410-8b05-ffd578937521
2007-05-10 12:01:46 +00:00
dwetzel
1567f25478 see log
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25035 72102866-910b-0410-8b05-ffd578937521
2007-04-13 20:42:37 +00:00
dwetzel
7f12dd9f92 see ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25029 72102866-910b-0410-8b05-ffd578937521
2007-04-13 18:40:33 +00:00
ayers
72ad57f106 * GSWeb.framework/GSWApplication.m (GSWApplicationMainReal):
Remove dependency on GNUSTEP_SYSTEM_ROOT and search all domains
	in precedence for frameworks to load.

	* Doc/howto.gsdoc: Replace reference to GNUSTEP_SYSTEM_ROOT with
	new installation location.  Also remove refernece to obsolete debug extension.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24641 72102866-910b-0410-8b05-ffd578937521
2007-02-18 11:19:58 +00:00
nicola
a58a19f52b Updated configure for gnustep-make v2, plus added handy auto-config rule to makefile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24625 72102866-910b-0410-8b05-ffd578937521
2007-02-18 02:13:27 +00:00
dwetzel
85bc7250fe Changed logging to include the file name and line number.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24220 72102866-910b-0410-8b05-ffd578937521
2006-12-19 22:43:49 +00:00
dwetzel
6867f983dc GSWAdaptors/common/GSWLoadBalancing.c: small cosmetic changes in spacing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24215 72102866-910b-0410-8b05-ffd578937521
2006-12-19 12:19:09 +00:00
ayers
f2d8311485 * GSWAdaptors/Apache/mod_gsweb.c: Add defines to support Apache 2.2.
* GSWAdaptors/common/GSWLoadBalancing.c
	(GSWLoadBalancing_FindInstance): Remove unsused variable.
	* GSWAdaptors/common/GSWStats.c (GSWStats_formatStats): Ditto.
	* GSWAdaptors/common/GSWURLUtil.c (GSWParseURL): Ditto.
	* GSWAdaptors/common/GSWHTTPResponse.c: Include netdb.h.
	* GSWAdaptors/common/GSWApp.c: Include time.h.
	(GSWAppInfo_MakeDictKeyName): Add parentheses to avoid compiler
	warning.
	* GSWAdaptors/common/GSWAppRequest.c
	(GSWAppRequest_SendAppRequestToApp): Add missing CONST declaration.
	* GSWAdaptors/common/GSWAppConnectSocket.c: Include unistd.h
	* GSWAdaptors/common/GSWConfig.c: Ditto.
	* GSWAdaptors/common/GSWConfig.h (g_pAppDict, config_mtime):
	Remove unused declarations.
	(GSWConfig_LoadConfiguration): Add missing declaration.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24201 72102866-910b-0410-8b05-ffd578937521
2006-12-12 13:52:36 +00:00
nicola
1552dff641 Use GNUSTEP_INSTALLATION_DOMAIN and DESTDIR
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24097 72102866-910b-0410-8b05-ffd578937521
2006-11-15 17:19:55 +00:00
ayers
7b1d4173d1 * GSWeb.framework/GSWDefaultAdaptorThread.m
(readRequestReturnedRequestLine:returnedHeaders:returnedData:):
	Remove superflous sleep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@23762 72102866-910b-0410-8b05-ffd578937521
2006-10-04 21:49:02 +00:00
ayers
7c84e4573f * Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.gswd
* Testing/DynamicElements/FileUpload1Page.gswc/FileUpload1Page.html
	* Testing/DynamicElements/FileUpload1Page.h
	* Testing/DynamicElements/FileUpload1Page.m: New tests.
	
	* Testing/DynamicElements/Resources/Info-DynamicElements.plist
	* Testing/DynamicElements/GNUmakefile:
	Add FileUpload tests.  Do not install tests in GNUSTEP_SYSTEM_ROOT.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@23761 72102866-910b-0410-8b05-ffd578937521
2006-10-04 21:07:40 +00:00
ayers
6702ad063a * Version: Update to 1.3.0
* config.mak.in: Update to use new GDL2 native library names.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@23520 72102866-910b-0410-8b05-ffd578937521
2006-09-15 10:54:16 +00:00
ayers
19cb99449e * GSWeb.framework/GSWAction.m (-[initWithRequest:]): Retain
context.
	* GSWeb.framework/GSWActionRequestHandler.m
	(-[getActionInstanceOfClass:withRequest:): Autorelease action.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@22368 72102866-910b-0410-8b05-ffd578937521
2006-01-26 20:42:20 +00:00
dwetzel
8c95b7f3e2 see log
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@22295 72102866-910b-0410-8b05-ffd578937521
2006-01-11 11:36:04 +00:00
ayers
b56e4cb3c1 * GSWAdaptors/Apache/mod_gsweb.c (GSWeb_Handler): Avoid endless
loop when users abort transmission with temporary hack.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@22186 72102866-910b-0410-8b05-ffd578937521
2005-12-19 11:05:35 +00:00
ayers
c962401fb4 * GSWeb.framework/GSWApplication+Defaults.m
(GSWeb_InitializeGlobalAppDefaultOptions): Add handling for
	GSW/WOStatusLoggingEndabled-GSWOPT_StatusLoggingEnabled.
	Fix handling of user defaults.
	((UserDefaults/GSWUserDefaults)): Split category in handling
	WO45 defaults and GSWeb specific defaults.
	(+is/setStatusLoggingEnabled): New methods and default to
	control status logging.
	(-set/defaultRequestHandlerClassName): Move to GSWApplication
	class implementation as this is not handled via user defaults.
	* GSWeb.framework/GSWApplication.(h/m)
	((UserDefaults/GSWUserDefaults)): Split category in handling
	WO45 defaults and GSWeb specific defaults.
	(+is/setStatusLoggingEnabled): New methods and default to
	control status logging.
	(+set/defaultRequestHandlerClassName): Move to GSWApplication
	class implementation as this is not handled via user defaults.
	(GSWFPutSL): New local macro to consistently log NSString's to
	a stream.  Updated callers to fputs.
	(+statusDebug...): Guard all calls with +isStatusDebuggingEnabled.
	(+statusLog...): Guard all calls with +isStatusLoggingEnabled.
	* GSWeb.framework/GSWConfig.h: Add GSWOPTVALUE_StatusLoggingEnabled.
	* GSWeb.framework/GSWConstants.h/m: Add GSWOPT_StatusLoggingEnabled.

	* GSWeb.framework/GSWHTMLRawParser.m (dealloc): Implement fixing
	a potentially major memory leak.
	* GSWeb.framework/GSWDefaultAdaptorThread.m (dealloc): Destroy
	pool (which should have been destroyed before, in normal operation).
	(run:) Destroy pool in case the threads is rerun.

	* GSWeb.framework/GSWApplication.(h/m) (-debugAdaptorThreadExited):
	New debug utility extension.
	* GSWeb.framework/GSWDefaultAdaptorThread.m (threadExited): Call new
	debug convenience method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@22174 72102866-910b-0410-8b05-ffd578937521
2005-12-17 16:44:58 +00:00
dwetzel
c2607310cf * GSWeb.framework/GSWSubmitButton.m
added support for Direct Actions
          removed category


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21931 72102866-910b-0410-8b05-ffd578937521
2005-10-31 14:33:46 +00:00
ayers
03a92c5ba0 * GSWeb.framework/GSWRequest.m
([_getFormValuesFromMultipartFormData]): Always set the default
	character set of the mime parser but be efficient for latin-1
	and utf-8.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21769 72102866-910b-0410-8b05-ffd578937521
2005-10-04 10:24:42 +00:00
ayers
515686ab31 * GSWeb.framework/GSWRequest.m:
(-[initWithMethod:uri:httpVersion:headers:content:userInfo:]):
	Leave _formValueEncoding undefined.
	(-[formValueEncoding]): Return defaultFormValueEncoding if
	formValueEncoding is undefined.
	(-[_formValueEncodingFromFormData:): Use formValueEncoding until
	we have encoding detection mechanisms.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21768 72102866-910b-0410-8b05-ffd578937521
2005-10-02 20:34:57 +00:00
ayers
b703fa9059 * GSWeb.framework/GSWDeclarationParser.m
(parseQuotedString): Handle escaped quotes.
	(parseDictionaryWithValuesAsAssociations:): Handle key path as key.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21765 72102866-910b-0410-8b05-ffd578937521
2005-10-02 13:04:23 +00:00
ayers
a73f130f25 * GSWeb.framework/GSWBaseParser.m
(-[lineAndColumnIndexesFromIndex:returnsLineIndex:columnIndex:])
	Treat '\r' as a regualar character when counting lines as '\n'
	is the actual line break.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21764 72102866-910b-0410-8b05-ffd578937521
2005-10-02 12:22:36 +00:00
dwetzel
3591724c3f 2005-09-30 David Wetzel <dave@turbocat.de>
* GSWeb.framework/GSWDynamicURLString.m
        added dataUsingEncoding: allowLossyConversion:
        * GSWeb.framework/GSWRequest.m
        avoid cString (hint from David Ayers)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21762 72102866-910b-0410-8b05-ffd578937521
2005-09-30 15:33:25 +00:00
ayers
5eab6c1214 * GSWAdaptors/common/GSWApp.h (GSWApp_New, GSWAppInfo_Init):
Correct prototype.
        * GSWAdaptors/common/GSWConfig.h (GSWConfig_GetConfig)
        (GSWConfig_CanDumpStatus, GSWConfig_AddTimeHeaders)
        (GSWConfig_IsDebug, GSWConfig_IsReaden)
        (GSWConfig_GetConfigFilePath, GSWConfig_AdaptorBuilt)
        (GSWConfig_ServerStringInfo, g_szGSWeb_AdaptorStringInfo)
        (GSWConfig_ServerURL, g_szGSWeb_AdaptorURL): Ditto.
        * GSWAdaptors/common/GSWString.h (GSWString_New): Ditto.
        * GSWAdaptors/common/GSWUtil.h (GSWTime_now)
        (GSWUtil_ClearHostCache): Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21229 72102866-910b-0410-8b05-ffd578937521
2005-05-16 11:36:38 +00:00
ayers
f81f7b32df * GSWAdaptors/Apache/configure.ac: Only add to CPPFLAGS if
ac_x_includes is set and only add LDFLAGS if ac_x_libraries
        set.  Refer to variables in consistent form.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21228 72102866-910b-0410-8b05-ffd578937521
2005-05-16 11:21:27 +00:00
ayers
00f397580c * GSWAdaptors/Apache/mod_gsweb.c: Rename GSWeb_Module to
gsweb_module for apxs integration.
        * INSTALL: Refer to GSWAdaptors/Apache/INSTALL for Apache
        specific installation instructions.  Move Apache specific
        installation instructions to GSWAdaptors/Apache/INSTALL.
        * GSWAdaptors/Apache/INSTALL: Update to new ./configure
        usage and new install and httpdconfig make targets.
        * GSWAdaptors/Apache/GNUmakefile.in: New file to build
        the adaptor module with apxs and apr-config.
        * GSWAdaptors/Apache/configure[.ac]: New files
        * GSWAdaptors/Apache/config.guess: Ditto.
        * GSWAdaptors/Apache/config.sub: Ditto.
        * GSWAdaptors/Apache/install-sh: Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21206 72102866-910b-0410-8b05-ffd578937521
2005-05-09 12:20:18 +00:00
ayers
b8d239ee06 * GSWeb.framework/GSWUtils.h/m (GetTmpName): Remove unused
function which generates warnings about tempnam usage.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21187 72102866-910b-0410-8b05-ffd578937521
2005-05-04 10:16:51 +00:00
ayers
cf2e31df61 * GSWAdaptors/common/GSWStats.c (GSWStats_formatStats):
Use standard strtod instead of the GNU extension strtof
        which is stored in a double anyway.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21184 72102866-910b-0410-8b05-ffd578937521
2005-05-03 20:20:42 +00:00
ayers
853bef6233 * GNUmakefile, Examples/hello/GNUmakefile,
GSWExtensions.framework/GNUmakefile,
        GSWExtensionsGSW.framework/GNUmakefile,
        Testing/DynamicElements/GNUmakefile: Do not reset
        GNUSTEP_MAKEFILES to an obsolete location.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21179 72102866-910b-0410-8b05-ffd578937521
2005-05-02 18:13:17 +00:00
mguesdon
67aa31ebb5 Small fixes and optimizations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21155 72102866-910b-0410-8b05-ffd578937521
2005-04-24 12:12:16 +00:00
mguesdon
412aef3d9a Removed GSWHyperlink hrefInContext: and fixed enabled binding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21154 72102866-910b-0410-8b05-ffd578937521
2005-04-24 11:56:46 +00:00
dwetzel
4b712e0c8b removed some logs in GSWApplication.m GSWDefaultAdaptor.m GSWDefaultAdaptorThread.m GSWElementID.m GSWMessage.m GSWSessionTimeOutManager.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21138 72102866-910b-0410-8b05-ffd578937521
2005-04-21 12:49:00 +00:00
dwetzel
4cf26f46ec * GSWeb.framework/GSWDynamicURLString.m
o avoid message call if not needed.
* GSWeb.framework/GSWHyperlink.m
        o utf-8 bug workaround in GSWDynamicURLString


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21064 72102866-910b-0410-8b05-ffd578937521
2005-04-06 20:04:03 +00:00
mguesdon
0fa6a5270a Fixes and optimzations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21054 72102866-910b-0410-8b05-ffd578937521
2005-04-05 15:54:24 +00:00
mguesdon
c7c42d697f Optimizations, fixes and disabling sesson creation/restoration feature
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21051 72102866-910b-0410-8b05-ffd578937521
2005-04-05 14:49:55 +00:00
mguesdon
e6ba730b23 Small fixes and optimizations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21050 72102866-910b-0410-8b05-ffd578937521
2005-04-05 11:54:36 +00:00
dwetzel
c99ab7bf1d * GSWeb.framework/GSWApplication.m
* GSWeb.framework/GSWRequest.m
Use cStringLength in place of length


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21045 72102866-910b-0410-8b05-ffd578937521
2005-04-04 15:51:35 +00:00
mguesdon
81ff20297b Fixes in GSWUtil.c and GSWAppRequest.c
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21022 72102866-910b-0410-8b05-ffd578937521
2005-03-31 18:31:22 +00:00
ayers
f2bebb40b7 * GSWAdaptors/common/GSWHTTPResponse.c
(GSWHTTPResponse_GetResponse): Move variable declarations to
        top of block for older compilers.
        * GSWAdaptors/common/GSWUtil.h (GSWAssert): Ditto.  Remove
        bogus call to GSWLog().
        * GSWAdaptors/common/GSWStats.c (GSWStats_formatStats): Remove
        statement from variable declations for older compilers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21020 72102866-910b-0410-8b05-ffd578937521
2005-03-31 05:36:27 +00:00
ayers
13c2125572 * GSWeb.framework/GSWApplication+Defaults.m (GSWAppClassDummy):
Added method declarations to help various compiler versions
        identify the correct signaure to use.
        (+[GSWApplication setSessionTimeOutValue:]): Use it.
        (+[GSWApplication sessionTimeOutValue]); Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20969 72102866-910b-0410-8b05-ffd578937521
2005-03-25 16:01:55 +00:00
mguesdon
58dbc8c083 * GSWeb.framework/GSWBrowser.m
o fixed double HTML escaping bug (reported by David Ayers)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20960 72102866-910b-0410-8b05-ffd578937521
2005-03-22 09:04:46 +00:00