MSSQLOwnerPrefix not working...

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/2/2007 8:27:53 AM
Gravatar
Total Posts 16
www.CodeWise.nl

MSSQLOwnerPrefix not working...

Joe,

The MSSQLOwnerPrefix appsetting for the mssql layer does not work correctly, it only replaces [dbo]. it misses the
statements where dbo. is used, e.g. in the upgrade scripts you use: ALTER TABLE dbo.mp_Sites ADD...
Can you please fix this for the next versions, I'll try with modifying the dbo. in [dbo]. for now, if I find any additional problems I'll report them.

Regards,

Jelle Hissink

PS: Can you add www.CodeWise.nl to the mojo sites section?

 

 

9/2/2007 8:46:41 AM
Gravatar
Total Posts 18439

Re: MSSQLOwnerPrefix not working...

Hi Jelle,

I'm about to make a little release today but will try and fix this for the next release after this if you can help me figure out a good solution that won't break in other situations like upgrades where dbo was already used during object creation.

It might work if all the scripts where changed to not use any prefix at all. Can you help me with testing on a local machine? If you have time it would be much appreciated and would help get a solution for this.

What I'd like you to do is test this theory with a clean install using scripts with all owner prefixes removed starting with script Setup/applications/mojoportal-core/SchemaInstallScripts/mssql/2.3.4.config

and then the scripts newer than that in the SchemaUpgradeScripts/mssql folder

So you'd have to remove the prefixes using find and replace and maybe review visually some to make sure.

If that works then send me the modified scripts and I will test if it also works when upgrading installations that used dbo before. If so then we will replace with these new scripts and going forward always leave out owner prefix and this won't be a problem anymore and won't need any complicated instructions for this situation.

I think it should work but we need to make sure with testing.

Thanks,

Joe

9/18/2007 9:44:32 AM
Gravatar
Total Posts 18439

Re: MSSQLOwnerPrefix not working...

Hi Jelle,

After doing some research my idea about eliminating the owner qualifications is a bad idea, so I guess we really do need some kind of find and replace solution for this situation.

Can you tell me anything specific I need to do to simulate the situation that requires this on my local system? I'm happy to add the needed additional replacement for the next release but would like to test it.

How do I setup my db? Is it just create a user with all permissions of dbo but not in group dbowner?

Thanks,

Joe

9/18/2007 9:49:43 AM
Gravatar
Total Posts 18439

Re: MSSQLOwnerPrefix not working...

I think the easiest thing is if I just go through the upgrade scripts and replace dbo. with [dbo]. and then make sure I always use [dbo]. going forward.

Sorry it took me so long to grok this issue.

Thanks,

Joe

9/20/2007 1:31:30 AM
Gravatar
Total Posts 16
www.CodeWise.nl

Re: MSSQLOwnerPrefix not working...

Joe,

sorry I took me a while to notice your replies, thanks for that (I have 'Notify of Replies' checked, but I think my mailserver is doing bad things these days..., I'll try to change my e-mail address in the profile)

Do you still need testing?

Regards,

Jelle Hissink

PS: Is there a possibility to have commit access to the repository? I'm willing to add some features regarding localization and doing changes for the Dutch language.
Some background:
I started my own company and am a huge fan of mojoportal. I have lots of experience with .Net, and am confident I can add something to your nice portal. A customer of mine didn't want to use your package because all the developers here are using VB.Net exclusively, so we're building a simular solution from scratch.
Current sites:

 

  • my own company site
  • my personal site (running on mono)
  • my previous employer has currently one site online
  • for my previous employer I'm developing another three sites, this will uses features like localization, webshop etc.

 

9/20/2007 2:16:30 AM
Gravatar
Total Posts 16
www.CodeWise.nl

Re: MSSQLOwnerPrefix not working...

Hi Joe,

I mentioned I'd be changing my mail address, however if I do that the page cannot validate because I need to enter an openid. Also it seems like the whole mojoportal application is recycled sometimes when I tried (502 - service unavailable).

Regards,

Jelle

9/20/2007 9:42:49 AM
Gravatar
Total Posts 18439

Re: MSSQLOwnerPrefix not working...

Hi Jelle,

I confirm there does seem to be a bug in the profile page where the openid field is required incorrectly. I'm looking into it now.

I have seen a few of these 502 errors myself and have been unsure what is causing it. I was thinking it was an issue with my host. Are you saying it appears caused when updating the profile?

About the [dbo]. issue I have made it consistent in the upgrade scripts in svn

Thanks,

Joe

9/20/2007 10:48:09 AM
Gravatar
Total Posts 18439

Re: MSSQLOwnerPrefix not working...

Hi Jelle,

My policy for svn commit access is basically that it is only needed for those who are consistently working on and contributing to the project. Those without svn commit access can contribute by sending patch files which I will review and commit if I agree with the changes or provide feedback if I thnk changes are needed. If over time I find you are consistently providing patches that require no modifications based on my review or making substantial contributions in feature development then I will happily grant you commit access.  Of those that do get commit access, hopefully some will show interest in assisting with review of patches from others and gradually we will build a team of core committers. I know you have been in the mojoPortal community for quite a while and I have no doubt that you will do good work. Its just a getting to know you phase with patches in the beginning to establish a working relationship that builds confidence and trust.

For adding new files its easier if you zip them and send separate from the rest of the patch. Also I often have trouble applying patches to resource files (.resx) so as long as you do svn update to make sure your copy is up to date, its easier for me to just replace the file so sending separate from the patch file is preferred.

Best Regards,

Joe

9/20/2007 2:13:59 PM
Gravatar
Total Posts 18439

Re: MSSQLOwnerPrefix not working...

Hi Jelle,

I've updated this site with the fix for the OpenID bug on the profile page so you should be able to change your email now.

Thanks,

Joe

9/20/2007 2:58:00 PM
Gravatar
Total Posts 16
www.CodeWise.nl

Re: MSSQLOwnerPrefix not working...

Thank you for fixing the site so quickly.

I'll be happy to supply patches ;-)

Regards,

Jelle

 

You must sign in to post in the forums. This thread is closed to new posts.