[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-12-08 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c14


--- Comment #14 from QuickJack . test051...@hotmail.com 2010-12-08 08:38:08 
UTC ---
I have created a new bug report for the issue. See bug #658184.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-12-03 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c13


--- Comment #13 from QuickJack . test051...@hotmail.com 2010-12-03 10:20:47 
UTC ---
Hi Marek, Hi Miguel,

I've just tested the problem using Mono 2.8.1 and I am happy that my test case
now works without throwing an exception. The authorization section is added
with the correct allow rule. Thanks for fixing this bug.

However, there is still something wrong. If you try to add a deny rule by
changing line
AuthorizationRule rule=new AuthorizationRule(AuthorizationRuleAction.Allow);
to AuthorizationRule rule=new
AuthorizationRule(AuthorizationRuleAction.Deny);
Mono 2.8.1 will simply add an allow rule instead of the requested deny
rule.


Best regards,
Martin

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-10-22 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c11


--- Comment #11 from QuickJack . test051...@hotmail.com 2010-10-22 13:38:26 
UTC ---
Hi Marek,

thanks for fixing this bug.

Is this bug fix included in Mono 2.8? If not, when will it be available from
the repositories?

I have just tested Mono 2.8 stable. Unfortunately, the behaviour is exactly the
same as before. The fix is not included.


Best regards,
Martin

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-10-22 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c12


--- Comment #12 from Marek Habersack mhabers...@novell.com 2010-10-22 
15:49:07 CEST ---
I've just backported it to the mono-2-8 branch, commits:

7c22cb0135af1ad1bcf84a103a31d0add655cefa
b54ac462303cca688c7461ce28279a1d40a87f1e

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-10-04 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c9


Marek Habersack mhabers...@novell.com changed:

   What|Removed |Added

 Status|NEEDINFO|REOPENED
  Component|System  |Sys.Web
   InfoProvider|test051...@hotmail.com  |

--- Comment #9 from Marek Habersack mhabers...@novell.com 2010-10-04 15:29:58 
CEST ---
- Sys.Web

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-10-04 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c10


Marek Habersack mhabers...@novell.com changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED

--- Comment #10 from Marek Habersack mhabers...@novell.com 2010-10-04 
16:05:12 CEST ---
Fixed in commits 872c7d9a621d9883a805c3342086ee84e77852dc,
cba40249f9b632eb800a1644546de0b7cddd01b1 (master) and
f941c9b9b83c2d1428ec6c9bbf030ebb2f9c210c,
88e76d88ec0c54e89414fee2ea54d776c38e6613 (mono-2-6)
Backport to mono-2-8 pending QA approval.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-09-29 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c7


--- Comment #7 from QuickJack . test051...@hotmail.com 2010-09-29 09:12:19 
UTC ---
Hi Miguel, Hi Marek,

do you still need more information?

Is there any chance for a fix in the near future?


Best regards,
Martin

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-09-29 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c8


--- Comment #8 from Marek Habersack mhabers...@novell.com 2010-09-29 11:15:33 
CEST ---
I will be looking at it next week.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-09-17 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c6


--- Comment #6 from QuickJack . test051...@hotmail.com 2010-09-17 14:45:40 
UTC ---
Created an attachment (id=390245)
 -- (http://bugzilla.novell.com/attachment.cgi?id=390245)
Test Project

Hi Marek,

you find a test project in the attachment. The project opens in WinXP/ VS2008
as well as Suse 11.2/ MonoDevelop 2.4. After opening the project press CTRL+F5
to run the web application once and compare the results.

(1a) Displayed text in the browser under WinXP/ VS2008:
config!=null
auth!=null
rule!=null
more then 1 user! 

(1b) Displayed text in the browser under Suse 11.2/ current Mono 2.8 Preview/
MonoDevelop 2.4:
Error: You must supply either a list of users or roles when creating an
AuthorizationRule

(2a) Contents of web.config file under WinXP/ VS2008:
?xml version=1.0 encoding=utf-8?
configuration
   appSettings /
   connectionStrings /
   system.web
  authorization
 allow users=me /
  /authorization
   authentication mode=Windows /
   /system.web
/configuration”

(2b) Contents of web.config file under Suse 11.2/ current Mono 2.8 Preview/
MonoDevelop 2.4:
?xml version=1.0 encoding=utf-8?
configuration
   appSettings /
   connectionStrings /
   system.web
  authentication mode=Windows /
   /system.web
/configuration

By comparing 1a and 1b we can conclude, that the application throws an
exception under Mono 2.8. By comparing 2a and 2b we realize, that Mono 2.8 did
not even add an authorization section.

I hope this helps a bit in finding and understanding the problems.


Best regards,
Martin

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-09-16 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c4


--- Comment #4 from QuickJack . test051...@hotmail.com 2010-09-16 19:42:59 
UTC ---
Hi Miguel,

thanks for your detailed answer.

Let me explain what I am doing with System.Configuration.Save(). I have created
a web portal which allows to control a number of custom web applications. The
portal extensively uses ASP.NET’s security features. Of course, detailed user
information is stored in a database using ASP.NET’s default scheme.

This web portal has an admin area which lists all applications that are
accessible from the portal. Each application’s rights can be adjusted to
control which user is allowed to run which applications. As a result, there is
no more need to manually change configuration files.

Currently I have created 5 independent applications which are controlled from
my portal. All of these applications have been designed to be compatible to
Linux/ Mono. The system is running under WinXP + Apache 2.2/ mod_aspdotnet.
There are absolutely no problems with this setup. Of course there are a bunch
of people which are using this system concurrently inside of an intranet. There
are lot’s of roles and users.

If several administrators would log in and try to change an application’s
security settings at the same time, this might cause problems. But this case
will propably never happen.

But anyway, it should be possible to change a given web.config file’s
authorization section. This is all I want to do. It works in Windows/ .Net so
it should ideally also work in Linux/ Mono. But Mono’s Save() method always
throws an exception when .Net’s Save() method does not!

Tomorrow, I will prepare a test project and append this to the bug as a test
case.


Best regards,
Martin

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-09-16 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c5


--- Comment #5 from Miguel de Icaza mig...@novell.com 2010-09-16 21:59:52 UTC 
---
Martin,

   Thanks for the explanation;   The test case will help us nail this down.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-09-15 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c1


--- Comment #1 from QuickJack . test051...@hotmail.com 2010-09-15 09:45:57 
UTC ---
I have re-tested the issue using the current preview release of Mono 2.8.

If the config.Save() is covered inside of a try/ catch block, firefox displays
Error: You must supply either a list of users or roles when creating an
AutorizationRule. However, I obviously specified a user. Apart from that, the
code runs under Windows XP/ IIS without any problems.

I am disappointed that Mono 2.8 still lacks support for basic ASP.NET security
features and/ or support for reading/ writing web.config files. People don't
need ASP.NET 4. What they really need is 100% support for ASP.NET 2! Please fix
this before releasing Mono 2.8. Without that, I will not be able to convert my
projects to Linux/ Mono. This is a must have feature!

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-09-15 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c2


--- Comment #2 from Miguel de Icaza mig...@novell.com 2010-09-15 18:08:55 UTC 
---
Hello,

   System.Configuration support for Save() has not really been a priority for
us, because few people use it, and in cases like this, it does not do what you
think it should do.

   It does a few things: (a) it restart the application, because of a change in
web.config, this means that all running requests will be aborted until the new
settings take place;   (b) using a plain file-save operation to store your
settings is not multi-request safe in the presence of various users making
changes.

We encourage developers to handle authentication and authorization through
a database.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-09-15 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=579837

https://bugzilla.novell.com/show_bug.cgi?id=579837#c3


Marek Habersack mhabers...@novell.com changed:

   What|Removed |Added

 Status|NEW |NEEDINFO
   InfoProvider||test051...@hotmail.com
 AssignedTo|mono-bugs@lists.ximian.com  |mhabers...@novell.com

--- Comment #3 from Marek Habersack mhabers...@novell.com 2010-09-15 22:03:58 
CEST ---
Mono's ASP.NET supports all of the security features to my knowledge. If you
are aware of any we don't support (which make sense in *nix context) - please
file a bug report with a test case (for the Sys.Web component).

Regarding this bug report - please attach a self-contained, simple test case
which shows exactly what you do to trigger the error. The little information
you provide is not enough to diagnose and reproduce the problem. Thanks!

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-08-09 Thread bugzilla_noreply
http://bugzilla.novell.com/show_bug.cgi?id=579837

http://bugzilla.novell.com/show_bug.cgi?id=579837#c


Gonzalo Paniagua Javier gonz...@novell.com changed:

   What|Removed |Added

 AssignedTo|gonz...@novell.com  |mono-bugs@lists.ximian.com

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 579837] System.Configuration.Save() method throws an exception when trying to add an authorization section to an existing Web.config

2010-06-30 Thread bugzilla_noreply
http://bugzilla.novell.com/show_bug.cgi?id=579837

http://bugzilla.novell.com/show_bug.cgi?id=579837#c


Miguel de Icaza mig...@novell.com changed:

   What|Removed |Added

 CC||mig...@novell.com
 AssignedTo|mono-bugs@lists.ximian.com  |gonz...@novell.com

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs