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

storage.DataStore::loadTrackable() bug #15727

Closed
rapotek opened this issue May 13, 2024 · 1 comment
Closed

storage.DataStore::loadTrackable() bug #15727

rapotek opened this issue May 13, 2024 · 1 comment
Assignees
Labels
Bug Issues classified as a bug Unverified Issue not yet confirmed/reproduced or feature requests not yet checked for plausibility

Comments

@rapotek
Copy link

rapotek commented May 13, 2024

Describe your problem!

storage.DataStore::loadTrackable method retrieves from db: "updated", "tbcode", "guid", "title", "owner", "released", "goal", "description" fields only, then calls storage.DataStore::createTrackableFromDatabaseContent which requires additional "log_date", "log_type", "log_guid" fields. This leads to an IllegalArgumentException: column (...) does not exist.

How to reproduce?

  1. Activate debug log
  2. Select f.ex. opencaching geocache with non-empty inventory
  3. Choose a trackable from inventory to see its details
  4. The message about c:geo can't find trackable is displayed
  5. Generate logfile

Actual result after these steps?

In logcat there is java.lang.IllegalArgumentException: column 'log_type' does not exist. Available columns: [updated, tbcode, guid, title, owner, released, goal, description]

Expected result after these steps?

No exception generated, details about trackable displayed.

Reproducible

Yes

c:geo Version

2024.04.25

System information

No response

Additional Information

No response

@rapotek rapotek added Bug Issues classified as a bug Unverified Issue not yet confirmed/reproduced or feature requests not yet checked for plausibility labels May 13, 2024
moving-bits added a commit to moving-bits/cgeo that referenced this issue May 13, 2024
@moving-bits moving-bits self-assigned this May 13, 2024
@moving-bits
Copy link
Member

Thanks for the detailed info. PR #15728 adds the missing columns to the database query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues classified as a bug Unverified Issue not yet confirmed/reproduced or feature requests not yet checked for plausibility
Projects
None yet
Development

No branches or pull requests

2 participants