Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object Qualifier not supported #36

Open
MaiklT opened this issue Mar 7, 2021 · 10 comments
Open

Object Qualifier not supported #36

MaiklT opened this issue Mar 7, 2021 · 10 comments

Comments

@MaiklT
Copy link

MaiklT commented Mar 7, 2021

I installed version 1.1.2 on a portal that uses an object qualifier (which is a heritage from long time ago). When placing the module on a page, I get an HTTP error 500 in the request /api/Dnn.WebAnalytics/visit?...

Answer is:
{"Errors":[{"source":".Net SqlClient Data Provider","number":208,"state":1,"errorClass":16,"server":"XXX","message":"Invalid object name 'dbo.Community_Visits'.", ...

The name of the table is something like dbo.xxx_Community_Visits, but I could not find the wrong line of code tbh.

@WillStrohl
Copy link
Member

Is your object qualifier Community?

@X3Technology
Copy link
Collaborator

What is the xxx ?

@WillStrohl
Copy link
Member

What is the xxx ?

That's the name of his server that he removed for security purposes.

@WillStrohl
Copy link
Member

Is your object qualifier Community?

Never mind... The table name was renamed to Community_Visitors in version 01.01.00.

In your portal where this is happening, is it using a domain name or a virtual directory/child portal?

@valadas
Copy link
Member

valadas commented Mar 10, 2021

@hismightiness there was an XXX for the server name and an xxx (lowercase) for the actual object qualifier. We where asking because the sql looks about right to me and maybe the object qualifier has some special characters that maybe cause the issue ?

@WillStrohl
Copy link
Member

@hismightiness there was an XXX for the server name and an xxx (lowercase) for the actual object qualifier. We where asking because the sql looks about right to me and maybe the object qualifier has some special characters that maybe cause the issue ?

Okay... now this issue confuses me. :D

@MaiklT
Copy link
Author

MaiklT commented Mar 10, 2021

@valadas is right, XXX is the server name and xxx the object qualifier. It is a main portal, but the issue is something else, and is not dependent from that. The portal was created long time ago in a shared hosting environment, and therfore is this heritage of the object qualifier. The object qualifier has no special charactes, just three letters.

There must be some piece of code somewhere that misses the object qualifier to access the table (and when I look at the SQL installer scripts, the database owner is missed quite everywhere, which makes the module unusable for every installation that has a different database owner that dbo)

@valadas
Copy link
Member

valadas commented Mar 10, 2021

database owner is missed quite everywhere

Can you point to an example, it looks about right to me...

@X3Technology
Copy link
Collaborator

The problem is likely because I used LinqToSql to generate the DAL. I have a solution that I can incorporate into this that will allow it.

@valadas
Copy link
Member

valadas commented Mar 10, 2021

Ohhh, now it all makes sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants