-
-
Notifications
You must be signed in to change notification settings - Fork 91
Description
Current I cannot get a wiki page with a DotNet 8 project. package version 4.14.0
RedMine information:
Enable REST web service yes
Enable JSONP support yes
Environment:
Redmine version 5.1.7.stable
Ruby version 3.2.8-p263 (2025-03-26) [x86_64-linux-musl]
Rails version 6.1.7.10
Environment production
Database adapter PostgreSQL
Mailer queue ActiveJob::QueueAdapters::SidekiqAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Default
SCM:
Subversion 1.14.4
Mercurial 6.9.4
Git 2.47.2
Filesystem
Redmine plugins:
no plugin installed
Code Used:
// obsolete from the wiki
var page = manager.GetWikiPage(projectId,
new NameValueCollection { { RedmineKeys.INCLUDE, RedmineKeys.ATTACHMENTS } },
pageId);
and
// recommend? used decomploation.
var page = manager.GetWikiPage(projectId, pageId, null);
I have used the manager to search for the page, via debugging it look like it is searchable and I can Issues with the same manager. The 404 error does not include the URI it is composing.
Here is log/stacktrace of the problem:
Exception working with wiki page text
<my page>
. EXCEPTION OCCURRED:Not Found
Redmine.Net.Api.Exceptions.NotFoundException
at Redmine.Net.Api.Extensions.WebExceptionExtensions.HandleWebException(WebException exception, IRedmineSerializer serializer)
at Redmine.Net.Api.Net.WebClient.InternalRedmineApiWebClient.Send(ApiRequestMessage requestMessage)
at Redmine.Net.Api.Net.WebClient.InternalRedmineApiWebClient.HandleRequest(String address, String verb, RequestOptions requestOptions, ApiRequestMessageContent content)
at Redmine.Net.Api.Net.WebClient.InternalRedmineApiWebClient.Get(String address, RequestOptions requestOptions)
at Redmine.Net.Api.Extensions.RedmineManagerExtensions.GetWikiPage(RedmineManager redmineManager, String projectId, String pageName, RequestOptions requestOptions, UInt32 version)
at Redmine.Net.Api.RedmineManager.GetWikiPage(String projectId, NameValueCollection parameters, String pageName, UInt32 version)
at UpdateInfrastructurePages.Program.g__TestRedmineWikiPage|7_1(<>c__DisplayClass7_0&)
at UpdateInfrastructurePages.Program.CheckPage(RedmineManager manager, ITeamCityTestsSubWriter tcWriter, String projectId, String pageId, Func`1 currPageText)
The remote server returned an error: (404) Not Found.
System.Net.WebException
at System.Net.HttpWebRequest.GetResponse()
at System.Net.WebClient.GetWebResponse(WebRequest request)
at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream)
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadData(Uri address)
at Redmine.Net.Api.Net.WebClient.InternalRedmineApiWebClient.Send(ApiRequestMessage requestMessage)
Any hint to a solution / work around?