arch-kiosk / arch-kiosk-office

💼 central place for collaboration
GNU Affero General Public License v3.0
1 stars 0 forks source link

Kiosk: CMD+T must be prohibited #2431

Closed maychu16 closed 8 months ago

maychu16 commented 8 months ago

I am on macos 13.5.2, and FileMaker Pro 19.6.3.302.

I don't know what exactly happened. I left my laptop for a bit to go have dinner. I did not log out of kiosk. When I came back about an hour later, it said "Attempt to save session excavating_session without access to that session table. This is an internal error. Please report it." and the whole recording system went blank. I logged out and logged back in again. The whole system is empty and I can't find any Op recordings. Not even the one that were already there when I first downloaded it. Please let me know how I should proceed.

Screenshot 2023-12-21 at 6 33 01 PM Screenshot 2023-12-21 at 6 33 46 PM
urapadmin commented 8 months ago

I have a hunch. Please send me that file to the google drive: https://drive.google.com/open?id=13_O5Y-FJyenBSr_vG4ox-ucP1GrnAbe5&usp=drive_fs

I might be able to recover it

urapadmin commented 8 months ago

before you do that: You have tried to select a site, right? If the site list box is empty, I need to look at that file.

Otherwise I suspect once you have selected a site everything looks normal again. If that's the case I would suggest that you upload that file back to Kiosk asap so that we synchronize your latest changes. Just to be on the safe side.

maychu16 commented 8 months ago

I tried selecting a site but it is just empty and it shows an error message there too. I have uploaded the file to the drive link you sent.

urapadmin commented 8 months ago

alright. My hunch was correct. I have never seen this before but I am not surprised that it happens now that we use FileMaker Pro for Mac. I cannot tell you how this happened, but a technical record got deleted. Perhaps by an unfortunate key combination or so? There I am tapping in the dark. If you have any hunch yourself on that front, I'd like to know your ideas.

However, the record was gone and after I recovered it everything was back to normal.

I will add something to the start procedure for a future version that recovers this automatically on restart. For now I have updated your file in the google drive manually, please override your existing local file with this one.

maychu16 commented 8 months ago

Thank you. I can see the data now. Should I be logging out and closing kiosk every time I am gonna be away from my laptop in the future?

urapadmin commented 8 months ago

I can't really see any connection between the issue and leaving FileMaker open. I would even be interested to hear that this happened again. Unless you have cats who hit keys in your absence I have no explanation.

urapadmin commented 8 months ago

2432 is about recovering this situation automatically on reboot.

So I close this as it is fixed for now.

maychu16 commented 8 months ago

I figured out what caused this by accident. It is Command + T on my mac.

maychu16 commented 8 months ago

It happened again and the program didn't recover my records after I restarted filemaker. So I restarted my laptop and opened filemaker again. It still did not recover my records.

I uploaded my file in the drive you shared a few days ago.

maychu16 commented 8 months ago

I did not want to wait and I was playing around with filemaker to figure out how I can get my data back. After I chose file and then recover, filemaker created a new record file and that one has my records. So it is all good now.

urapadmin commented 8 months ago

It happened again and the program didn't recover my records after I restarted filemaker. So I restarted my laptop and opened filemaker again. It still did not recover my records.

I uploaded my file in the drive you shared a few days ago.

That was the right thing to do. I am not entirely certain but I think the recovery feature is not rolled out to BUAP, yet, as it had just been tested on our test system (we try to test things first on a test system before we hit production systems with bugs).

urapadmin commented 8 months ago

I did not want to wait and I was playing around with filemaker to figure out how I can get my data back. After I chose file and then recover, filemaker created a new record file and that one has my records. So it is all good now.

Oh. Don't. The recovery tool does something entirely different and isn't without danger itself. That is true for all native FileMaker commands, so playing around with FM isn't a good idea (you were fine, you had a backup). The FM recovery tool also cannot possibly recover this situation even though it appears it has. Some coincidental side effect must have kicked in here. So, as annoying it admittedly is, patience was the right thing to apply here :)

Have you uploaded and synched this recovered version?

