Squash TM - bugtracker in frame - mantis

I'm using squashTM in my work and I want to open bug bugtracker (mantis) which I defined in squash options (there is an option in squash to do that). When I'm opening it in new window everything is correct but in frame I've got an error:
Load denied by X-Frame options: <mantis_main_page_url> does not permit framing
I have this error both in Firefox and IE. What can be wrong? I looked into mantis main page source code but don't know what search and optionally change. Thanks in advance for your help.

MatisBT by default disallows framing, and this is not configurable. You can patch your installation by commenting out the following line in core/http_api.php:
header( 'X-Frame-Options: DENY' );
The bug tracking making this setting configurable is 12165: Allow mantis to be loaded in an iframe.

Related

Issue with Microsoft EDGE and opening links in new tab. Specifically Google search results. Possibly a RendererCodeIntegrity Issue?

Video: https://www.screencast.com/t/nZr2b9KBRSf7
Opening Google Search Results in a new tab results in non functionining pages for me. However if I hit REFRESH on those problematic pages it takes me to the desired site without any issues.
The issue only appears to affect Microsoft EDGE and not Google Chrome. And the broken links seem to only be problematic when opening Google Search results in a new tab.
I reset my browser settings back to default.
I also added the following registry entry as described below for RendererCodeIntegrityEnabled:
https://browserhow.com/how-to-fix-microsoft-edge-status_access_violation/
Finally I changed the shortcut of EDGE to disabled the rendered cod eintegrity as well:
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" – disable-features=RendererCodeIntegrity
...
On the problematic pages, the parameters in the URL look like the following:
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwiYu8Th97
url: 'sa=t'
rct: 'j'
q: [null]
esrc: 's'
source: 'web'
cd: [null]
This resolved itself after a Windows Update. Weird bug...

Debugged Line is not getting Highlighted in my cs-html page

The Debugged line is not getting highlighted in the cs-html page. It works perfectly when i am debugging in the cs page but unfortunately its not working for the cs-html page.
I tried changing the font size or background color from the Options->Fonts and colors.But still its not working.
Please check if you could get some help from this thread.
And I think what you mean is: When you set a breakpoint in the .cshtml file, the highlight does not work instead of during debug mode.(Any misunderstanding please correct me!)
If you set the breakpoint in the .cshtml file but no highlight you can try closing VS,go C:\Users\lancel\AppData\Roaming\Microsoft\VisualStudio to delete all 15.x folders. And restart VS to resolve it. (This solved the issue in my side, and you can try other suggestions from the link above)
If what you mean is the highlight not work in this situation:
Please go Tools menu=>Get Tools and Features to open installer and choose repair VS.
Any update please feel free to let me know:)

How to disable Notepad++ Auto-open previous files without opening Notepad++?

How do I stop Notepad++ from loading all files from the past session?
I know how to do that settings in Notepad++, but the problem is that I once opened a very large file (>10GB) and made the Notepad++ hang up. Notepad++ has already marked that big file in the session and therefore hang up everytime I start the Notepad++. Is there a way I can stop it from loading the past session so it won't hang up every time?
P.S. I have received a report on possible duplicate with this question. This is obviously a different case. At least in that question the notepad++ still starts up normally while in my case I cannot even change the settings normally because the notepad++ just hang while loading the stored version. The answer to this question also provide a good way to change the settings without starting Notepad++, which will be useful in fixing problems caused by settings when the Notepad++ cannot starts normally.
Yes, you can change that setting by modifying the config file.
go to %appdata%\Notepad++
and open config.xml
You should find the following line in there:
<GUIConfig name="RememberLastSession">yes</GUIConfig>
just change it to no and that should do the trick.
Start from command line:
notepad++ -nosession
"Auto-open previous files" then should be disabled
This is for those who do not want to modify the XML config filess, and this will also work without having the Notepad++ in PATH.
As I do not have enough reputation to comment on other answers, I'll add on Jacques Hubart's comment, all credits should still be for him.
Open Windows Run (Windows + R)
Type in the full path to the Notepad++ EXE.
This would normally be C:\Program Files\Notepad++\notepad++.exe
Add the nosession parameter
Run
Preview:
If, like me, you left a huge file in the last session, you can also remove just the offending file from the session and keep the rest.
go to %appdata%\Notepad++ and open session.xml
Scroll to the right to see the filename. Be careful to keep the integrety of the XML by removing the entire "file" node. It should be on a single line.
There is also another way from GUI
In Settings/Preferences/Backup uncheck the "Remember current session for next launch"
As suggested use notepad++ -nosession from run to open notepad++. Then go to preferences --> Backup --> Uncheck Remember current session before next launch
Close notepadd++ and open it normally without run. It worked for me.
another possibility is that the window is on an other screen not visible anymore due to starting it in a new multimonitor setup.
in that case, you have to bring the windows in the visible area by:
select the window by Alt+Tab
Alt+Space opens a small menu in the top left corner
Arrow-Down and Enter selects ' Move'
Arrows brings it back

How to debug why MS Edge/IE11 does not load sourcemap

I made some source+map concatenation and result works in Firefox and Chrome, but does not even request bundle.js.map from webserver in MS Edge and IE11.
Actual JS file is served from http://localhost:8080/bundle.js
bundle.js ends with line:
//# sourceMappingURL=bundle.js.map
Tried both end it with new line and without, does not work in both cases. Is there some checklist to look at or even some "validator"?
Microsoft Edge expects a single sourcemap comment, located at the end of the file. Your file contains two comments, which appears to cause the issue. Remove all but the final comment, and this should resolve the issue for you.
I will file a ticket to track this issue, but it's unlikely we will modify our implementation to accommodate a non-standard use of sourcemap comments. Thank you for bringing this to our attention though. We'll keep watch to see if this affects other users.

Change help link in the Visual Editor of MediaWiki

Is there a way to change the help link in the toolbar dropdown in the new visual editor of MediaWiki?
I tried setting
"visualeditor-help-link":"mw:Help:VisualEditor/User guide/de"
in
"extentsions/VisualEditor/modules/ve-wmf/i18n/de.json"
as proposed here, but then my MediaWiki could not parse the JSON file. My goal is to link to the MediaWiki help page, that can be found here. The normal version:
"visualeditor-help-link":"[https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide/de]"
did not work, neither did this:
"[[{{MediaWiki:visualeditor-helppagelink}}|Hilfe]]"
You should never ever change the source code of MediaWiki core or any extension. It makes an upgrade process much more hard and complicated. There are other ways to achieve a high customization of the user interface language :)
For your problem, it should be enough to create the following page in your wiki (like any other page, but you need the editinterface user right, which is assigned to sysops by default):
MediaWiki:visualeditor-help-link
Put the link you want to use into the textarea (without any wikitext, e.g. "Help:VisualEditor" (without any ")) and save the page.
After reloading the VisualEditor (maybe you need to clear your browser's cache using Ctrl + F5) the link should point to the new target you specified in the message above. If you use a message cache, it is maybe needed to rebuilt it.

Resources