Commit Graph
72 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier d35d703d77 2008-12-25 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: use Replace (char, char).


svn path=/trunk/mcs/; revision=122109
2008-12-25 07:27:33 +00:00
Marek Habersack caa649ae51 2008-08-19 Marek Habersack <[email protected]>
* UrlUtils.cs: fail gracefully if the path passed to GetSessionId
	is null.

svn path=/trunk/mcs/; revision=110932
2008-08-19 10:34:46 +00:00
Marek Habersack 2a10f9ae73 2008-07-29 Marek Habersack <[email protected]>
* SessionStateModule.cs: use Request.FilePath instead of
	Request.BaseVirtualDirectory to retrieve the cookie-less session
	identifier. Fixes bug #397418

2008-07-29  Marek Habersack  <[email protected]>

	* UrlUtils.cs: fixed a typo in HasSessionId which made it always
	return False. Fixes bug #397418

2008-07-29  Marek Habersack  <[email protected]>

	* SessionStateModule.cs: use Request.FilePath instead of
	Request.BaseVirtualDirectory to retrieve the cookie-less session
	identifier. Fixes bug #397418

2008-07-29  Marek Habersack  <[email protected]>

	* HttpRequest.cs: if the FilePath contains embedded cookie-less
	session identifier, remove it before computing the base virtual
	directory. Fixes bug #397418



svn path=/trunk/mcs/; revision=109156
2008-07-29 13:01:55 +00:00
Robert Jordan 359978726b In System.Web:
2008-06-27  Robert Jordan  <[email protected]>

	* HttpCachePolicy.cs: map default HttpCacheability to
	"Cache-control: private" for MS.NET compatibility.
	Fixes bug #404083. Contributed by
	Hubert FONGARNAND <[email protected]>.

In System.Web.Util:
2008-06-27  Robert Jordan  <[email protected]>

	* TimeUtil.cs (ToUtcTimeString): convert using the invariant
	culture. Fixes bug #404083. Contributed by
	Hubert FONGARNAND <[email protected]>.


svn path=/trunk/mcs/; revision=106737
2008-06-27 13:32:43 +00:00
Marek Habersack c2b252087c 2008-06-16 Marek Habersack <[email protected]>
* UrlUtils.cs: optimize string usage (do not compare against "").

2008-06-16  Marek Habersack  <[email protected]>

	* UrlUtilsTest.cs: those tests can be ran only under the 2.0
	runtime (System.Web.Util.UrlUtils is an internal class)

svn path=/trunk/mcs/; revision=105899
2008-06-16 12:36:56 +00:00
Noam Lampert 11db989266 UrlUtils.cs: Fixed some bugs in Canonize method. Add several tests
svn path=/trunk/mcs/; revision=105894
2008-06-16 11:52:01 +00:00
Marek Habersack ae00a7ec53 2008-06-04 Marek Habersack <[email protected]>
* SessionStateModule.cs: set the application modifier path to bare
	session id.

2008-06-04  Marek Habersack  <[email protected]>

	* UrlUtils.cs: added internal method HasSessionId

2008-06-04  Marek Habersack  <[email protected]>

	* SessionStateModule.cs: set application path modifier string to
	the bare session ID.

2008-06-04  Marek Habersack  <[email protected]>

	* HttpResponse.cs: correctly modify virtual path to include the
	session ID in cookieless session mode. Fixes bug #396628.

svn path=/trunk/mcs/; revision=104861
2008-06-04 13:13:09 +00:00
Marek Habersack 4889b1ed60 2007-12-12 Marek Habersack <[email protected]>
* SettingsMappingManager.cs: use the 'settings.map.config' name
	for the application-specific mapper configuration. This ensures
	that the file won't be downloadable on systems which don't support
	the mapping feature without the need to add the extra handler
	entry to the app's Web.config file. Thanks to Joe Audette for the
	idea.

svn path=/trunk/mcs/; revision=91160
2007-12-12 17:05:14 +00:00
Marek Habersack 6fe0f52ede 2007-12-11 Marek Habersack <[email protected]>
* SettingsMappingManager.cs: made the class public - it is
	required for user-defined mappers to work.
	Added a new property, Platform, which specifies the platform we're
	running on. Platform check is now done only on initialization
	time.
	LoadMappings considers only the mappings which apply to the
	current platform. Other entries are not loaded.

	* SettingsMapping.cs: made the class public.
	
	* SettingsMappingWhat.cs: made the class public.

	* ISectionSettingsMapper.cs: made the interface public.

