Prototype: Alfresco Web Scripts + extjs ajax lib

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2008 05:40 AM
Along with a colleague I played around with Web Scripts and extjs (a fabulous ajax lib).
After a couple of days we've finished a first prototype of a ajax-based Alfresco repository browser - we named it opsoro.
- feature overview:
- ria-feeling (sortable & movable columns, view/hide components, async loading…)
- live Search (search as you type)
- folder browser
- category browser
- tag cloud browser
- My Alfresco portal (draggable portlets)
- document tagging
- embedded preview (crop content & image preview)
- inline view (text, pdf, images … IE only: ms office et. al.)
This Web Script API is truly first-rate! It is impressive to find out how easy and rapid to develop things can be;-)
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2008 03:34 AM
I use your opsoro search webscript but with Web Client Authenticator like:
http://localhost:8082/alfresco/wcservice/sample/
search?query=tuto?ticket=TICKET_11c6234c45ea3e58531a209283695adba833cb04
it works great for other webscripts(myFiles, upload…) but not for the search one.
Do you understand what happens?
I use alfresco 2.9c .
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2008 03:57 AM
could you please provide some more infos. have you changed the webscript desc-file, the default path of the opsoro search webscript would be /wcservice/opsoro/search
what is your log saying? Try to enable detailed webScript-logging: log4j.logger.org.alfresco.web.scripts=debug in your /webapps/alfresco/WEB-INF/classes dir.
Cheers, Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2008 04:57 AM
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2008 05:30 AM
it works with ? and &
http://localhost:8082/alfresco/wcservice/sample/search?query=tuto&ticket=TICKET_735fbe25ef359181413e...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2008 05:36 AM
if you'd like to pass more then one argument in a GET-Request the syntax is as following:
http://host

so, in your case:
http://localhost:8082/alfresco/wcservice/sample/search?query=tuto&ticket=TICKET_11c6234c45ea3e58531a209283695adba833cb04
Cheers, Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2008 05:38 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2008 10:41 AM
I realized the futility of trying to implement a logout function on basic authentication. But I still have one more question.
In a regular web page served by apache, if you have a .htaccess file in a folder, then the webserver will challenge the end user for authentication.
In opsoro, what is the mechanism ? Is there a piece of code that captures the challenge from alfresco and pass it to the end user ?
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2008 05:17 PM
behind the scenes this is done by the WebScript Infrastructure of Alfresco. I'm not very familar with all the details of this framework implementation, but there is a central WebScriptDispatcher-Servlet, which reads all webscript definitions (the desc.xml files) and it ckecks via standard alfresco & spring authentication functions if the current user (credentials passed to server via HTTP-Header) has sufficent privileges.
It is not as similar (there are some spring classes involved etc.)…but hopefullyit is enough to answer your question.
Opsoro simply uses this webscript framework and passes the users credentials via HttpBasicAuthentication. A better way would be:
- create a opsoro login component which includes a login form
- submit the user credentials to a getTicket-login WebScript
- this webscript returns a login ticket –> store the ticket in an javascript variable in opsoro
- reuse this ticket for every webscript-call
- (implement a logout component which resets the ticket)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2008 04:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2008 05:52 PM
first of all a big HAND for your great jobs. I just tried out both opsoro and flexspaces in the last week. I love them so far, it would be great to see future versions.
One thing, that I wonder about is, though. Would it not be more efficient (and much more fun, rewarding, exhiliarating … oO( cant think of more in the moment) ) to pool your activities and make one out of two ? You both have quite some list of features, you want to add, so why do them twice ?
Or is it technically so different that is does not make sense ?
Oh, and another thing. Do you prefer your bug/feature reporting here, or inthe forge with its bug tracker ?
Regards,Norgan
