I'm converting URL syntax from 3.4 to 4.2 syntax (CMIS 1.0)
I'm trying to upload a new version of a document to the PWC via a PUT for a document.
Previous 3.X syntax to upload to the PWC was as follows:
/alfresco/service/cmis/pwc/i/{id}?checkinComment={checkinComment?}&major={major?}&checkin={checkin?}
In 4.2 I am using this URL:
/alfresco/api/-default-/public/cmis/versions/1.0/atom/content?id=2e9c6773-4b02-41e0-b8e5-ce04a48c44f6?checkinComment=hgfhfgh&checkin=true&major=true
Here 2e9c6773-4b02-41e0-b8e5-ce04a48c44f6 == ID of the PWC.
I'm getting the error:
The remote server returned an error: (404) Not Found.
What's wrong with this?
When I step through cmislib's checkIn unit test against a preview build of 4.2 Enterprise using the new service URLs, I see that the PUT that does the checkin is hitting this URL:
u'http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.0/atom/entry?id=71be4c86-1dcb-49a8-8373-d1c5ea4405b7%3Bpwc'
So try changing "content" to "entry" and also double-check that you have the ID of the PWC. Note that mine actually has "pwc" on the end whereas yours does not.
Related
I've been trying to get electron-updater to update from latest releases that I put on Github but it keeps triggering this error.
code: 'ERR_UPDATER_ASSET_NOT_FOUND' }
What kind of files do you need to have in a Github release in order for previous versions to update properly?
so far I have the setup.exe, the setup.exe.blockmap, and the latest.yml
It successfully detects that an update is available in
autoUpdater.on('update-available', () => {
but then immediately throws an error in
autoUpdater.on('error', (err, err2) => {
resulting in an error of code: 'ERR_UPDATER_ASSET_NOT_FOUND' }
Previously, I had an issue where I was forgetting to put in latest.yml, but now, I'm really not sure as to what I should do.
check the latest.yml file. It should be something like this -
version: 1.1.0
files:
- url: ${Application-Name}.1.1.0.exe
sha512:${EncodedString}
size: 150466849
isAdminRightsRequired: true
path: ${Application-Name}.1.1.0.exe
sha512:${EncodedString}
releaseDate: '2021-04-26T14:26:54.929Z'
Most probably, the url name and path might not be matching with the uploaded file names in github. Spaces are replaced with - in github. It might be naming issue. I faced the similar issue.
After the review of my Edge extension I got the approval to submit it into the store. However the submission failed with this error.
File specified by 'background.page' does not exist:
Extension\PopupApplication\app\index.html?background=1
Validation failed for extension manifest: Extension\manifest.json
The relevant part in the manifest.json looks like:
"background": {
"page": "PopupApplication/app/index.html?background=1",
"persistent": true
}
It seems like the validation does not allow query parameters in the background.page property. But my logic requires the parameter. Is there any workaround for this or do I have to change my app logic?
The Edge extension works fine locally. Also it works for Chrome and Firefox. I have used the Microsoft edge Extension Toolkit to port the Chrome extension.
Edit: The simplified folder structure looks like the following
+ Assets
+ Extension
|----+ PopupApplication
|----+ app
|--------+ index.html
|----+ manifest.json
The fix was to change our code to successful submit the edge extension. The submission does not allow query parameters in the background.page property. This was confirmed by the Microsoft support.
I experience a very weird error with the GitHub API using the Octokit Ruby library. Only sometimes API requests to add new files to a repository fail with the following message:
Octokit::UnprocessableEntity: PUT https://api.github.com/repos/organization/repo/contents/config.xml: 422 - Invalid request.
"sha" wasn't supplied. // See: https://developer.github.com/v3/repos/contents/#update-a-file
from C:/Dev/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/octokit-4.8.0/lib/octokit/response/raise_error.rb:16:in `on_complete'
Here is how I am trying to upload the contents of an entire folder to GitHub:
Dir.glob(folder + '/**/*') do |path|
next if File.directory?(path)
octokit_client.create_contents 'organization/repo', path.sub("#{folder}/", ''), '🎉', File.read(path), branch: 'master'
end
If an error occurs, it does so with the first attempt to upload a file.
Edit:
I found that the error only occurs when the first file uploaded is a .xml file.
Additionally I often get ...
Octokit::RepositoryUnavailable
PUT https://api.github.com/repos/organization/repo/contents/icon/_60x60_at1x.png: 403 - Repository access blocked
... for other files but the same repository as well.
What am I doing wrong?
Make sure you don't have a file with the same name in the folder.
In this case, you are editing a file and not creating one.
I start Xamarin Studio 4.0.3 and create a new solution for MonoDroid application. I am targetting version 2.3 or higher. I include Sqlite.cs from the sqlite-net (latest from site) project. I make sure I have a reference to Mono.Data.SQLite in the project. Then in the OnCreate of the default MainActivity I try to use the code shown in the readme to make a database connection:
string path = Android.OS.Environment.DataDirectory.ToString();
string dbname = path + "/" + "test.db3";
var db = new SQLiteConnection(dbname, SQLiteOpenFlags.Create|SQLiteOpenFlags.ReadWrite ,true);
However it always fails with an exception saying it can't open the database. If I follow Greg Shackles example and use SqliteDbHelper method it works, but I would like to understand what I am doing wrong that sqlite-net connection method is not working. I have a feeling I am missing something simple. I did also try just passing in a filename to SQLiteConnection() as well but when it failed I added the OpenFlags to see if that was the issue.
I just found out that apparently you're supposed to use the personal folder, instead of the databases folder:
string folder = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
var db = new SQLiteConnection(Path.Combine(folder, "mydb.db"));
I get this exception for a seemingly valid URL:
document = componentLoader.loadComponentFromURL(templateURL, "_blank", FrameSearchFlag.CREATE, new PropertyValue[0]);
Called with templateURL being:
file:///var/lib/tomcat6/webapps/convert/WEB-INF/template.odp
BTW: the same code runs well on windows. (Of course diff URL is generated).
Edit: For URLs like:
private:factory/simpress
I get the same error.
You get this error message when the corresponding application (Calc, Writer etc.) is not installed in your system.
I originally tried to install the (Debian) metapackage openoffice.org-headless which did not contain any of the individual programs, only the core infrastructure.