svn path=/trunk/mcs/; revision=91112
2007-12-11 15:31:09 +00:00
Marek Habersack 58eceab2ec 2007-12-08 Marek Habersack <[email protected]>
* TranslationResources.resx: added - string resources for the
	Sqlite providers.
2007-12-08  Marek Habersack  <[email protected]>

	* SQLiteProviders_DatabaseSchema.sql: added
	* Makefile: added support for compiling .resx resources.
	Added SQLiteProviders_DatabaseSchema.sql to EXTRA_DISTFILES.
	Added new resource files to EXTRA_DISTFILES
2007-12-08  Marek Habersack  <[email protected]>

	* HttpRuntime.cs: initialize the Settings Mapping Manager once per
	application, just after initalizing the WebConfigurationManager
2007-12-08  Marek Habersack  <[email protected]>

	* SqliteProfileProvider.cs: added - a Profile Provider for
        Sqlite, based on PostgreSQL Profile Provider code from Daniel
        Nauck <[email protected]>
2007-12-08  Marek Habersack  <[email protected]>

	* TranslationProperties.Designer.cs: added - contains strongly
	typed properties referring to string resources used by the Sqlite
	providers.
2007-12-08  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: GetSection now runs each section
	through a mapper (if any is defined for the section) before
	returning it to the caller.
2007-12-08  Marek Habersack  <[email protected]>

	* SqliteRoleProvider.cs: added - a Role Provider for
	Sqlite, based on PostgreSQL Role Provider code from Daniel
	Nauck <[email protected]>

	* SqliteMembershipProvider.cs: added - a Membership Provider for
	Sqlite, based on PostgreSQL Membership Provider code from Daniel
	Nauck <[email protected]>
2007-12-08  Marek Habersack  <[email protected]>

	* SerializationHelper.cs: added - serialization helper for the
	Sqlite Profile Provider.

	* RoleManagerSectionMapper.cs: added - section settings mapper for
	the RoleManager section.

	* MembershipSectionMapper.cs: added - section settings mapper for
	the Membership section.

	* ISectionSettingsMapper.cs: added - interface definition for
	section settings mappers.

	* SettingsMappingWhat.cs: added - describes a single 'what' tag
	instance inside the mapper definition in the settings.map file.

	* SettingsMapping.cs: added - represents a single mapper entry in
	the settings.map file.

	* SettingsMappingManager.cs: added - manages settings mapping as
	defined in the settings.map file.


svn path=/trunk/mcs/; revision=90972
2007-12-07 23:26:18 +00:00
Vladimir Krasnov 99d17a8d3b * UrlUtils.cs: optimized string.Replace in RemoveDoubleSlashes
svn path=/trunk/mcs/; revision=84392
2007-08-19 12:53:58 +00:00
Konstantin Triger 121f197bb2 refactoring for Serialize/Deserialize functionality
svn path=/trunk/mcs/; revision=74735
2007-03-21 14:09:20 +00:00
Marek Habersack 988df7eff0 2007-03-18 Marek Habersack <[email protected]>
* UrlUtils.cs: GetDirectory always returns a path with trailing
	slash.

2007-03-18  Marek Habersack  <[email protected]>

	* WebConfigurationSettings.cs: fix the GetConfigFromFileName
	directory logic.

2007-03-18  Marek Habersack  <[email protected]>

	* BaseParser.cs: fix BaseVirtualDir to always return app-absolute
	paths.

svn path=/trunk/mcs/; revision=74574
2007-03-18 22:12:53 +00:00
Marek Habersack 1ff45bbb84 2007-03-16 Marek Habersack <[email protected]>
* UrlUtils.cs: make sure the trailing slash is present.

svn path=/trunk/mcs/; revision=74465
2007-03-16 14:13:46 +00:00
Marek Habersack c4799d34fb make themes work. Also fixes bug #80953
svn path=/trunk/mcs/; revision=73707
2007-03-05 13:58:16 +00:00
Adar Wesley 0ec8702c71 2007-01-30 Adar Wesley <[email protected]>
* VirtualPathUtility.cs: fixed exceptions thrown from Combine
        so they are compatible with MS.

        * UrlUtils.cs: fixed GetFile to throw right exception


