Coverity Scan upload failed: We're sorry, we have recently redesigned our website, and the page you are looking for no longer exists on Coverity Scan - coverity

I am following the guide https://scan.coverity.com/travis_ci to set up Coverity Scan upload from Travis CI.
In my build https://travis-ci.org/msgqe/travisci/builds/222073108, I get the following error (see the log)
Successfully added SCM data for 2537 files
[33;1mTarring Coverity Scan Analysis results...[0m
[33;1mUploading Coverity Scan Analysis results...[0m
[33;1mCoverity Scan upload failed:
000
000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Coverity Scan - Static Analysis</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
...
<p>
We're sorry, we have recently redesigned our website, and the page you are looking for no longer exists on Coverity Scan.
</p>
<p>
Click here to be redirected to our the Coverity Scan home page.
</p>
...
What is the cause of this issue and what can I do to resolve it?
My .travis.yml is at https://github.com/msgqe/travisci/blob/activemq-artemis-coverity/.travis.yml

I resolved the problem by changing project name on Coverity. I've registered the project manually, not by importing from GitHub. That meant I could have spaces in my project name. Github imports never do. When I removed spaces from project name, the build imported correctly.
Looking at various Coverity import scripts in the wild[1], there aren't quotes around project name in the last curl command. I believe this is the cause.
[1] https://github.com/DmitriBoulanger/samples-spring-boot/blob/bcee9dcbd6d0d2cfe97186bc2ada05bf311e8804/spring-boot-DOCKER/spring-boot-DOCKER-2/.travis/travisci_build_coverity_scan.sh

Related

Flutter web base href subfolder

I am trying to deploy to IIS. Not in root but in a sub-folder.
This is working:
edit web/index.html, change <base href="/"> to <base href="/ChangeTag/">
run flutter build web command
the build/web/index.html is ok, with the new changes.
Perfect!
BUT, when I try to debug using localhost: web pages does not found - error 404
What I want is to deploy (automatically), inside a sub-folder of wwwroot and execute local test too, without modifying index.html a lot of times
Is it possible to do something like in Angular, use proxies, use different build configs, etc?
Thanks
I've got a similar problem after upgrading flutter and dart to current version (beta channel), I mean it was good on debugging mode and It did not working on build release.
What I did? I just commented this <base href="/"> line at index.html file (located inside the <your_app_folder_name>/web folder) and both (debugging and release builds) went back to working like charm.
I did comment by changing the line
<base href="/">
to
<!-- <base href="/"> -->
Do the change and: try to run a flutter build web command, copy the generated web folder located at <your_app_folder_name>/build/ path to any subfolder (such as <your_websrv_root>/webtestfolder) of the your webserver, and it will work at the address http://webtestfolder of your browser.
Stop manually updating base-href
Instead of using
flutter build web
Try
flutter build web --base-href /sub_folder_name/
This will change the base URL of your build/web/index.html
Bounus
Or if you are using github actions to deploy on github-pages.
This will create a subfolder name, same as your repository name (username.github.io/{repo-name})
- run: flutter build web --base-href /${{ github.event.repository.name }}/
Here is full workflow example: flutter_github_pages_deploy.yaml
Note
Just make sure that your web/index.html contains
<base href="$FLUTTER_BASE_HREF">
The answer is in the index.html file on the web folder (not /build/web)
<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
-->
<base href="/sub-folder/">
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">

How to stop flutter web from overwriting my index.html every build?

So I'm working with flutter web + cloud firestore
To get cloud firestore working I have to modify my index.html. The problem is every time I run
flutter build web
It overwrites my index.html and I have to manually re-add all the necessary code snippets to get it working again.
Is a way I can run flutter build web without it overwriting index.html?
Another related issue is that when I deploy the site to firebase, it works fine, but when I run this site locally for testing using
flutter run -d chrome
when it runs on chrome the site is again using a brand new index.html without the necessary code so it doesn't work. I have no opportunity to edit the index.html to apply the necessary code since it builds and runs immediately.
Is there a fix for this?
You should modify index.html file in the <project>/web folder, but not in the <project>/build/web folder. This file will be copied to <project>/build/web folder during build process.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Flutter web</title>
<link href="https://fonts.googleapis.com/css?family=Raleway&display=swap" rel="stylesheet">
<script defer src="main.dart.js" type="application/javascript"></script>
<script src="https://www.gstatic.com/firebasejs/6.6.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.6.0/firebase-auth.js"></script>
</head>
<body>
<h1>This text will be copied to the target HTML, but covered by flutter web app</h1>
</body>
</html>

How to use Ionic 4 CSS and JS without CDN in a static website?

How to include Ionic 4's CSS and JS in a static website without using CDN url’s?
When we tried to download the JS file to local and refer it as <script type='text/javascript' src="ionic.js"></script> , the page loads “Empty” with an error in Chrome dev console. The same works if we refer it from CDN.
Downloaded the js file from https://unpkg.com/#ionic/core#4.0.0/dist/ionic.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- <script src="https://unpkg.com/#ionic/core#4.0.0/dist/ionic.js"></script> -->
<script type='text/javascript' src="ionic.js"></script>
<link rel="stylesheet" href="https://unpkg.com/#ionic/core#4.0.0/css/ionic.bundle.css">
</head>
<body>
<ion-title>Sample Title</ion-title>
</body>
</html>
Thanks ghybs
ionic.js depends on about another 135 js files under #ionic/core/dist/ionc. After including the entire #ionic/core folder in my static website project folder, the pages with ion components loaded properly.
Here's the solution to build static websites using Ionic Framework:
Folder structure should be:
projectFolder
|_core
| |_css
| | |_ionic.bundle.css
| |_dist
| |_ionic (contains all dependent js files)
| |_ionic.js
|_index.html
How to get ionic core?
Run the below command.
$ npm install #ionic/core
This will generate node_modules folder. Copy the folder from node_modules/#ionic/core to your project.
index.html
<html lang="en">
<head>
<script type='text/javascript' src="core/dist/ionic.js"></script>
<link rel="stylesheet" href="core/css/ionic.bundle.css">
</head>
<body>
<ion-title>Sample</ion-title>
</body>
GitHub repo of the above example
Maybe you could try deploying the App with or without Cordoba as Webapp? That result should ne a static website in your dist folder.
https://forum.ionicframework.com/t/how-to-deploy-for-all-three-platforms-ios-android-and-web-too/100493/2
What is different between ionic 4 and common JS libraries is that ionic 4 uses lazy loading so that your user does not load components that are not used in your app.
As a consequence, ionic 4 is split in many different JS files. While it is true you only need to reference a single entry file in your HTML, ionic 4 expects the rest of the files to be available alongside this entry file. That is why you see in your dev console an extra network request to an ionic JS asset with hash file name.
You can browse https://unpkg.com/#ionic/core#4.0.0/dist/ionic/ to get an idea of what that means (although ionic will probably load only the chunks, not the individual components).
Then the entry file will automatically try loading these extra chunks whenever it sees ionic custom web elements on the page.
Therefore what you miss is simply to make available all these extra JS files at the same location as your entry file.
As to retrieve them, you can get a zip of released assets on the GitHub release page, from jsdelivr, or from npm.

Is there a way to get Chrome's Dev Tools to show the manifest download information?

I'm debugging an offline application, and Chrome's Dev Tools Network tab doesn't seem to show any information at all about the cache manifest download. I see the download of the main page, followed by its various resources, but there's no network entry for the manifest identified on the html element — not initially, and not at the end when it re-downloads it to see if it changed.
Is there some magic option to makes Dev Tools show the manifest download as well?
For example, say we have index.html:
<!DOCTYPE html>
<html manifest="m.appcache">
<head>
<!-- ...usual head stuff... -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- ...some content... -->
<script src="script.js"></script>
</body>
</html>
And the manifest looks like:
CACHE MANIFEST
# v1
style.css
script.js
On the network tab, I'll see entries for index.html, style.css, and script.js, but none for m.appcache, even though I know the browser requests it (twice) when initially caching the page.
In chrome-dev-tools the place you can check everything is the application tab. Not sure, but there might also be your m.appcache file.

HTTP Status 404 description The requested resource () is not available. Apache Tomcat/7.0.27 [duplicate]

This question already has answers here:
JSP in /WEB-INF returns "HTTP Status 404 The requested resource is not available"
(3 answers)
Closed 6 years ago.
when i try to access my project home at http://localhost:7080/first/ or http://localhost:7080/first/start-page.html i get this message:
HTTP Status 404 - type Status report message description The requested resource () is not available. Apache Tomcat/7.0.27
but if i ask for localhost:7080/ the home page of tomcat is correctly found.
can someone help me?
why i can't get my start-page.html from eclipes?
but when i run from C:\Users\Mohsen\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\first\WEB-INF\start-page.html, it runs correctly.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>first page</title>
</h:head>
<h:body>
<fieldset>
<legend>Random Results Page</legend>
<h:form>
Press button to get one of three possible results pages.
<br/>
<h:commandButton value="Go to Random Page"
/>
</h:form>
</fieldset>
…
</h:body></html>
Please look on tab "Servers" like on image:
If you don't see your project in server you need "publish" you project before.
// right click on server -> "Add and Remove" -> add your project from "Available" into "Configured" -> click "finish"
I hope this must help.
I don't think if you right click on server and select "Publish" will publish your project straight away. I think you need to add the project to the server first (I could be wrong).
Usually the easiest way to run the project on the server is to right click on the project, select "Run As" and select "Run on Server".
That will give you the option to select the server you want to use (or create a new one if you haven't created one then).
Try this move your start-page.html to your local host.
in my case i try this code
sudo mv start-page.html /etc/tomcat7/Catalina/localhost
Then check your localhost if the start-page.html are there.
Then you see the 4 .xml like docs.xml, the examples.xml, the manager.xml, etc. and you must see the start-page.html then try restart again your tomcat7.
Because the 404 error means cannot fine the location of your start-page.html
I think you created "xhtml file", creating a "file" and changing the file extension. This is wrong. You should create a html file and configure again extension. Then click the next button. After that, you should choose "New Facelet Template". Then finish.