Commit graph

560 commits

Author SHA1 Message Date
David Ayers
be15a70bff * 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
Dave Wetzel
542867ab45 minor comments. will clean this stuff later :)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25532 72102866-910b-0410-8b05-ffd578937521
2007-10-23 21:14:15 +00:00
Dave Wetzel
ce30e17469 make file uploads work in firefox without proxy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25288 72102866-910b-0410-8b05-ffd578937521
2007-06-22 23:48:25 +00:00
Dave Wetzel
1e6833238c 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
Dave Wetzel
65765a9412 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
Dave Wetzel
a94bd64e42 fixed mixed up "_item" with "_selection"
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25141 72102866-910b-0410-8b05-ffd578937521
2007-05-11 10:05:46 +00:00
Dave Wetzel
a187fb6a58 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
Dave Wetzel
2b370da0c7 less debig output
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25036 72102866-910b-0410-8b05-ffd578937521
2007-04-13 20:57:12 +00:00
Dave Wetzel
fd940ebd03 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
Dave Wetzel
43438ae198 fix double text field, update documentation allow compilation with TCSDB
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25034 72102866-910b-0410-8b05-ffd578937521
2007-04-13 20:40:45 +00:00
Dave Wetzel
bf3f713b2b added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25032 72102866-910b-0410-8b05-ffd578937521
2007-04-13 20:14:21 +00:00
Dave Wetzel
c1aab698ee added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25030 72102866-910b-0410-8b05-ffd578937521
2007-04-13 18:46:41 +00:00
Dave Wetzel
d66a2e892c 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
Dave Wetzel
e958dee59c GSWExceptionPage without images, the design is still bad.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25028 72102866-910b-0410-8b05-ffd578937521
2007-04-13 18:32:57 +00:00
Dave Wetzel
d92957ccb6 moved files from my branch. I hope it will not break too much :-)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25027 72102866-910b-0410-8b05-ffd578937521
2007-04-13 18:32:02 +00:00
Dave Wetzel
47ace186dd added first version of native apache 2 module
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24977 72102866-910b-0410-8b05-ffd578937521
2007-04-10 17:51:22 +00:00
David Ayers
c751ea3e90 * 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 Pero
1d83fd7875 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
Nicola Pero
916e3f496b Added comment about danger of using GNUSTEP_SYSTEM_ROOT env variable to locate resources
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24624 72102866-910b-0410-8b05-ffd578937521
2007-02-18 02:12:45 +00:00
Dave Wetzel
5585d73061 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
Dave Wetzel
edfd34c489 Changed logging to include the file name and line number.
A logfile with "[debug] ../common/GSWUtil.c(165)" does not make much sense :-)
- GSWLog(GSW_WARNING,p_pLogServerData,
+ GSWLog(__FILE__, __LINE__, GSW_WARNING,p_pLogServerData,



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24219 72102866-910b-0410-8b05-ffd578937521
2006-12-19 22:41:28 +00:00
Dave Wetzel
a2467f5864 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
Dave Wetzel
126006dd58 small cosmetic changes in spacing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24214 72102866-910b-0410-8b05-ffd578937521
2006-12-19 12:16:57 +00:00
David Ayers
2f2a13fc47 * 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 Pero
f62af1ca72 Uncommented some lines that I unwillingly commented out in doing the last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24142 72102866-910b-0410-8b05-ffd578937521
2006-11-21 12:59:35 +00:00
Nicola Pero
da3ada8346 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
Richard Frith-MacDonald
36cdef1fba correct illegal use of private internal base library api
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@23793 72102866-910b-0410-8b05-ffd578937521
2006-10-09 08:58:37 +00:00
David Ayers
64434f87cc * 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
David Ayers
d8734dfc21 * 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
David Ayers
e318270cb4 * 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
David Ayers
e3f1372d29 * 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
Dave Wetzel
16857d52e5 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
Dave Wetzel
db77ed552d Removed multiple categories per file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@22294 72102866-910b-0410-8b05-ffd578937521
2006-01-11 11:33:46 +00:00
David Ayers
4573d13b24 * 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
Dave Wetzel
f642b1e51a patch from david ayers to avoid endless loop
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@22185 72102866-910b-0410-8b05-ffd578937521
2005-12-19 10:11:35 +00:00
David Ayers
8ee1195d11 * 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
Dave Wetzel
85ca5d92fd * 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
Dave Wetzel
8de6ae31a3 added support for Direct Actions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21930 72102866-910b-0410-8b05-ffd578937521
2005-10-31 14:31:18 +00:00
David Ayers
1f23cdf495 Revert workaround for buggy external implementations on some platforms.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21920 72102866-910b-0410-8b05-ffd578937521
2005-10-30 11:37:15 +00:00
Dave Wetzel
3267b04c36 removed ZLIB default
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21910 72102866-910b-0410-8b05-ffd578937521
2005-10-29 22:31:28 +00:00
David Ayers
b38c59f884 * 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
David Ayers
0b03330415 * 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
David Ayers
a3a00031a9 * 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
David Ayers
8e5df9662a * 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
Dave Wetzel
46daf448b6 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
Dave Wetzel
75db9e1263 added - (NSData*) dataUsingEncoding: (NSStringEncoding)encoding allowLossyConversion: (BOOL)flag
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21761 72102866-910b-0410-8b05-ffd578937521
2005-09-30 15:29:59 +00:00
Dave Wetzel
f2ba0d3691 avoid cString (hint from David Ayers)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21760 72102866-910b-0410-8b05-ffd578937521
2005-09-30 15:29:15 +00:00
Dave Wetzel
01c0036479 fix compression
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21753 72102866-910b-0410-8b05-ffd578937521
2005-09-28 09:00:31 +00:00
David Ayers
003294dcf7 * 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
David Ayers
81efc31c12 * 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