Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ISPConfig 3
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 550
    • Issues 550
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 41
    • Merge requests 41
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISPConfig
  • ISPConfig 3
  • Issues
  • #3943

Closed
Open
Created Jun 03, 2016 by Linus@linus9000

Invalid SQL Syntax in XMPP-Domain => SSL

MariaDB server version for the right syntax to use near '= 'my.domain' LIMIT 0,1' at line 1```

I get this when clicking the SSL-tab for an XMPP-Domain. I dug a little through /usr/local/ispconfig/interface/web/mail/xmpp_domain_edit.php and found the following in line 405: 

```php
$soa = $app->db->queryOneRecord("SELECT id AS zone, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other FROM dns_soa WHERE active = 'Y' AND  = ?", $this->dataRecord['domain'].'.');

As you can see the AND part is missing a domain field, which seems to be "origin", so changing the line to

$soa = $app->db->queryOneRecord("SELECT id AS zone, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other FROM dns_soa WHERE active = 'Y' AND  origin = ?", $this->dataRecord['domain'].'.');

fixes the error. However I have no idea about XMPP and if the SSL-Tab there makes sense as it is or if I interpret the code the right way, so I'd be glad if someone more experienced with this could take a look.

Assignee
Assign to
Time tracking