nextcloud / nextcloud/integration_davc

davc:debug cannot be disabled

Open
#130 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
12
Forks
2
Avg merge
1d 21h
Merged PRs (30d)
16

Description

Steps to reproduce
  1. Turn on debug mode docker exec --user www-data nextcloud-aio-nextcloud php occ davc:debug --enable <user>
  2. Turn off debug mode docker exec --user www-data nextcloud-aio-nextcloud php occ davc:debug --disable <user>
Expected behaviour

Debug Mode is off, without errors

Actual behaviour

Debug mode stays on, Errors:

In DbalException.php line 50:
                                                                               
  An exception occurred while executing a query: SQLSTATE[22P02]: Invalid tex  
  t representation: 7 ERROR:  invalid input syntax for type boolean: ""        
  CONTEXT:  unnamed portal parameter $1 = ''                                   
                                                                               

In ExceptionConverter.php line 87:
                                                                               
  An exception occurred while executing a query: SQLSTATE[22P02]: Invalid tex  
  t representation: 7 ERROR:  invalid input syntax for type boolean: ""        
  CONTEXT:  unnamed portal parameter $1 = ''                                   
                                                                               

In Exception.php line 24:
                                                                               
  SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input synta  
  x for type boolean: ""                                                       
  CONTEXT:  unnamed portal parameter $1 = ''                                   
                                                                               

In Statement.php line 130:
                                                                               
  SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input synta  
  x for type boolean: ""                                                       
  CONTEXT:  unnamed portal parameter $1 = ''                                   
                                                                               

davc:debug [--enable] [--disable] [--] <user> [<service>]
Server configuration

** Nextcloud AIO v13.4.0

** Nextcloud version:** Nextcloud Hub 26 Spring

List of activated apps
Enabled:
  - activity: 7.0.0
  - admin_audit: 1.24.0
  - appstore: 1.0.0
  - bruteforcesettings: 7.0.0
  - calendar: 6.5.1
  - circles: 34.0.0
  - cloud_federation_api: 1.18.0
  - comments: 1.24.0
  - contacts: 8.7.4
  - contactsinteraction: 1.15.0
  - dashboard: 7.14.0
  - dav: 1.39.0
  - deck: 1.18.3
  - eurooffice: 11.0.1
  - federatedfilesharing: 1.24.0
  - federation: 1.24.0
  - files: 2.6.0
  - files_downloadlimit: 5.2.0
  - files_external: 1.26.0
  - files_lock: 34.0.1
  - files_pdfviewer: 7.0.0-dev.0
  - files_reminders: 1.7.0
  - files_sharing: 1.26.0
  - files_trashbin: 1.24.0
  - files_versions: 1.27.0
  - firstrunwizard: 7.0.0-dev.0
  - groupfolders: 22.0.5
  - integration_davc: 1.0.4
  - linkboard: 1.7.1
  - logreader: 7.0.0
  - lookup_server_connector: 1.22.0
  - mail: 5.10.9
  - nextcloud-aio: 0.8.0
  - nextcloud_announcements: 6.0.0
  - notes: 6.0.1
  - notifications: 7.0.0-dev.1
  - notify_push: 1.3.5
  - oauth2: 1.22.0
  - office: 1.0.0
  - password_policy: 6.0.0-dev.0
  - photos: 7.0.0
  - privacy: 6.0.0-dev.1
  - profile: 1.3.0
  - provisioning_api: 1.24.0
  - recommendations: 7.0.0
  - related_resources: 5.0.0-dev.0
  - serverinfo: 6.0.0
  - settings: 1.17.0
  - sharebymail: 1.24.0
  - side_menu: 6.0.1
  - spreed: 24.0.3
  - support: 6.0.0
  - survey_client: 6.0.0-dev.0
  - suspicious_login: 12.0.0-dev.0
  - systemtags: 1.24.0
  - tasks: 0.18.1
  - text: 8.0.0
  - theming: 2.9.0
  - twofactor_admin: 4.12.0
  - twofactor_backupcodes: 1.23.0
  - twofactor_email: 3.3.0
  - twofactor_nextcloud_notification: 8.0.0
  - twofactor_totp: 16.0.0
  - updatenotification: 1.24.0
  - user_status: 1.14.0
  - viewer: 7.0.0-dev.0
  - weather_status: 1.14.0
  - webhook_listeners: 1.6.0
  - whiteboard: 1.5.9
  - workflowengine: 2.16.0
Disabled:
  - app_api: 34.0.0 (installed 34.0.0)
  - encryption: 2.22.0
  - user_ldap: 1.25.0
Browser

Browser name: Firefox

Browser version: 153

Operating system: Linux Mint

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the davc:debug command entry point and reproduce the issue with the documented --enable and --disable commands. Trace how the disable value is passed to the database, then verify that disabling completes without the PostgreSQL boolean error and that debug mode is off.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, cli, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.