Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 428373

Summary: Strings Xtrnlizr silently fails to generate messages file when run on single file
Product: [ECD] Orion Reporter: Adrian Aichner <adrian.aichner>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 5.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Adrian Aichner CLA 2014-02-17 14:58:34 EST
The file path is taken to be a directory.

Failure to find that Messages directory shows up in the JS Console but is not passed on to the unsuspecting user.

The original strings in the source file are lost.

See
Bug 422791 - Strings Xtrnlizr causes loss of letter case information
They were replaced by shorter message keys according to
Bug 408259 - NLS externalizer tool should generate shorter message keys 

Messages directory:
javascript/GoogleChromeSnippets/find_regexp.js/nls/

JS Console:

{args: Object, response: "{"Severity":"Error","Message":"File not found: /adrian-OrionContent/javascript/GoogleChromeSnippets/find_regexp.js/nls","HttpCode":404,"BundleId":"org.eclipse.orion.server.core","Code":0}", responseText: "{"Severity":"Error","Message":"File not found: /adrian-OrionContent/javascript/GoogleChromeSnippets/find_regexp.js/nls","HttpCode":404,"BundleId":"org.eclipse.orion.server.core","Code":0}", status: 404, url: "/file/adrian-OrionContent/javascript/GoogleChromeSnippets/find_regexp.js/nls", xhr: Object} strExternalizerModel.js:273
Comment 1 Adrian Aichner CLA 2014-02-17 15:52:14 EST
Also fails silently when Messages directory is set manually for the single file case.

Looks like an extra / is causing a path error:

{args: Object, response: "{"Severity":"Error","Message":"Forbidden: /adrian-OrionContent/javascript/GoogleChromeSnippets/nls//
Comment 2 John Arthorne CLA 2015-05-05 16:21:40 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html