aspose file tools
The moose likes Java in General and the fly likes On saving data, user get information that is not meant for him to be seen. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "On saving data, user get information that is not meant for him to be seen." Watch "On saving data, user get information that is not meant for him to be seen." New topic
Author

On saving data, user get information that is not meant for him to be seen.

Lucian Botezatul
Greenhorn

Joined: Jan 08, 2011
Posts: 20

I write a quiz in german language, all works fine - thanks to the help i received here in forum.

My problem is that at the end of the game, when someone press the "Spiel beenden" Button, the user see on an blank site, the name of the file where the data is saved- VERY bad for me - and some information.
I would like that the user dont see nothing or instead of the filename a message like "Tank you for your participation".

For selftesting, MY QUIZ:
(questions are on german language)

http://www.cslfotoart.de/000/01_dkg.htm


Here an exemple how is looking when pushing the "Spiel beenden" button:


kontrollgruppe bWVfdGVzdDA2Li4uMjIuNDkuMTZfa29udHJvbGxncnVwcGUKIEZyYWdlIDAgd3VyZGUgZmFsc2NoIGJlYW50d29ydGV0CkJlZ2lubjogKFRhZy4uLnN0dW5kZS5taW51dGUuc2VrdW5kZSkwNi4uLjIyLjQ5LjE2CkVuZGU6IChUYWcuLi5zdHVuZGUubWludXRlL

The problem is that the user is not meant to see all this.

The code used for saving the data:



Any suggestions ?

Thanks!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35220
    
    7
Start by handling the exception properly - an empty catch block for an I/O operation is bad; at least log something so you know there was a problem.

I can't reproduce the problem. After pressing that button there's a popup dialog, and after that the applet just goes completely blank, with no text of any kind being displayed.


Android appsImageJ pluginsJava web charts
Lucian Botezatul
Greenhorn

Joined: Jan 08, 2011
Posts: 20

Thanks for trying and for the suggestion!

- the first pop up request some strings (type anything) to start.

- than it should display the quiz with the first question, and when you press the "Spiel beenden" button, you get a pop up with some statistics and a "thanks & goodbye" message,
plus it comes the blanc page with my problem on the upper left conner.
It´s not a problem with the functionality of the programm, it works well, its only about showing the filename and the Base64 coded data in the conner.

I will write a log file to take a look if there are some errors.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: On saving data, user get information that is not meant for him to be seen.
 
Similar Threads
Having Problems with Opening a file...
Action Listener
file uploading using enctype="MULTIPART/FORM-DATA"
writeUTF and JComboBox
Save that user dont register it, getAppletContext() Context.showDocument