svn path=/trunk/mcs/; revision=71966
2007-01-30 14:59:58 +00:00
Miguel de Icaza 6b4c7232fd * SiteMapNode.cs (GetExplicitResourceString): implement.
* HttpContext.cs (GetGlobalResourceObject): remove unused variable.

        * StaticFileHandler.cs (ProcessRequest): remove unused variable.

        * HttpApplication.cs (ProcessError): Remove unused variable.

2007-01-20  Miguel de Icaza  <[email protected]>

        * ClientBuildManager.cs: Remove unused variable (this could be a
        real problem, we never use the appPhysicalTargetDir)

        * AssemblyBuilder.cs: Remove unused field.

        * AppResourceFilesCollection.cs: Remove unused field.

        * TemplateControlCompiler.cs (GetExpressionFromString): Remove
        unused variable.

        * AppResourcesCompiler.cs: Remove unused variable.

        * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
        parameter.

        * PageCompiler.cs: Put InternalCreatePageProperty inside the
        NET_2_0 block to eliminate warnings.

2007-01-20  Miguel de Icaza  <[email protected]>

        * HandlerFactoryConfiguration.cs (LoadType): remove unused
        variable.
        (ctor): do not assign parent, we do not use it, keep the code for
        reference.

2007-01-20  Miguel de Icaza  <[email protected]>

        * ApplicationManager.cs: Remove unused variable.
        (ShutdownAll) remove unused variables.

        * ApplicationHost.cs: Protect create_dir lock

2007-01-20  Miguel de Icaza  <[email protected]>

        * SqlRoleProvider.cs: comment out unused code.

        * SqlMembershipProvider.cs: Removed unused variables.
        Remove unused variable.

        * AnonymousIdentificationModule.cs (ClearAnonymousIdentifier):
        remove unused variable.   This might be a real bug.

2007-01-20  Miguel de Icaza  <[email protected]>

        * SessionStateModule.cs: Removed unused variables.

2007-01-20  Miguel de Icaza  <[email protected]>

        * SessionDictionary.cs: Removed unused variable (dirty).

2007-01-20  Miguel de Icaza  <[email protected]>

        * XhtmlTextWriter.cs: comment out unused code.

        * ThemeProvider.cs: comment out unused code.

        * DataSourceView.cs: Comment unused variable.

        * ClientScriptManager.cs: Put the expandoAttributes inside the 2.0
        code

        * Control.cs: Put _templateControl inside the NET_2_0 ifdef

