Mailing List Archive

Android build remove the Schema Version Check Bypass
We have got to the point where mythfrontend does not work well with a
wrong schema version. The latest master mythfrontend cannot display the
program guide when connected to v30 backend, due to the delete flag
changes. It gives an incorrect message saying you have no channels
configured.

Up to now, the Android build has bypassed version checks and could run
with any version of mythbackend.

It is time to remove from the android packaging, the line
IGNOREDEFINES="-DIGNORE_SCHEMA_VER_MISMATCH -DIGNORE_PROTO_VER_MISMATCH"

People will no longer be able to use android mythfrontend with a
different version of the backend.

I will make the change and test it in packaging/master. I will leave
packaging/30-fixes as is, V30 may continue to work with some different
versions.

Does anybody have an opinion on this? Will it cause any problems?

Peter
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Android build remove the Schema Version Check Bypass [ In reply to ]
On Sat, Nov 30, 2019 at 12:31:27PM -0500, Peter Bennett wrote:
> We have got to the point where mythfrontend does not work well with a wrong
> schema version. The latest master mythfrontend cannot display the program
> guide when connected to v30 backend, due to the delete flag changes. It
> gives an incorrect message saying you have no channels configured.
>
> Up to now, the Android build has bypassed version checks and could run with
> any version of mythbackend.
>
> It is time to remove from the android packaging, the line
> IGNOREDEFINES="-DIGNORE_SCHEMA_VER_MISMATCH -DIGNORE_PROTO_VER_MISMATCH"
>
> People will no longer be able to use android mythfrontend with a different
> version of the backend.
>
> I will make the change and test it in packaging/master. I will leave
> packaging/30-fixes as is, V30 may continue to work with some different
> versions.
>
> Does anybody have an opinion on this? Will it cause any problems?

Yes. I ran into this myself recently when I updated my Android
mythfrontends. I worked around the problem in a way that I will not
advertise here because it's not safe for casual users. The real
solution is what I've advocated for some time (and admittedly not done
any work on myself). That is to use the services API instead of
direct database queries. Ideally, frontends should be able to work
without any database access at all.

David
--
David Engel
david@istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Android build remove the Schema Version Check Bypass [ In reply to ]
On Sat, Nov 30, 2019 at 5:31 PM Peter Bennett <pb.mythtv@gmail.com> wrote:

> Does anybody have an opinion on this?

It was, inevitable. (so snap the fingers?)

And is one more reason that the next frontend
(when/if there is another implementation)
should be targeted to use the services API
(and when the services API is shown to be
lacking in some functional requirement, it is
expanded).

> Will it cause any problems?

Should someone decide to submit this
to the play store, it simply suggests you
will likely need multiple names (something
like mythtv-frontend-v30 and ....-v31),
since the play store only (practically)
makes available the latest version (so
you could not have just a mythtv-frontend
item).
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Android build remove the Schema Version Check Bypass [ In reply to ]
On 12/1/2019 4:49 AM, David Engel wrote:
> On Sat, Nov 30, 2019 at 12:31:27PM -0500, Peter Bennett wrote:
>> We have got to the point where mythfrontend does not work well with a wrong
>> schema version. The latest master mythfrontend cannot display the program
>> guide when connected to v30 backend, due to the delete flag changes. It
>> gives an incorrect message saying you have no channels configured.
>>
>> Up to now, the Android build has bypassed version checks and could run with
>> any version of mythbackend.
>>
>> It is time to remove from the android packaging, the line
>> IGNOREDEFINES="-DIGNORE_SCHEMA_VER_MISMATCH -DIGNORE_PROTO_VER_MISMATCH"
>>
>> People will no longer be able to use android mythfrontend with a different
>> version of the backend.
>>
>> I will make the change and test it in packaging/master. I will leave
>> packaging/30-fixes as is, V30 may continue to work with some different
>> versions.
>>
>> Does anybody have an opinion on this? Will it cause any problems?
> Yes. I ran into this myself recently when I updated my Android
> mythfrontends. I worked around the problem in a way that I will not
> advertise here because it's not safe for casual users. The real
> solution is what I've advocated for some time (and admittedly not done
> any work on myself). That is to use the services API instead of
> direct database queries. Ideally, frontends should be able to work
> without any database access at all.
>
> David

Sounds fine to me. Do it.

It would probably be too hard to add a compatibility layer to fix this
the way it currently is.

Mark

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Android build remove the Schema Version Check Bypass [ In reply to ]
On Sat, Nov 30, 2019 at 05:51:47PM +0000, Gary Buhrmaster wrote:
> On Sat, Nov 30, 2019 at 5:31 PM Peter Bennett <pb.mythtv@gmail.com> wrote:
>
> > Does anybody have an opinion on this?
>
> It was, inevitable. (so snap the fingers?)
>
> And is one more reason that the next frontend
> (when/if there is another implementation)
> should be targeted to use the services API
> (and when the services API is shown to be
> lacking in some functional requirement, it is
> expanded).
>
> > Will it cause any problems?
>
> Should someone decide to submit this
> to the play store, it simply suggests you
> will likely need multiple names (something
> like mythtv-frontend-v30 and ....-v31),
> since the play store only (practically)
> makes available the latest version (so
> you could not have just a mythtv-frontend
> item).

Eventually, such a frontend should try (within reason) to support the
same version backend and the previous version backend.

David
--
David Engel
david@istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org