Skip to content

Adding bookmark leads to: SQLSTATE[22021]: Character not in repertoire: 7 ERROR: invalid byte sequence for encoding \"UTF8\" #230

@ege1

Description

@ege1

Hi,

I'm having problems adding bookmarks.

One question is, why doesn't it use the title I entered/altered in the input field? Instead it seams to use the original site title even if I change it. That shouldn't be the case for my understanding. Otherwise the input field for new bookmark titles should be readonly.

Having that said, here the issue I'm facing:
Site is: http://www.jobs.ch/de/job/?iid=6812797

The Error in the log:

Mar 16 13:08:23 web ownCloud[18863]: {index} Exception: {"Exception":"Doctrine\\DBAL\\Exception\\DriverException","Message":"An exception occurred while executing '\n\t\t\tINSERT INTO \"oc_bookmarks\"\n\t\t\t(\"url\", \"title\", \"user_id\", \"public\", \"added\", \"lastmodified\", \"description\")\n\t\t\tVALUES (?, ?, ?, ?, cast(extract(epoch from current_timestamp) as integer), cast(extract(epoch from current_timestamp) as integer), ?)\n\t\t\t' with params [\"http:\\\/\\\/www.jobs.ch\\\/de\\\/job\\\/?iid=6812797\", \"\\x6a\\x6f\\x62\\x73\\x2e\\x63\\x68\\x20\\x2d\\x20\\x53\\x65\\x6e\\x69\\x6f\\x72\\x20\\x53\\x79\\x73\\x74\\x65\\x6d\\x20\\x45\\x6e\\x67\\x69\\x6e\\x65\\x65\\x72\\x20\\x4c\\x69\\x6e\\x75\\x78\\x20\\x28\\x6d\\x2f\\x77\\x29\\x20\\x2d\\x20\\x4c\\x69\\x6e\\x75\\x78\\x20\\x53\\x79\\x73\\x74\\x65\\x6d\\x20\\x41\\x64\\x6d\\x69\\x6e\\x69\\x73\\x74\\x72\\x61\\x74\\x6f\\x72\\x20\\x20\\x69\\x6d\\x20\\x52\\x61\\x75\\x6d\\x20\\x5a\\xfc\\x72\\x69\\x63\\x68\", \"ege\", 0, \"\"]:\n\nSQLSTATE[22021]: Character not in repertoire: 7 ERROR: invalid byte sequence for encoding \"UTF8\": 0xfc","Code":0,"Trace":"#0 \/var\/www\/owncloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php(116): Doctrine\\DBAL\\Driver\\AbstractPostgreSQLDriver->convertException('An exception oc...', Object(Doctrine\\DBAL\\Driver\\PDOException))\n#1 \/var\/www\/owncloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Statement.php(175): Doctrine\\DBAL\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\DBAL\\Driver\\PDOPgSql\\Driver), Object(Doctrine\\DBAL\\Driver\\PDOException), '\\n\\t\\t\\tINSERT INTO...', Array)\n#2 \/var\/www\/owncloud\/lib\/private\/db\/statementwrapper.php(73): Doctrine\\DBAL\\Statement->execute(Array)\n#3 \/var\/www\/owncloud\/apps\/bookmarks\/controller\/lib\/bookmarks.php(472): OC_DB_StatementWrapper->execute(Array)\n#4 \/var\/www\/owncloud\/apps\/bookmarks\/controller\/rest\/bookmarkcontroller.php(105): OCA\\Bookmarks\\Controller\\Lib\\Bookmarks::addBookmark('ege', Object(OC\\AppFramework\\Db\
I can change the tilte to whatever I want using the input field before clicking save and it still tries the same input. So for me these are two issues:

  • it uses the wrong "title"
  • it fails to escape/replace properly

If you need additional information, please let me know.

Erik

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions