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

a dialog with sql statements appears #159

Closed
anlalalu opened this issue Dec 19, 2019 · 3 comments
Closed

a dialog with sql statements appears #159

anlalalu opened this issue Dec 19, 2019 · 3 comments

Comments

@anlalalu
Copy link

Describe the bug
a dialog with sql statements appears when operating in GalleryFilterActivity

To Reproduce
Steps to reproduce the behavior:

  1. tap 'more options'
  2. tap 'Filter'
  3. text in invalid date
  4. tap 'more options'
  5. tap 'Details'

Expected behavior
A clear and concise description of what you expected to happen.

dialog with some information rather than sql statements

Smartphone (please complete the following information):

Additional context
Add any other context about the problem here.
image

Crash Report
If you report an app crash: Can you add the crash logfile to this ticket?

E/k3bFoto: GalF-'234' is not a valid date.
java.lang.RuntimeException: '234' is not a valid date.
at de.k3b.android.androFotoFinder.GalleryFilterActivity$FilterValue.convertDate(GalleryFilterActivity.java:730)
at de.k3b.android.androFotoFinder.GalleryFilterActivity$FilterValue.getDateMin(GalleryFilterActivity.java:618)
at de.k3b.io.GalleryFilterParameter.get(GalleryFilterParameter.java:66)
at de.k3b.io.GalleryFilterParameter.get(GalleryFilterParameter.java:36)
at de.k3b.android.androFotoFinder.GalleryFilterActivity.fromGui(GalleryFilterActivity.java:743)
at de.k3b.android.androFotoFinder.GalleryFilterActivity.getAsGalleryFilter(GalleryFilterActivity.java:334)
at de.k3b.android.androFotoFinder.GalleryFilterActivity.getAsMergedQuery(GalleryFilterActivity.java:339)
at de.k3b.android.androFotoFinder.GalleryFilterActivity.cmdShowDetails(GalleryFilterActivity.java:754)
at de.k3b.android.androFotoFinder.GalleryFilterActivity.onOptionsItemSelected(GalleryFilterActivity.java:300)
at android.app.Activity.onMenuItemSelected(Activity.java:2600)
at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:1012)
at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:741)
at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:884)
at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:874)
at com.android.internal.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:177)
at android.widget.AdapterView.performItemClick(AdapterView.java:299)
at android.widget.AbsListView.performItemClick(AbsListView.java:1113)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:2911)
at android.widget.AbsListView.onTouchUp(AbsListView.java:3657)
at android.widget.AbsListView.onTouchEvent(AbsListView.java:3436)
at android.view.View.dispatchTouchEvent(View.java:7706)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2210)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1945)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
at android.widget.PopupWindow$PopupViewContainer.dispatchTouchEvent(PopupWindow.java:1633)
at android.view.View.dispatchPointerEvent(View.java:7886)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:3947)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3826)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3392)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3442)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3411)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3518)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3419)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3575)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3392)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3442)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3411)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3419)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3392)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5532)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5512)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5483)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5612)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:138)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:5001)

@anlalalu
Copy link
Author

This can also be reproduced in Android 7.1.0.
Do you consider it as a defect? @k3b

@k3b
Copy link
Owner

k3b commented Jan 9, 2020

@anlalalu Thanks for spending time to find errors in the app.

In my point of view the errorlog "'234' is not a valid date." is a minor defect as error-checking of input-fields is not caught on device rotation. "minor" means it does not prevent users from using the app.

Note: When you tap on 'Details' you will always get the dialog with sql statements no matter if there is an error or not.

Fixing this has to wait until architecture re-implementation for android-10 #155 has finished which will take some time.

@k3b k3b added the minor-bug label Jan 9, 2020
@k3b
Copy link
Owner

k3b commented Feb 6, 2020

closed as duplicate of #158

@k3b k3b closed this as completed Feb 6, 2020
k3b added a commit that referenced this issue Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants