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

[Version: 1.1.8] SQLITE ERROR on automatic status update query after successful Upload of attachments #118

Open
navinkrishnan opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@navinkrishnan
Copy link

navinkrishnan commented Jan 3, 2025

Describe the bug

After the successful upload of the attachments, there is some automatic status update query happens and it fails.

Error Message:

/git/incidents-app/node_modules/better-sqlite3/lib/methods/wrappers.js:5
        return this[cppdb].prepare(sql, this, false);
                           ^
SqliteError {
  code: 'SQLITE_ERROR',
  query: "UPDATE sap_capire_incidents_Incidents_attachments AS attachments SET status=?,modifiedAt=session_context('$now'),modifiedBy=session_context('$user.id') WHERE attachments.ID = ?"
}

The same works fine without error, if downgraded to 1.1.7.

Request to take this as priority as its linked with the BTP Developer Guide missions using incidents-app.

To Reproduce

  1. git clone https://github.com/cap-js/incidents-app.git
  2. npm install
  3. npm test test/attachments.test.js
  4. Notice the error message

Expected behavior
No SQLITE ERROR should be thrown.

[ ] is it a regression issue?

Screenshots
If applicable, add screenshots to help explain your problem.

Customer Info
Company: xyz.

@navinkrishnan navinkrishnan added the bug Something isn't working label Jan 3, 2025
@navinkrishnan navinkrishnan changed the title [Version: 1.1.8] SQLITE ERROR on atutomatic status update query after successful Upload of attachments [Version: 1.1.8] SQLITE ERROR on automatic status update query after successful Upload of attachments Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant