cancel
Showing results for 
Search instead for 
Did you mean: 

Missing close brace, '}'

dangruhn
Champ in-the-making
Champ in-the-making
I have downloaded the updated Office 2003 add-in and the popup is gone.  However, I'm trying to track down the below error when I try to convert a file to PDF.  I get a similar sort of thing when I delete a file.

I do see that the action has occurred properly, and if I do it multiple times I get &undefined added into the error message, once for each additional time until I change tabs on the Alfresco add-in window.

I am using CentOS 5.4, IE 8, Office 2003 SP3, Windows XP, and Alfresco 3.2r2

Internet Explorer Script Error

An error has occurred in the script on this page.

Line: 18
Char 139
Error: Expected '}'
Code: 0
URL:
 http://alfresco:8080/alfresco/wcservice/office/navigation?p=&e=doc&n=9aa89f5a-bb9d-4a5c-9fa1-e8a0b04...

(Obviously IE has truncated the URL).

I believe at least part of this URL is coming from:

tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/office/docActions.get.html.ftl

and on my system it contains:

{"statusString":"${message(resultString)}","statusCode":${resultCode?string}}

it looks like the braces are matched here.

Can anyone point me in the right direction?
9 REPLIES 9

dangruhn
Champ in-the-making
Champ in-the-making
Bump.

Is no one else using the Office 2003 add-in?

antoniop2
Champ on-the-rise
Champ on-the-rise
I have the same problem.

Server Ubuntu: 8.04
Alfresco community   3.2.r2

Client : Windows XP, Msoffice 2003 + alfresco-community-office2003-addins-3.2r2

chrismott
Champ in-the-making
Champ in-the-making
Having the same problem myself on XP, Using Office 2007.

baskeyfield
Champ in-the-making
Champ in-the-making
Same problem:

Alfresco Community 3.2r2 , Ie 8, Xp.

No solutions??

Greetings.

jesterfett
Champ in-the-making
Champ in-the-making
Same Problem Here –

Server OS:  Ubuntu Server 9.10
Alfresco Version:  v3.2r2
Browsers Used:  IE6, IE7, IE8
Office Versions:  2003, 2007

Office Plugin being Used:  Alfresco-Community-Word2003-Addin-3.3dev.zip

Error Message Being Displayed:
–Internet Explorer Script Error "An error has occurred in the script on this page"
Line: 18
Char: 71
Error: Expected '}'
Code: 0
Url:  URL to Document


Any help would be greatly appreciated.

fgruska
Champ in-the-making
Champ in-the-making
Hello,
I have similar problem for any document  I am trying to Checkout or Checkin.

Line: 18
Char: 131
Error: Expected '}'
Code: 0
URL: http://alfresco:8080/alfresco/wcservice/office/navigation?p=&e=doc&n=28f9369e-9936-46df-a4b0-5ea390e...

Any help is very much appreciated.

Server: Windows 2003
Client: XP, Office 2003 and Office 2007

Thanks, Frank

mikeh
Star Contributor
Star Contributor
It would have been useful for somebody to raise this in JIRA - the issue would have received attention much quicker than being posted on the forums.

Anyway, here's a diff you can apply to the source if you've got SVN HEAD checked out. If not, you can patch the files in the .war file directly, or override them with one of the extension mechanisms for those familiar with them.

Index: root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/documentDetails.get.html.ftl
===================================================================
— root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/documentDetails.get.html.ftl   (revision 19377)
+++ root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/documentDetails.get.html.ftl   (working copy)
@@ -26,7 +26,6 @@
       OfficeAddin.defaultQuery = "${defaultQuery}";
       ExternalComponent.init(
       {
-         fullUrl: "${url.full}",
          folderPath: "${url.serviceContext}/office/",
          ticket: "${session.ticket}"
       });
Index: root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/myTasks.get.html.ftl
===================================================================
— root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/myTasks.get.html.ftl   (revision 19377)
+++ root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/myTasks.get.html.ftl   (working copy)
@@ -32,7 +32,6 @@
       OfficeAddin.defaultQuery = "${defaultQuery}";
       ExternalComponent.init(
       {
-         fullUrl: "${url.full}",
          folderPath: "${url.serviceContext}/office/",
          ticket: "${session.ticket}"
       });
Index: root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/navigation.get.html.ftl
===================================================================
— root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/navigation.get.html.ftl   (revision 19377)
+++ root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/navigation.get.html.ftl   (working copy)
@@ -27,7 +27,6 @@
       OfficeAddin.defaultQuery = "${defaultQuery}";
       ExternalComponent.init(
       {
-         fullUrl: "${url.full}",
          folderPath: "${url.serviceContext}/office/",
          ticket: "${session.ticket}"
       }<#if args.env??>, "${args.env}")</#if>);
Index: root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/myAlfresco.get.html.ftl
===================================================================
— root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/myAlfresco.get.html.ftl   (revision 19377)
+++ root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/myAlfresco.get.html.ftl   (working copy)
@@ -28,7 +28,6 @@
       OfficeAddin.defaultQuery = "${defaultQuery}";
       ExternalComponent.init(
       {
-         fullUrl: "${url.full}",
          folderPath: "${url.serviceContext}/office/",
          ticket: "${session.ticket}"
       });
Index: root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/search.get.html.ftl
===================================================================
— root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/search.get.html.ftl   (revision 19377)
+++ root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/search.get.html.ftl   (working copy)
@@ -23,7 +23,6 @@
       OfficeAddin.defaultQuery = "${defaultQuery}";
       ExternalComponent.init(
       {
-         fullUrl: "${url.full}",
          folderPath: "${url.serviceContext}/office/",
          ticket: "${session.ticket}"
       });
Index: root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/tags.get.html.ftl
===================================================================
— root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/tags.get.html.ftl   (revision 19377)
+++ root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/office/tags.get.html.ftl   (working copy)
@@ -26,7 +26,6 @@
       OfficeAddin.defaultQuery = "${defaultQuery}";
       ExternalComponent.init(
       {
-         fullUrl: "${url.full}",
          folderPath: "${url.serviceContext}/office/",
          ticket: "${session.ticket}"
       });
I'll apply to fix to v3.3.

Thanks,
Mike

antoniop2
Champ on-the-rise
Champ on-the-rise
¡¡ Works fine. !!!


Thanks MikeH

mikeh
Star Contributor
Star Contributor
Also fixed on latest SVN HEAD for those who run from the latest source.

Thanks,
Mike