2007-01-20  Miguel de Icaza  <[email protected]>

        * HtmlHead.cs: comment out unused code, in particular metadata is
        commented out because nothing could have triggered its creation.

        * HtmlButton.cs: Move declaration of `csm' inside the 1.1 case.

2007-01-20  Miguel de Icaza  <[email protected]>

        * DataControlFieldCollection.cs (RemoveAt): remove unused
        variable.

        * RoleGroupCollection.cs (OnValidate): Flag as protected, as it
        should not show up.

        * RadioButton.cs (RaisePostDataChangedEvent): This method was not
        used in 1.0, so put the whole method in 2.0

2007-01-20  Miguel de Icaza  <[email protected]>

        * WebPart.cs: Remove

        * PersonalizableAttribute.cs: Remove extra API that was wrong as well.

2006-11-28  Miguel de Icaza  <[email protected]>

        * WebPart.cs:

2007-01-20  Miguel de Icaza  <[email protected]>

        * FileUtils.cs (CreateTemporaryFile): Remove unused variable.



svn path=/trunk/mcs/; revision=71399
2007-01-20 22:42:04 +00:00
Igor Zelmanovich 047bfafcfe 2006-11-26 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	implemented RegisterExpandoAttribute feature	


svn path=/trunk/mcs/; revision=68473
2006-11-26 11:38:54 +00:00
Marek Habersack ffd7cdd5a3 Added a utility class - System.Web.Util.FileUtils - for dealing with temporary file names, and possibly for other common file operations to be added later on
svn path=/trunk/mcs/; revision=67800
2006-11-13 22:47:09 +00:00
Vladimir Krasnov 3817134257 * DataSourceResolver.cs: corrected exceptions type in ResolveDataSource
svn path=/trunk/mcs/; revision=58023
2006-03-15 15:42:39 +00:00
Chris Toshok eee4a3b134 2006-02-01 Chris Toshok <[email protected]>
* WebEncoding.cs: CONFIGURATION_2_0 => NET_2_0, and use GetSection
	instead of GetWebApplicationSection.


svn path=/trunk/mcs/; revision=56408
2006-02-01 19:32:48 +00:00
Gonzalo Paniagua Javier f905f7c51f 2006-01-31 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: more than one consecutive slash are turned into one.


svn path=/trunk/mcs/; revision=56368
2006-01-31 22:00:13 +00:00
Chris Toshok ea6f2c5659 2006-01-26 Chris Toshok <[email protected]>
* WebEncoding.cs: rework this so we cache the section, and so we
	swallow exceptions based on a broken configuration.


svn path=/trunk/mcs/; revision=56139
2006-01-27 02:20:08 +00:00
Konstantin Triger ce61559a30 under TARGET_JVM: merging /main/4
svn path=/trunk/mcs/; revision=55234
2006-01-09 16:02:35 +00:00
Chris Toshok 277c098f93 2005-11-28 Chris Toshok <[email protected]>
* WebEncoding.cs (FileEncoding, ResponseEncoding,
	RequestEncoding): CONFIGURATION_2_0 work.


svn path=/trunk/mcs/; revision=53583
2005-11-28 20:56:56 +00:00
Gonzalo Paniagua Javier e0f9a64bc8 2005-09-22 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: fix GetFile to work with '/blah'.


svn path=/trunk/mcs/; revision=50557
2005-09-23 02:59:24 +00:00
Sebastien Pouliot 11398bdca2 2005-09-11 Sebastien Pouliot <[email protected]>
* IWebObjectFactory.cs: New. 2.0 interface.
	* IWebPropertyAccessor.cs: New. 2.0 interface.
	* Transactions.cs: Added [Link|Inheritance]Demand for Minimal.
	* WorkItem.cs: Added [Link|Inheritance]Demand for Minimal. Added 
	Demand for UnmanagedCode on the static Post method,


svn path=/trunk/mcs/; revision=49906
2005-09-11 14:06:45 +00:00
Gonzalo Paniagua Javier d5ef4651d6 2005-08-28 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: removed 2 unused methods. IsRelativeUrl returns false if
	there's a colon in the string, assuming it's the beginning of the ://
	after the schema.


svn path=/trunk/mcs/; revision=49044
2005-08-28 23:40:12 +00:00
Miguel de Icaza 54079f764a Commit of changes to core files, on behalf of the team
svn path=/trunk/mcs/; revision=48944
2005-08-26 22:58:48 +00:00
Eyal Alalouf ea609b3f42 Initial compilation in TARGET_J2EE config
svn path=/trunk/mcs/; revision=47381
2005-07-18 12:13:27 +00:00
Gonzalo Paniagua Javier 240e0c46e3 2005-06-26 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: (Combine) if the base path is "~", expand it.


svn path=/trunk/mcs/; revision=46533
2005-06-27 03:58:36 +00:00
Gonzalo Paniagua Javier ab7a54ad17 2005-06-26 Gonzalo Paniagua Javier <[email protected]>
* StrUtils.cs: new string utilities.


svn path=/trunk/mcs/; revision=46527
2005-06-26 23:18:29 +00:00
Ben Maurer 3e1c677747 2005-05-09 Ben Maurer <[email protected]>
* UrlUtils.cs (Reduce): a more efficient impl that avoids an
	arraylist, making an arraylist into an array, and a replace
	operation.


svn path=/trunk/mcs/; revision=44292
2005-05-09 18:14:15 +00:00
Gonzalo Paniagua Javier 6b02b28598 2004-11-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web.SessionState/SessionStateModule.cs: set the path modifier
	when using cookie-less sessions.

	* System.Web/HttpResponse.cs: fixed ApplyAppPathModifier to insert the
	session ID.
	* System.Web.UI/Control.cs: fixed ResolveUrl for relative URLs when
	using cookie-less sessions.

	* System.Web.Util/UrlUtils.cs: made (Insert|Get|Remove)SessionId use
	the appRoot + SessionID + vpath format.

	Fixes the 3 issues reported in bug #66623.


svn path=/trunk/mcs/; revision=36818
2004-11-30 06:33:56 +00:00
Gonzalo Paniagua Javier 7006de857a 2004-07-20 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: don't pass double slash when the path begins with a
	tilde. Fixes bug #61654.

svn path=/trunk/mcs/; revision=31317
2004-07-20 17:42:16 +00:00
Gonzalo Paniagua Javier d1177f0843 fixed 59051
svn path=/trunk/mcs/; revision=28117
2004-05-26 02:51:47 +00:00
Gonzalo Paniagua Javier 05400a27d7 2004-05-26 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs:
	(GetFile): not public, and fixed to really return just the file name.
	(InsertSessionId): ensure that the directory ends with a "/". This
	fixes cookieless sessions.

svn path=/trunk/mcs/; revision=28109
2004-05-26 01:05:43 +00:00
Gonzalo Paniagua Javier 5c8ad0fda3 2004-05-14 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: respect trailing slashes. Fixes bug #56802.

svn path=/trunk/mcs/; revision=27323
2004-05-14 00:22:16 +00:00
Gonzalo Paniagua Javier 0dfe2b3696 2004-05-14 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: no more ^Ms.

svn path=/trunk/mcs/; revision=27322
2004-05-14 00:16:00 +00:00
Gonzalo Paniagua Javier e707ebe894 2004-04-24 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: MakeRelative was returning null for virtual paths without
	directory.

svn path=/trunk/mcs/; revision=25918
2004-04-24 03:46:04 +00:00
Gonzalo Paniagua Javier 86aa6c34d5 2004-04-22 Gonzalo Paniagua Javier <[email protected]>
* System.Web.dll.sources:
	* System.Web.Util/FileAction.cs:
	* System.Web.Util/FileChangeEventHandler.cs:
	* System.Web.Util/FileChangedEventArgs.cs:
	* System.Web.Util/FileChangesMonitor.cs:
	* System.Web.Util/FilePathParser.cs: removed unused/obsolete files.

svn path=/trunk/mcs/; revision=25810
2004-04-22 02:50:28 +00:00
Gonzalo Paniagua Javier 7a98da2455 2004-04-19 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: fixed MakeRelative. nGallery goes one step further.

svn path=/trunk/mcs/; revision=25671
2004-04-18 22:01:21 +00:00
Gonzalo Paniagua Javier a8d0b784b0 2004-03-19 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: small fix from George Kodinov for Combine when ~ is used.

svn path=/trunk/mcs/; revision=24340
2004-03-19 18:28:19 +00:00
Gonzalo Paniagua Javier e8e268bd79 2004-02-18 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: ~ is not always /. Fixed.

svn path=/trunk/mcs/; revision=23208
2004-02-18 14:09:55 +00:00
Gonzalo Paniagua Javier 699158873b 2004-02-17 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs:
	(Combine): handle subdirectories and tilde. Fixes bug 54231.

svn path=/trunk/mcs/; revision=23155
2004-02-17 02:48:58 +00:00
Alon Gazit 03e04c7d38 fix little error in GetDirectory().
svn path=/trunk/mcs/; revision=22668
2004-02-01 12:09:26 +00:00
Andreas N c00335d5d6 2004-01-11 Andreas Nahr <[email protected]>
* TransactedCallback.cs:
	* WorkItemCallback.cs:
	* WorkItem.cs:
	* Transactions.cs: Added and stubbed/ implemented

svn path=/trunk/mcs/; revision=21940
2004-01-11 13:54:58 +00:00
Andreas N ebcccebf55 2004-01-11 Andreas Nahr <[email protected]>
* WebEqualComparer.cs:
	* WebHashCodeProvider.cs:
	* FileAction.cs:
	* FileChangeEventHandler.cs:
	* NativeFileChangeEventHandler.cs: Monostyled header, internalized

svn path=/trunk/mcs/; revision=21939
2004-01-11 13:51:38 +00:00
Gonzalo Paniagua Javier 5c91f3bc8c 2004-01-09 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: make reduce not to throw an exception for '../'. Fixes
	bug #52599.

svn path=/trunk/mcs/; revision=21860
2004-01-08 23:05:58 +00:00
Alon Gazit e5544bf0e6 undo to the change that i made few hours ago.
the problem is in HyperLink.
sorry for my mistake.

svn path=/trunk/mcs/; revision=21552
2003-12-30 11:49:22 +00:00