Ticket #2424 (closed bug: obsolete)

Opened 15 years ago

Last modified 13 years ago

applet-not-deployable

Reported by: meddle Owned by: meddle
Priority: major Milestone:
Component: S2S_CLIENT_SUPPORT Version: 2.0
Keywords: server, applet Cc: meddle, pap
Category: S2S Effort:
Importance: Ticket_group:
Estimated Number of Hours: 0 Add Hours to Ticket: 0
Billable?: yes Total Hours: 0
Analysis_owners: meddle Design_owners: meddle, pap
Imp._owners: meddle, pap Test_owners:
Analysis_reviewers: Changelog: Changelog
Design_reviewers: kyli Imp._reviewers: kyli
Test_reviewers: Analysis_score: 3
Design_score: 4 Imp._score: 4.5
Test_score: 0

Description (last modified by deyan) (diff)

The applet reader is not running when deployed. This should be fixed following the below requirements:

  • Investigate the Applet life cycle and improve the applet runner.
  • Investigate launching Felix applets.
  • Fix the problems with missing modules required by the applet and the security.

Attachments

applet_fix.patch (28.0 KB) - added by meddle 15 years ago.
applet fix patch

Change History

comment:1 Changed 15 years ago by deyan

  • Description modified (diff)

comment:2 Changed 15 years ago by meddle

  • Status changed from new to s1b_analysis_finished

comment:3 Changed 15 years ago by meddle

  • Design_owners set to meddle, pap
  • Status changed from s1b_analysis_finished to s2a_design_started

comment:4 Changed 15 years ago by meddle

Found problems

  • The applet was running when launched from Eclipse, but not while deployed.
  • When deployed the applet wasn't running because:
    • The bundle cache folder was immediately deleted.
    • The config module was missing from the bundle configuration.
  • When deployed on the sophie2.org server (for s2s web use) the applet wasn't showing.
    • The javascript for showing the applet was old (the modules started was with wrong versions and some was missing)
    • The config logic for loading the script from bundle wasn't working.
    • The reader does not download the books to open. This logic was deleted in a previous task.

Fixes

  • The bundle folder for caching will be deleted after closing the applet or it will be reused in a smart way. We will use the Felix documentation to find a way for that.
  • The config module will be added to the bundle configuration of the applet.
  • The javascript for showing the applet on the s2s web pages will be updated to use the new versions of the modules.
  • The configuration will be tested and updated.
  • The download logic will be added again.

Unresolved problems

  • Sometimes when running the applet there are null pointers in the class loaders, because some classes could not be found.
    • The problem is strange and after reload of the page is fixed... May be it is connected with the time span for caching the bundles?
  • The applet should open server book directly from the server (optional). It can be done if we pass to the applet main the username and the password of the user logged in. If there is no logged in user we should try to open the books as anonymous.
  • The applet can not show dialogs.
    • Don't know how to fix that yet. May be some alternative for dialogs in the status bar of the applet? The applet should have status bar??

comment:5 Changed 15 years ago by pap

  • Additional problems found
    • The applet gives null as the startupBook reference. This caused and exception.

comment:6 Changed 15 years ago by meddle

  • Status changed from s2a_design_started to s2b_design_finished
  • Analysis_score changed from 0 to 3

comment:7 Changed 15 years ago by kyli

  • Status changed from s2b_design_finished to s2c_design_ok
  • Design_score changed from 0 to 4
  • Design_reviewers set to kyli

First of all, I am sorry I cannot write a better review for this task.

  • Since the applet is currently not deployable, I cannot decide whether the things you listed are enough. However, I believe that if something else appears, you will fix it.
  • I guess suggestions about dialog replacement should be given in the analysis.
  • You have given brief resolutions to all problems you found, so everything should be OK :)

4p.

comment:8 Changed 15 years ago by meddle

  • Status changed from s2c_design_ok to s3a_implementation_started
  • Imp._owners set to meddle, pap

Changed 15 years ago by meddle

applet fix patch

comment:9 Changed 15 years ago by meddle

  • Status changed from s3a_implementation_started to s3b_implementation_finished

Moved some auto actions in their package in the base.model.book module.

comment:10 Changed 15 years ago by kyli

  • Status changed from s3b_implementation_finished to s3c_implementation_ok
  • Imp._score changed from 0 to 4.5
  • Imp._reviewers set to kyli

The applet is now running, so the task goal is completed. You have also extracted your 5 auto actions. Some of the moved code (for the actions) has some bad new lines.

Committed to trunk at [9161].

4.5p

comment:11 Changed 13 years ago by meddle

  • Status changed from s3c_implementation_ok to closed
  • Resolution set to obsolete

Closing all the tickets before M Y1

Note: See TracTickets for help on using tickets.