Posted by
Nicolas Malin (Jira) on
Oct 01, 2020; 12:58pm
URL: http://ofbiz.116.s1.nabble.com/jira-Commented-OFBIZ-12018-Open-FTL-File-from-browser-tp4760325.html
[
https://issues.apache.org/jira/browse/OFBIZ-12018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17205492#comment-17205492 ]
Jacques Le Roux commented on OFBIZ-12018:
-----------------------------------------
Hi James,
Still does not work. I mostly use FF, after a Ctlr+F5, I saw a 404 there, then looked into access.log got this for FF
127.0.0.1 - - [01/Oct/2020:14:35:15 +0200] "POST /openSourceFile HTTP/1.1" 404 682 "
https://localhost:8443/ecomseo" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
for Chrome (twice, after F12 in Network with disable chache on):
14:41:20.180 jquery-3.5.1.min.js:2 POST
https://localhost:8443/openSourceFile 404
send @ jquery-3.5.1.min.js:2
ajax @ jquery-3.5.1.min.js:2
s.ajax @ jquery-migrate-3.3.0.min.js:2
(anonymous) @ OfbizUtil.js:53
dispatch @ jquery-3.5.1.min.js:2
v.handle @ jquery-3.5.1.min.js:2
14:41:20.183 jquery-3.5.1.min.js:2 XHR failed loading: POST "
https://localhost:8443/openSourceFile".
send @ jquery-3.5.1.min.js:2
ajax @ jquery-3.5.1.min.js:2
s.ajax @ jquery-migrate-3.3.0.min.js:2
(anonymous) @ OfbizUtil.js:53
dispatch @ jquery-3.5.1.min.js:2
v.handle @ jquery-3.5.1.min.js:2
14:41:23.526 jquery-3.5.1.min.js:2 POST
https://localhost:8443/openSourceFile 404
send @ jquery-3.5.1.min.js:2
ajax @ jquery-3.5.1.min.js:2
s.ajax @ jquery-migrate-3.3.0.min.js:2
(anonymous) @ OfbizUtil.js:53
dispatch @ jquery-3.5.1.min.js:2
v.handle @ jquery-3.5.1.min.js:2
14:41:23.527 jquery-3.5.1.min.js:2 XHR failed loading: POST "
https://localhost:8443/openSourceFile".
send @ jquery-3.5.1.min.js:2
ajax @ jquery-3.5.1.min.js:2
s.ajax @ jquery-migrate-3.3.0.min.js:2
(anonymous) @ OfbizUtil.js:53
dispatch @ jquery-3.5.1.min.js:2
v.handle @ jquery-3.5.1.min.js:2
14:41:23.829 DevTools failed to load SourceMap: Could not load content for
https://localhost:8443/ecommerce/js/bootstrap/css/bootstrap-4.3.1.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
And for Edge (chromium)
Failed to load resource: the server responded with a status of 404 openSourceFile:1
When getting to the page Edge suggest in Network (F12)
HTTP Status 404 Not Found
Type Status Report
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/9.0.37
Works in 3 browsers for ecommerce, nothing special spotted in js console; in access.log, respectively:
127.0.0.1 - - [01/Oct/2020:14:56:02 +0200] "POST /ecommerce/control/openSourceFile HTTP/1.1" 200 - "
https://localhost:8443/ecommerce/control/main" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
0:0:0:0:0:0:0:1 - - [01/Oct/2020:14:50:41 +0200] "POST /ecommerce/control/openSourceFile HTTP/1.1" 200 - "
https://localhost:8443/ecommerce/control/main" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36"
0:0:0:0:0:0:0:1 - - [01/Oct/2020:14:50:50 +0200] "POST /ecommerce/control/openSourceFile HTTP/1.1" 200 - "
https://localhost:8443/ecommerce/control/main" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36 Edg/85.0.564.63"
HTH
> Open FTL File from browser
> ---------------------------
>
> Key: OFBIZ-12018
> URL:
https://issues.apache.org/jira/browse/OFBIZ-12018> Project: OFBiz
> Issue Type: Improvement
> Components: base
> Affects Versions: Upcoming Branch
> Reporter: James Yong
> Assignee: James Yong
> Priority: Minor
> Fix For: Upcoming Branch
>
> Attachments: OFBIZ-12018.patch, OFBIZ-12018.patch, OFBIZ-12018.patch
>
>
> Allow developer to open FTL file from the browser by clicking on the filename on the named border.
> There are 2 properties involved:
> {code:java}
> # Enable widget named border for development
> # NONE - For production where no named border will be shown.
> # LABEL - Show named border
> # SOURCE - Show named border with link to open the source code
> widget.dev.namedBorder=SOURCE
> # Command template to open file with editor
> # For intellij IDEA use: idea ${sourceLocation}
> widget.dev.cmd.openSourceFile=idea ${sourceLocation}{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)