maychu16 commented 8 months ago

Ah sorry I did not know it could cause problems. I recovered the file, worked on it a bit and then synced it. I then downloaded a new file and synced that file too. So far I haven't ran into any problem. Should I be concerned?

urapadmin commented 8 months ago

no, if the file got imported properly everything is fine. Afterwards it gets discarded, anyhow. Just for the future, don't try to help yourself with FileMaker tools - it is a dangerous path 😏

urapadmin commented 8 months ago

@arch-kiosk/test, @arch-kiosk/buap I just looked up what CMD+T (CTRL+T on Windows) actually does. interesting. It is a filter command and omits the current record from the dataset. So it does not delete it but sets a filter. Ouch. That would not even be caught by #2432 because the record is actually there, just not shown. That also explains why the FM's recovery tool worked as it writes a new database and no filter settings survive that.

So here is an immediate remedy: CMD+J (CTRL+J on Windows) removes that filter and all is good right away. I will also extend #2432 and try to find a way to suppress the whole filter option in the pertinent layouts.

urapadmin commented 8 months ago

recording app 15.9

lbestock commented 8 months ago

The issue is fixed for the start page in 15.9. But it IS possible in ALL other layouts that I have tried (trench, locus, CM) and it gets pretty baroque in CM: image

(This is the screen in 15.9 CM immediately after hitting command+T on my mac.)

lbestock commented 8 months ago

Wow it is possible to mess things up with CMD+T in: inventory ceramics tag management (that one is scary - it doesn't look so abnormal, it just moves on to the next tag. And you can do it repeatedly and exclude a number of tags) team members (ditto) identifier lists inventory

I could go on and test everywhere? But so far I have not discovered a layout where CMD+T is not causing this problem.

lbestock commented 8 months ago

Ah, it does not seem to have an effect on tag analysis. A layout where one cannot put anything in.

urapadmin commented 8 months ago

no, you don't need to go on. Apparently hiding the menu is not enough in the other layouts.

urapadmin commented 8 months ago

recording app 15.9.1

lbestock commented 8 months ago

At the locus list level it's now fine, but in loci themselves it is still causing havoc. CM looks good.

urapadmin commented 8 months ago

recording app 15.9.2

lbestock commented 8 months ago

It's good now in Loci. But not everywhere....inventory....

maychu16 commented 8 months ago

Did you also disable all shortcuts for filemaker? I cannot use CMD+C and CMD+V anymore. Not a problem but just wondering.

urapadmin commented 8 months ago

yes, it is totally possible that that's a side effect. Now we have to figure out which short cuts we want and which we don't. Cut, copy and paste we want ...

maychu16 commented 8 months ago

I think the side effect of this also makes me not able to import photos. I can't right click (I think it is right click or it could be left, not sure) on the image box anymore. It won't open up the insert photo/file tabs when I right click on it.

urapadmin commented 8 months ago

oh. That is pretty severe. I was afraid we might have been battling the Teufel with the Beelzebub (German vor fighting the devil with something worse). I'll issue a new version tomorrow.

urapadmin commented 8 months ago

@buap, @arch-kiosk/test

recording 15.9.3

urapadmin commented 8 months ago

recording 15.10

luizaogs commented 8 months ago

The configuration key works as it should, and the commands we want (cut, paste, copy, insert images) are back.

However, CMD+T is still problematic in: tag management team members identifier lists

^^ These are just the ones Laurel had already mentioned. Do you need someone to go through every single layout and check?

urapadmin commented 8 months ago

The configuration key works as it should, and the commands we want (cut, paste, copy, insert images) are back.

However, CMD+T is still problematic in: tag management team members identifier lists

^^ These are just the ones Laurel had already mentioned. Do you need someone to go through every single layout and check?

First I want to let this loose on BUAP and see if there are other side effects that are not covered, yet.

urapadmin commented 8 months ago

recording 15.11.1

Tackled those:

luizaogs commented 8 months ago

Those are good now. But I guess we keep this open then?

urapadmin commented 8 months ago

I have so many open tickets. Let's close it and reopen it if needed :o)